From f6fd5259ded8073897fc468276cc209f30227f37 Mon Sep 17 00:00:00 2001 From: CatIgnore <137709037+CatIgnore@users.noreply.github.com> Date: Mon, 23 Oct 2023 23:25:59 +0800 Subject: [PATCH] Update game.js --- game/game.js | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/game/game.js b/game/game.js index a3b84da1e..5d9f22d6a 100644 --- a/game/game.js +++ b/game/game.js @@ -19529,10 +19529,10 @@ event.trigger('changeHp'); }, changeHujia:function(){ - if(num>=0){ + if(num>0){ game.log(player,'获得了'+get.cnNumber(num)+'点护甲'); } - else{ + else if(num<0){ if(-num>player.hujia){ num=-player.hujia; event.num=num; @@ -24793,8 +24793,9 @@ num=1; } if(typeof type!='string'){ - if(num>=0) type='gain'; - else type='lose'; + if(num>0) type='gain'; + else if(num<0) type='lose'; + else type='null'; } next.num=num; next.player=this;