Update game.js
This commit is contained in:
parent
96e5a464a9
commit
f6fd5259de
|
@ -19529,10 +19529,10 @@
|
||||||
event.trigger('changeHp');
|
event.trigger('changeHp');
|
||||||
},
|
},
|
||||||
changeHujia:function(){
|
changeHujia:function(){
|
||||||
if(num>=0){
|
if(num>0){
|
||||||
game.log(player,'获得了'+get.cnNumber(num)+'点护甲');
|
game.log(player,'获得了'+get.cnNumber(num)+'点护甲');
|
||||||
}
|
}
|
||||||
else{
|
else if(num<0){
|
||||||
if(-num>player.hujia){
|
if(-num>player.hujia){
|
||||||
num=-player.hujia;
|
num=-player.hujia;
|
||||||
event.num=num;
|
event.num=num;
|
||||||
|
@ -24793,8 +24793,9 @@
|
||||||
num=1;
|
num=1;
|
||||||
}
|
}
|
||||||
if(typeof type!='string'){
|
if(typeof type!='string'){
|
||||||
if(num>=0) type='gain';
|
if(num>0) type='gain';
|
||||||
else type='lose';
|
else if(num<0) type='lose';
|
||||||
|
else type='null';
|
||||||
}
|
}
|
||||||
next.num=num;
|
next.num=num;
|
||||||
next.player=this;
|
next.player=this;
|
||||||
|
|
Loading…
Reference in New Issue