# ChestNonstopActivity_Model_ChestNonstopActivityConfig_1802.luac
; fn @ChestNonstopActivityConfig.lua  line 0-0 np=0 va=1 ms=3 code=43 consts=16 upvals=1 protos=12
;   K[0]='ChestNonstopActivityConfig'
;   K[1]='__index'
;   K[2]='Create'
;   K[3]='ChestNonstopActivityConfig'
;   K[4]='GetId'
;   K[5]='GetType'
;   K[6]='GetTargetScore'
;   K[7]='GetRewardScore'
;   K[8]='GetRewardType'
;   K[9]='GetMaxRewardScore'
;   K[10]='GetMinRewardNum'
;   K[11]='HasTimeLimit'
;   K[12]=60
;   K[13]='GetChestDurationInSeconds'
;   K[14]='GetUICode'
;   K[15]='GetUIBoxId'
;   upvals: _ENV
;   locals: Minute(33-43)
0000  NEWTABLE  R0 = {} (0 items)
0001  SETTABUP  _ENV[K0('ChestNonstopActivityConfig')] = R0
0002  GETTABUP  R0 = _ENV[K0('ChestNonstopActivityConfig')]
0003  GETTABUP  R1 = _ENV[K0('ChestNonstopActivityConfig')]
0004  SETTABLE  R0[K1('__index')] = R1
0005  GETTABUP  R0 = _ENV[K0('ChestNonstopActivityConfig')]
0006  CLOSURE   R1 = closure proto0
0007  SETTABLE  R0[K2('Create')] = R1
0008  GETTABUP  R0 = _ENV[K3('ChestNonstopActivityConfig')]
0009  CLOSURE   R1 = closure proto1
0010  SETTABLE  R0[K4('GetId')] = R1
0011  GETTABUP  R0 = _ENV[K3('ChestNonstopActivityConfig')]
0012  CLOSURE   R1 = closure proto2
0013  SETTABLE  R0[K5('GetType')] = R1
0014  GETTABUP  R0 = _ENV[K3('ChestNonstopActivityConfig')]
0015  CLOSURE   R1 = closure proto3
0016  SETTABLE  R0[K6('GetTargetScore')] = R1
0017  GETTABUP  R0 = _ENV[K3('ChestNonstopActivityConfig')]
0018  CLOSURE   R1 = closure proto4
0019  SETTABLE  R0[K7('GetRewardScore')] = R1
0020  GETTABUP  R0 = _ENV[K3('ChestNonstopActivityConfig')]
0021  CLOSURE   R1 = closure proto5
0022  SETTABLE  R0[K8('GetRewardType')] = R1
0023  GETTABUP  R0 = _ENV[K3('ChestNonstopActivityConfig')]
0024  CLOSURE   R1 = closure proto6
0025  SETTABLE  R0[K9('GetMaxRewardScore')] = R1
0026  GETTABUP  R0 = _ENV[K3('ChestNonstopActivityConfig')]
0027  CLOSURE   R1 = closure proto7
0028  SETTABLE  R0[K10('GetMinRewardNum')] = R1
0029  GETTABUP  R0 = _ENV[K3('ChestNonstopActivityConfig')]
0030  CLOSURE   R1 = closure proto8
0031  SETTABLE  R0[K11('HasTimeLimit')] = R1
0032  LOADK     R0 = K12 60
0033  GETTABUP  R1 = _ENV[K3('ChestNonstopActivityConfig')]
0034  CLOSURE   R2 = closure proto9
0035  SETTABLE  R1[K13('GetChestDurationInSeconds')] = R2
0036  GETTABUP  R1 = _ENV[K3('ChestNonstopActivityConfig')]
0037  CLOSURE   R2 = closure proto10
0038  SETTABLE  R1[K14('GetUICode')] = R2
0039  GETTABUP  R1 = _ENV[K3('ChestNonstopActivityConfig')]
0040  CLOSURE   R2 = closure proto11
0041  SETTABLE  R1[K15('GetUIBoxId')] = R2
0042  RETURN    return R0..R-1
; ---------- proto0 [Create] ----------
  ; fn ?  line 14-20 np=1 va=0 ms=5 code=11 consts=5 upvals=1 protos=0
  ;   K[0]='Table'
  ;   K[1]='ShallowCopy'
  ;   K[2]='setmetatable'
  ;   K[3]='ChestNonstopActivityConfig'
  ;   K[4]='rawConfig'
  ;   upvals: _ENV
  ;   locals: rawConfig(0-11), tb(4-11), instance(8-11)
  0000  GETTABUP  R1 = _ENV[K0('Table')]
  0001  GETTABLE  R1 = R1[K1('ShallowCopy')]
  0002  MOVE      R2 = R0
  0003  CALL      R1 = call(R1, 1 args, 1 rets)
  0004  GETTABUP  R2 = _ENV[K2('setmetatable')]
  0005  MOVE      R3 = R0
  0006  GETTABUP  R4 = _ENV[K3('ChestNonstopActivityConfig')]
  0007  CALL      R2 = call(R2, 1 args, 2 rets)
  0008  SETTABLE  R2[K4('rawConfig')] = R0
  0009  RETURN    return R2..R1
  0010  RETURN    return R0..R-1
; ---------- proto1 [GetId] ----------
  ; fn ?  line 22-24 np=1 va=0 ms=2 code=3 consts=1 upvals=0 protos=0
  ;   K[0]='id'
  ;   locals: self(0-3)
  0000  GETTABLE  R1 = R0[K0('id')]
  0001  RETURN    return R1..R0
  0002  RETURN    return R0..R-1
; ---------- proto2 [GetType] ----------
  ; fn ?  line 26-28 np=1 va=0 ms=2 code=3 consts=1 upvals=0 protos=0
  ;   K[0]='type'
  ;   locals: self(0-3)
  0000  GETTABLE  R1 = R0[K0('type')]
  0001  RETURN    return R1..R0
  0002  RETURN    return R0..R-1
; ---------- proto3 [GetTargetScore] ----------
  ; fn ?  line 30-32 np=1 va=0 ms=2 code=3 consts=1 upvals=0 protos=0
  ;   K[0]='score'
  ;   locals: self(0-3)
  0000  GETTABLE  R1 = R0[K0('score')]
  0001  RETURN    return R1..R0
  0002  RETURN    return R0..R-1
; ---------- proto4 [GetRewardScore] ----------
  ; fn ?  line 34-36 np=1 va=0 ms=2 code=3 consts=1 upvals=0 protos=0
  ;   K[0]='reward_score'
  ;   locals: self(0-3)
  0000  GETTABLE  R1 = R0[K0('reward_score')]
  0001  RETURN    return R1..R0
  0002  RETURN    return R0..R-1
; ---------- proto5 [GetRewardType] ----------
  ; fn ?  line 38-40 np=1 va=0 ms=2 code=3 consts=1 upvals=0 protos=0
  ;   K[0]='reward_type'
  ;   locals: self(0-3)
  0000  GETTABLE  R1 = R0[K0('reward_type')]
  0001  RETURN    return R1..R0
  0002  RETURN    return R0..R-1
; ---------- proto6 [GetMaxRewardScore] ----------
  ; fn ?  line 42-44 np=1 va=0 ms=2 code=3 consts=1 upvals=0 protos=0
  ;   K[0]='max_reward_score'
  ;   locals: self(0-3)
  0000  GETTABLE  R1 = R0[K0('max_reward_score')]
  0001  RETURN    return R1..R0
  0002  RETURN    return R0..R-1
; ---------- proto7 [GetMinRewardNum] ----------
  ; fn ?  line 46-48 np=1 va=0 ms=2 code=3 consts=1 upvals=0 protos=0
  ;   K[0]='min_reward_num'
  ;   locals: self(0-3)
  0000  GETTABLE  R1 = R0[K0('min_reward_num')]
  0001  RETURN    return R1..R0
  0002  RETURN    return R0..R-1
; ---------- proto8 [HasTimeLimit] ----------
  ; fn ?  line 50-52 np=1 va=0 ms=2 code=7 consts=2 upvals=0 protos=0
  ;   K[0]='time'
  ;   K[1]=nil
  ;   locals: self(0-7)
  0000  GETTABLE  R1 = R0[K0('time')]
  0001  EQ        if R0 eq K1(nil)   -> -130300
  0002  JMP       (jump)   -> 4
  0003  LOADBOOL  R1 = false
  0004  LOADBOOL  R1 = true
  0005  RETURN    return R1..R0
  0006  RETURN    return R0..R-1
; ---------- proto9 [GetChestDurationInSeconds] ----------
  ; fn ?  line 57-62 np=1 va=0 ms=3 code=11 consts=2 upvals=1 protos=0
  ;   K[0]='HasTimeLimit'
  ;   K[1]='time'
  ;   upvals: Minute
  ;   locals: self(0-11)
  0000  SELF      R2 = R0[K0('HasTimeLimit')] (self)
  0001  CALL      R1 = call(R1, 1 args, 1 rets)
  0002  TEST      if not R1 then   -> -131068
  0003  JMP       (jump)   -> 8
  0004  GETTABLE  R1 = R0[K1('time')]
  0005  GETUPVAL  R2 = Minute
  0006  MUL       R1 = R2 mul R1
  0007  RETURN    return R1..R0
  0008  LOADNIL   R1..R1 = nil
  0009  RETURN    return R1..R0
  0010  RETURN    return R0..R-1
; ---------- proto10 [GetUICode] ----------
  ; fn ?  line 64-66 np=1 va=0 ms=2 code=3 consts=1 upvals=0 protos=0
  ;   K[0]='uiCode'
  ;   locals: self(0-3)
  0000  GETTABLE  R1 = R0[K0('uiCode')]
  0001  RETURN    return R1..R0
  0002  RETURN    return R0..R-1
; ---------- proto11 [GetUIBoxId] ----------
  ; fn ?  line 69-76 np=2 va=0 ms=6 code=18 consts=4 upvals=0 protos=0
  ;   K[0]='GetUICode'
  ;   K[1]=nil
  ;   K[2]='GetId'
  ;   K[3]='MapUICode2UIBoxId'
  ;   locals: self(0-18), activityDefinition(0-18), uiCode(2-18)
  0000  SELF      R3 = R0[K0('GetUICode')] (self)
  0001  CALL      R2 = call(R2, 1 args, 1 rets)
  0002  EQ        if R0 eq K1(nil)   -> -129787
  0003  JMP       (jump)   -> 8
  0004  SELF      R4 = R0[K2('GetId')] (self)
  0005  TAILCALL  tailcall(R3, 0)
  0006  RETURN    return R3..R2
  0007  JMP       (jump)   -> 17
  0008  GETTABLE  R3 = R1[K3('MapUICode2UIBoxId')]
  0009  SELF      R5 = R0[K0('GetUICode')] (self)
  0010  CALL      R4 = call(R4, 1 args, 1 rets)
  0011  GETTABLE  R3 = R3[R4]
  0012  TEST      if not R3 then   -> -131057
  0013  JMP       (jump)   -> 16
  0014  SELF      R4 = R0[K2('GetId')] (self)
  0015  CALL      R3 = call(R3, 1 args, 1 rets)
  0016  RETURN    return R3..R2
  0017  RETURN    return R0..R-1
