From 194bd8085f01b919af37e3bf2664226f72783d5b Mon Sep 17 00:00:00 2001 From: MrZ626 <1046101471@qq.com> Date: Thu, 8 Apr 2021 01:42:58 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E8=81=94=E7=BD=91=E6=B8=B8?= =?UTF-8?q?=E6=88=8F=E5=87=BB=E6=9D=80=E5=AF=B9=E6=89=8B=E5=88=A4=E5=AE=9A?= =?UTF-8?q?=E5=92=8C=E9=9F=B3=E6=95=88?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- parts/player/player.lua | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/parts/player/player.lua b/parts/player/player.lua index c8d90995..7845ca25 100644 --- a/parts/player/player.lua +++ b/parts/player/player.lua @@ -1683,9 +1683,15 @@ function Player:die()--Called both when win/lose! self.visTime[i][j]=min(self.visTime[i][j],20) end end - if GAME.NET and self.id==1 then - ins(GAME.rep,GAME.frame+260) - ins(GAME.rep,0) + if GAME.NET then + if self.id==1 then + ins(GAME.rep,GAME.frame+260) + ins(GAME.rep,0) + else + if self.lastRecv and self.lastRecv.id==1 then + SFX.play("collect") + end + end end end function Player:win(result)