From 61073bfdcbcaf1242d342bde7c9e3f8a82cf3f04 Mon Sep 17 00:00:00 2001 From: MrZ626 <1046101471@qq.com> Date: Mon, 14 Sep 2020 00:46:52 +0800 Subject: [PATCH] =?UTF-8?q?=E7=8E=A9=E5=AE=B6=E6=96=B9=E6=B3=95reach=5Fwin?= =?UTF-8?q?Check=E6=94=B9=E4=B8=BAcheck=5FlineReach=EF=BC=8C=E6=96=B0?= =?UTF-8?q?=E5=A2=9E=E6=94=BB=E5=87=BB=E8=BE=BE=E6=A0=87=E6=A3=80=E6=B5=8B?= =?UTF-8?q?=E5=87=BD=E6=95=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- parts/player.lua | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/parts/player.lua b/parts/player.lua index 683d2082..2573ab2c 100644 --- a/parts/player.lua +++ b/parts/player.lua @@ -2641,11 +2641,16 @@ function player.lose(P) end end -function PLY.reach_winCheck(P) +function PLY.check_lineReach(P) if P.stat.row>=P.gameEnv.target then P:win("finish") end end +function PLY.check_attackReach(P) + if P.stat.atk>=P.gameEnv.target then + P:win("finish") + end +end --------------------------<\Events>-------------------------- ----------------------------------------------------