玩家方法reach_winCheck改为check_lineReach,新增攻击达标检测函数
This commit is contained in:
@@ -2641,11 +2641,16 @@ function player.lose(P)
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
function PLY.reach_winCheck(P)
|
function PLY.check_lineReach(P)
|
||||||
if P.stat.row>=P.gameEnv.target then
|
if P.stat.row>=P.gameEnv.target then
|
||||||
P:win("finish")
|
P:win("finish")
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
function PLY.check_attackReach(P)
|
||||||
|
if P.stat.atk>=P.gameEnv.target then
|
||||||
|
P:win("finish")
|
||||||
|
end
|
||||||
|
end
|
||||||
--------------------------<\Events>--------------------------
|
--------------------------<\Events>--------------------------
|
||||||
|
|
||||||
--------------------------<Control>--------------------------
|
--------------------------<Control>--------------------------
|
||||||
|
|||||||
Reference in New Issue
Block a user