所有的“完成目标”胜利将会杀死其他玩家,使联网房间能进行部分单机模式的竞技

This commit is contained in:
MrZ626
2021-10-08 17:16:38 +08:00
parent 8203f75cc9
commit 300cf10413

View File

@@ -2292,6 +2292,13 @@ function Player:win(result)
self.modeData.place=1
self:changeAtk()
end
if result=='finish'then
for i=#PLY_ALIVE,1,-1 do
if PLY_ALIVE[i]~=self then
PLY_ALIVE[i]:lose()
end
end
end
if self.type=='human'then
GAME.result=result or'gamewin'
SFX.play('win')