From 5717fb4b08c91e94a963e9255e90db6b2b3df913 Mon Sep 17 00:00:00 2001 From: MrZ626 <1046101471@qq.com> Date: Sun, 20 Sep 2020 12:00:31 +0800 Subject: [PATCH] =?UTF-8?q?=E5=B9=B2=E6=97=B12=E8=BF=9B=E5=85=A5=E5=B0=B1?= =?UTF-8?q?=E6=8A=A5=E9=94=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- parts/player.lua | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/parts/player.lua b/parts/player.lua index fc99cb6d..0f40b197 100644 --- a/parts/player.lua +++ b/parts/player.lua @@ -33,7 +33,9 @@ local gameEnv0={ next=6, hold=true,oncehold=true, ospin=true, - sequence="bag",bag={1,2,3,4,5,6,7}, + sequence="bag", + freshMethod=NULL, + bag={1,2,3,4,5,6,7}, mission=NULL, face=NULL,skin=NULL, @@ -1239,6 +1241,8 @@ local function prepareSequence(P)--Call freshPrepare and set newNext freshPrepare[ENV.sequence](P) P.newNext=freshMethod[ENV.sequence] else + print(type(ENV.sequence)) + print(type(ENV.freshMethod)) assert(type(ENV.sequence)=="function"and type(ENV.freshMethod)=="function","wrong sequence generator code") ENV.sequence(P) P.newNext=ENV.freshMethod