This commit is contained in:
parent
b5405c291c
commit
0785dd04ca
11
game/game.js
11
game/game.js
|
@ -22085,15 +22085,18 @@
|
||||||
ext=ext||'.jpg';
|
ext=ext||'.jpg';
|
||||||
subfolder=subfolder||'default'
|
subfolder=subfolder||'default'
|
||||||
if(type){
|
if(type){
|
||||||
if(type=='character'&&lib.character[name]&&lib.character[name][4]&&
|
var dbimage=null;
|
||||||
lib.character[name][4].contains('dbimage')){
|
if(type=='character'&&lib.character[name]&&lib.character[name][4]){
|
||||||
for(var i=0;i<lib.character[name][4].length;i++){
|
for(var i=0;i<lib.character[name][4].length;i++){
|
||||||
if(lib.character[name][4][i].indexOf('db:')==0){
|
if(lib.character[name][4][i].indexOf('db:')==0){
|
||||||
this.setBackgroundDB(lib.character[name][4][i].slice(3));
|
dbimage=lib.character[name][4][i];break;
|
||||||
return this;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
if(dbimage){
|
||||||
|
this.setBackgroundDB(dbimage.slice(3));
|
||||||
|
return this;
|
||||||
|
}
|
||||||
else if(type=='character'&&lib.customCharacters.contains(name)){
|
else if(type=='character'&&lib.customCharacters.contains(name)){
|
||||||
src="";
|
src="";
|
||||||
var node=this;
|
var node=this;
|
||||||
|
|
Loading…
Reference in New Issue