Update game.js

This commit is contained in:
CatIgnore 2023-10-23 23:25:59 +08:00 committed by GitHub
parent 96e5a464a9
commit f6fd5259de
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 4 deletions

View File

@ -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;