修复本地混战模式ai死亡时报错,微调胜利/失败文本显示相关代码

This commit is contained in:
MrZ626
2021-05-02 11:19:02 +08:00
parent 7017901594
commit 216bb4ea87
10 changed files with 27 additions and 12 deletions

View File

@@ -1702,7 +1702,7 @@ function Player:win(result)
self:changeAtk()
end
if self.type=='human'then
GAME.result=result or'win'
GAME.result=result or'gamewin'
SFX.play('win')
VOC.play('win')
if GAME.modeEnv.royaleMode then
@@ -1807,7 +1807,7 @@ function Player:lose(force)
self:showTextF(self.modeData.place,0,120,60,'appear',.26,.9)
end
self.gameEnv.keepVisible=self.gameEnv.visible~='show'
self:showTextF(text.gameover,0,0,60,'appear',.26,.9)
self:showTextF(text.lose,0,0,90,'appear',.26,.9)
if self.type=='human'then
GAME.result='gameover'
SFX.play('fail')