mirror of
https://github.com/Koko-boya/Grasscutter_Resources
synced 2024-01-31 23:23:19 +08:00
769 lines
15 KiB
Lua
769 lines
15 KiB
Lua
local L0_1, L1_1, L2_1, L3_1, L4_1, L5_1, L6_1, L7_1, L8_1, L9_1, L10_1, L11_1, L12_1, L13_1
|
|
L0_1 = {}
|
|
L0_1.group_id = 177005146
|
|
L1_1 = {}
|
|
L1_1.active_step = 201
|
|
L1_1.inactive_step = 0
|
|
L2_1 = {}
|
|
L3_1 = 146002
|
|
L4_1 = 146004
|
|
L5_1 = 146003
|
|
L6_1 = 146005
|
|
L7_1 = 146001
|
|
L2_1[1] = L3_1
|
|
L2_1[2] = L4_1
|
|
L2_1[3] = L5_1
|
|
L2_1[4] = L6_1
|
|
L2_1[5] = L7_1
|
|
L1_1.gadget_array = L2_1
|
|
L2_1 = {}
|
|
L3_1 = 146002
|
|
L4_1 = 146004
|
|
L5_1 = 146003
|
|
L6_1 = 146005
|
|
L7_1 = 146001
|
|
L2_1[1] = L3_1
|
|
L2_1[2] = L4_1
|
|
L2_1[3] = L5_1
|
|
L2_1[4] = L6_1
|
|
L2_1[5] = L7_1
|
|
L1_1.reset_gear_list = L2_1
|
|
L2_1 = 0
|
|
L3_1 = 0
|
|
L4_1 = L1_1.gadget_array
|
|
L4_1 = #L4_1
|
|
L5_1 = {}
|
|
L6_1 = {}
|
|
L6_1.config_id = 146012
|
|
L6_1.monster_id = 21010301
|
|
L7_1 = {}
|
|
L7_1.x = 631.582
|
|
L7_1.y = 245.04
|
|
L7_1.z = 771.777
|
|
L6_1.pos = L7_1
|
|
L7_1 = {}
|
|
L7_1.x = 0.0
|
|
L7_1.y = 0.0
|
|
L7_1.z = 0.0
|
|
L6_1.rot = L7_1
|
|
L6_1.level = 36
|
|
L6_1.drop_id = 1000100
|
|
L7_1 = {}
|
|
L8_1 = 6111
|
|
L7_1[1] = L8_1
|
|
L6_1.affix = L7_1
|
|
L6_1.area_id = 210
|
|
L7_1 = {}
|
|
L7_1.config_id = 146013
|
|
L7_1.monster_id = 21010301
|
|
L8_1 = {}
|
|
L8_1.x = 639.693
|
|
L8_1.y = 245.436
|
|
L8_1.z = 773.292
|
|
L7_1.pos = L8_1
|
|
L8_1 = {}
|
|
L8_1.x = 0.0
|
|
L8_1.y = 305.401
|
|
L8_1.z = 0.0
|
|
L7_1.rot = L8_1
|
|
L7_1.level = 36
|
|
L7_1.drop_id = 1000100
|
|
L8_1 = {}
|
|
L9_1 = 6111
|
|
L8_1[1] = L9_1
|
|
L7_1.affix = L8_1
|
|
L7_1.area_id = 210
|
|
L8_1 = {}
|
|
L8_1.config_id = 146014
|
|
L8_1.monster_id = 21030201
|
|
L9_1 = {}
|
|
L9_1.x = 646.817
|
|
L9_1.y = 247.08
|
|
L9_1.z = 780.648
|
|
L8_1.pos = L9_1
|
|
L9_1 = {}
|
|
L9_1.x = 0.0
|
|
L9_1.y = 232.881
|
|
L9_1.z = 0.0
|
|
L8_1.rot = L9_1
|
|
L8_1.level = 36
|
|
L8_1.drop_id = 1000100
|
|
L9_1 = {}
|
|
L10_1 = 6111
|
|
L9_1[1] = L10_1
|
|
L8_1.affix = L9_1
|
|
L8_1.area_id = 210
|
|
L9_1 = {}
|
|
L9_1.config_id = 146015
|
|
L9_1.monster_id = 21020501
|
|
L10_1 = {}
|
|
L10_1.x = 633.415
|
|
L10_1.y = 245.101
|
|
L10_1.z = 779.552
|
|
L9_1.pos = L10_1
|
|
L10_1 = {}
|
|
L10_1.x = 0.0
|
|
L10_1.y = 157.023
|
|
L10_1.z = 0.0
|
|
L9_1.rot = L10_1
|
|
L9_1.level = 36
|
|
L9_1.drop_id = 1000100
|
|
L10_1 = {}
|
|
L11_1 = 5135
|
|
L12_1 = 6110
|
|
L10_1[1] = L11_1
|
|
L10_1[2] = L12_1
|
|
L9_1.affix = L10_1
|
|
L9_1.area_id = 210
|
|
L10_1 = {}
|
|
L10_1.config_id = 146016
|
|
L10_1.monster_id = 22010101
|
|
L11_1 = {}
|
|
L11_1.x = 630.696
|
|
L11_1.y = 245.141
|
|
L11_1.z = 776.257
|
|
L10_1.pos = L11_1
|
|
L11_1 = {}
|
|
L11_1.x = 0.0
|
|
L11_1.y = 130.606
|
|
L11_1.z = 0.0
|
|
L10_1.rot = L11_1
|
|
L10_1.level = 36
|
|
L10_1.drop_id = 1000100
|
|
L10_1.area_id = 210
|
|
L11_1 = {}
|
|
L11_1.config_id = 146017
|
|
L11_1.monster_id = 22010401
|
|
L12_1 = {}
|
|
L12_1.x = 638.549
|
|
L12_1.y = 245.403
|
|
L12_1.z = 777.958
|
|
L11_1.pos = L12_1
|
|
L12_1 = {}
|
|
L12_1.x = 0.0
|
|
L12_1.y = 204.843
|
|
L12_1.z = 0.0
|
|
L11_1.rot = L12_1
|
|
L11_1.level = 36
|
|
L11_1.drop_id = 1000100
|
|
L11_1.area_id = 210
|
|
L5_1[1] = L6_1
|
|
L5_1[2] = L7_1
|
|
L5_1[3] = L8_1
|
|
L5_1[4] = L9_1
|
|
L5_1[5] = L10_1
|
|
L5_1[6] = L11_1
|
|
monsters = L5_1
|
|
L5_1 = {}
|
|
npcs = L5_1
|
|
L5_1 = {}
|
|
L6_1 = {}
|
|
L6_1.config_id = 146001
|
|
L6_1.gadget_id = 70900056
|
|
L7_1 = {}
|
|
L7_1.x = 622.332
|
|
L7_1.y = 245.293
|
|
L7_1.z = 780.093
|
|
L6_1.pos = L7_1
|
|
L7_1 = {}
|
|
L7_1.x = 0.0
|
|
L7_1.y = 0.0
|
|
L7_1.z = 0.0
|
|
L6_1.rot = L7_1
|
|
L6_1.level = 1
|
|
L6_1.persistent = true
|
|
L6_1.area_id = 210
|
|
L7_1 = {}
|
|
L7_1.config_id = 146002
|
|
L7_1.gadget_id = 70900056
|
|
L8_1 = {}
|
|
L8_1.x = 649.91
|
|
L8_1.y = 250.061
|
|
L8_1.z = 784.706
|
|
L7_1.pos = L8_1
|
|
L8_1 = {}
|
|
L8_1.x = 14.825
|
|
L8_1.y = 4.318
|
|
L8_1.z = 6.244
|
|
L7_1.rot = L8_1
|
|
L7_1.level = 1
|
|
L7_1.persistent = true
|
|
L7_1.area_id = 210
|
|
L8_1 = {}
|
|
L8_1.config_id = 146003
|
|
L8_1.gadget_id = 70900056
|
|
L9_1 = {}
|
|
L9_1.x = 635.81
|
|
L9_1.y = 248.8
|
|
L9_1.z = 792.468
|
|
L8_1.pos = L9_1
|
|
L9_1 = {}
|
|
L9_1.x = 9.346
|
|
L9_1.y = 2.128
|
|
L9_1.z = 5.317
|
|
L8_1.rot = L9_1
|
|
L8_1.level = 1
|
|
L8_1.persistent = true
|
|
L8_1.area_id = 210
|
|
L9_1 = {}
|
|
L9_1.config_id = 146004
|
|
L9_1.gadget_id = 70900056
|
|
L10_1 = {}
|
|
L10_1.x = 628.41
|
|
L10_1.y = 245.343
|
|
L10_1.z = 764.979
|
|
L9_1.pos = L10_1
|
|
L10_1 = {}
|
|
L10_1.x = 0.0
|
|
L10_1.y = 0.0
|
|
L10_1.z = 0.0
|
|
L9_1.rot = L10_1
|
|
L9_1.level = 1
|
|
L9_1.persistent = true
|
|
L9_1.area_id = 210
|
|
L10_1 = {}
|
|
L10_1.config_id = 146005
|
|
L10_1.gadget_id = 70900056
|
|
L11_1 = {}
|
|
L11_1.x = 644.1
|
|
L11_1.y = 246.392
|
|
L11_1.z = 768.257
|
|
L10_1.pos = L11_1
|
|
L11_1 = {}
|
|
L11_1.x = 4.494
|
|
L11_1.y = 352.843
|
|
L11_1.z = 8.694
|
|
L10_1.rot = L11_1
|
|
L10_1.level = 1
|
|
L10_1.persistent = true
|
|
L10_1.area_id = 210
|
|
L11_1 = {}
|
|
L11_1.config_id = 146006
|
|
L11_1.gadget_id = 70211159
|
|
L12_1 = {}
|
|
L12_1.x = 635.082
|
|
L12_1.y = 245.023
|
|
L12_1.z = 775.676
|
|
L11_1.pos = L12_1
|
|
L12_1 = {}
|
|
L12_1.x = 0.0
|
|
L12_1.y = 337.272
|
|
L12_1.z = 0.0
|
|
L11_1.rot = L12_1
|
|
L11_1.level = 16
|
|
L11_1.drop_tag = "\230\184\138\228\184\139\229\174\171\230\180\187\229\138\168\232\182\133\231\186\167\231\168\187\229\166\187"
|
|
L12_1 = GadgetState
|
|
L12_1 = L12_1.ChestLocked
|
|
L11_1.state = L12_1
|
|
L11_1.isOneoff = true
|
|
L11_1.persistent = true
|
|
L11_1.area_id = 210
|
|
L5_1[1] = L6_1
|
|
L5_1[2] = L7_1
|
|
L5_1[3] = L8_1
|
|
L5_1[4] = L9_1
|
|
L5_1[5] = L10_1
|
|
L5_1[6] = L11_1
|
|
gadgets = L5_1
|
|
L5_1 = {}
|
|
regions = L5_1
|
|
L5_1 = {}
|
|
L6_1 = {}
|
|
L6_1.config_id = 1146007
|
|
L6_1.name = "GADGET_STATE_CHANGE_146007"
|
|
L7_1 = EventType
|
|
L7_1 = L7_1.EVENT_GADGET_STATE_CHANGE
|
|
L6_1.event = L7_1
|
|
L6_1.source = ""
|
|
L6_1.condition = "condition_EVENT_GADGET_STATE_CHANGE_146007"
|
|
L6_1.action = "action_EVENT_GADGET_STATE_CHANGE_146007"
|
|
L6_1.trigger_count = 0
|
|
L7_1 = {}
|
|
L7_1.config_id = 1146008
|
|
L7_1.name = "VARIABLE_CHANGE_146008"
|
|
L8_1 = EventType
|
|
L8_1 = L8_1.EVENT_VARIABLE_CHANGE
|
|
L7_1.event = L8_1
|
|
L7_1.source = "gear_reset"
|
|
L7_1.condition = ""
|
|
L7_1.action = "action_EVENT_VARIABLE_CHANGE_146008"
|
|
L7_1.trigger_count = 0
|
|
L8_1 = {}
|
|
L8_1.config_id = 1146009
|
|
L8_1.name = "VARIABLE_CHANGE_146009"
|
|
L9_1 = EventType
|
|
L9_1 = L9_1.EVENT_VARIABLE_CHANGE
|
|
L8_1.event = L9_1
|
|
L8_1.source = "trigger_output"
|
|
L8_1.condition = "condition_EVENT_VARIABLE_CHANGE_146009"
|
|
L8_1.action = ""
|
|
L8_1.trigger_count = 0
|
|
L9_1 = {}
|
|
L9_1.config_id = 1146010
|
|
L9_1.name = "VARIABLE_CHANGE_146010"
|
|
L10_1 = EventType
|
|
L10_1 = L10_1.EVENT_VARIABLE_CHANGE
|
|
L9_1.event = L10_1
|
|
L9_1.source = "trigger_output"
|
|
L9_1.condition = "condition_EVENT_VARIABLE_CHANGE_146010"
|
|
L9_1.action = "action_EVENT_VARIABLE_CHANGE_146010"
|
|
L10_1 = {}
|
|
L10_1.config_id = 1146018
|
|
L10_1.name = "ANY_MONSTER_DIE_146018"
|
|
L11_1 = EventType
|
|
L11_1 = L11_1.EVENT_ANY_MONSTER_DIE
|
|
L10_1.event = L11_1
|
|
L10_1.source = ""
|
|
L10_1.condition = "condition_EVENT_ANY_MONSTER_DIE_146018"
|
|
L10_1.action = "action_EVENT_ANY_MONSTER_DIE_146018"
|
|
L11_1 = {}
|
|
L11_1.config_id = 1146019
|
|
L11_1.name = "ANY_MONSTER_DIE_146019"
|
|
L12_1 = EventType
|
|
L12_1 = L12_1.EVENT_ANY_MONSTER_DIE
|
|
L11_1.event = L12_1
|
|
L11_1.source = ""
|
|
L11_1.condition = "condition_EVENT_ANY_MONSTER_DIE_146019"
|
|
L11_1.action = "action_EVENT_ANY_MONSTER_DIE_146019"
|
|
L5_1[1] = L6_1
|
|
L5_1[2] = L7_1
|
|
L5_1[3] = L8_1
|
|
L5_1[4] = L9_1
|
|
L5_1[5] = L10_1
|
|
L5_1[6] = L11_1
|
|
triggers = L5_1
|
|
L5_1 = {}
|
|
L6_1 = {}
|
|
L6_1.configId = 1
|
|
L6_1.name = "sort"
|
|
L6_1.value = 0
|
|
L6_1.no_refresh = true
|
|
L7_1 = {}
|
|
L7_1.configId = 2
|
|
L7_1.name = "gear_reset"
|
|
L7_1.value = 0
|
|
L7_1.no_refresh = true
|
|
L8_1 = {}
|
|
L8_1.configId = 3
|
|
L8_1.name = "v_error"
|
|
L8_1.value = 0
|
|
L8_1.no_refresh = true
|
|
L9_1 = {}
|
|
L9_1.configId = 4
|
|
L9_1.name = "trigger_output"
|
|
L9_1.value = 0
|
|
L9_1.no_refresh = true
|
|
L10_1 = {}
|
|
L10_1.configId = 5
|
|
L10_1.name = "flag"
|
|
L10_1.value = 0
|
|
L10_1.no_refresh = true
|
|
L5_1[1] = L6_1
|
|
L5_1[2] = L7_1
|
|
L5_1[3] = L8_1
|
|
L5_1[4] = L9_1
|
|
L5_1[5] = L10_1
|
|
variables = L5_1
|
|
L5_1 = {}
|
|
L5_1.suite = 1
|
|
L5_1.end_suite = 0
|
|
L5_1.rand_suite = false
|
|
init_config = L5_1
|
|
L5_1 = {}
|
|
L6_1 = {}
|
|
L7_1 = {}
|
|
L6_1.monsters = L7_1
|
|
L7_1 = {}
|
|
L8_1 = 146001
|
|
L9_1 = 146002
|
|
L10_1 = 146003
|
|
L11_1 = 146004
|
|
L12_1 = 146005
|
|
L13_1 = 146006
|
|
L7_1[1] = L8_1
|
|
L7_1[2] = L9_1
|
|
L7_1[3] = L10_1
|
|
L7_1[4] = L11_1
|
|
L7_1[5] = L12_1
|
|
L7_1[6] = L13_1
|
|
L6_1.gadgets = L7_1
|
|
L7_1 = {}
|
|
L6_1.regions = L7_1
|
|
L7_1 = {}
|
|
L8_1 = "GADGET_STATE_CHANGE_146007"
|
|
L9_1 = "VARIABLE_CHANGE_146008"
|
|
L10_1 = "VARIABLE_CHANGE_146009"
|
|
L11_1 = "VARIABLE_CHANGE_146010"
|
|
L7_1[1] = L8_1
|
|
L7_1[2] = L9_1
|
|
L7_1[3] = L10_1
|
|
L7_1[4] = L11_1
|
|
L6_1.triggers = L7_1
|
|
L6_1.rand_weight = 100
|
|
L7_1 = {}
|
|
L8_1 = {}
|
|
L9_1 = 146016
|
|
L10_1 = 146017
|
|
L8_1[1] = L9_1
|
|
L8_1[2] = L10_1
|
|
L7_1.monsters = L8_1
|
|
L8_1 = {}
|
|
L7_1.gadgets = L8_1
|
|
L8_1 = {}
|
|
L7_1.regions = L8_1
|
|
L8_1 = {}
|
|
L9_1 = "ANY_MONSTER_DIE_146018"
|
|
L8_1[1] = L9_1
|
|
L7_1.triggers = L8_1
|
|
L7_1.rand_weight = 100
|
|
L8_1 = {}
|
|
L9_1 = {}
|
|
L10_1 = 146012
|
|
L11_1 = 146013
|
|
L12_1 = 146014
|
|
L13_1 = 146015
|
|
L9_1[1] = L10_1
|
|
L9_1[2] = L11_1
|
|
L9_1[3] = L12_1
|
|
L9_1[4] = L13_1
|
|
L8_1.monsters = L9_1
|
|
L9_1 = {}
|
|
L8_1.gadgets = L9_1
|
|
L9_1 = {}
|
|
L8_1.regions = L9_1
|
|
L9_1 = {}
|
|
L10_1 = "ANY_MONSTER_DIE_146019"
|
|
L9_1[1] = L10_1
|
|
L8_1.triggers = L9_1
|
|
L8_1.rand_weight = 100
|
|
L5_1[1] = L6_1
|
|
L5_1[2] = L7_1
|
|
L5_1[3] = L8_1
|
|
suites = L5_1
|
|
function L5_1(A0_2, A1_2)
|
|
local L2_2, L3_2, L4_2, L5_2, L6_2, L7_2
|
|
L2_2 = 1
|
|
L3_2 = L1_1.gadget_array
|
|
L3_2 = #L3_2
|
|
L4_2 = 1
|
|
for L5_2 = L2_2, L3_2, L4_2 do
|
|
L6_2 = L1_1.gadget_array
|
|
L6_2 = L6_2[L5_2]
|
|
L7_2 = A1_2.param2
|
|
if L6_2 == L7_2 then
|
|
L6_2 = true
|
|
return L6_2
|
|
end
|
|
end
|
|
L2_2 = false
|
|
return L2_2
|
|
end
|
|
condition_EVENT_GADGET_STATE_CHANGE_146007 = L5_1
|
|
function L5_1(A0_2, A1_2)
|
|
local L2_2, L3_2, L4_2, L5_2, L6_2, L7_2, L8_2, L9_2
|
|
L2_2 = L4_1
|
|
if not (9 < L2_2) then
|
|
L2_2 = L4_1
|
|
if not (L2_2 <= 1) then
|
|
goto lbl_9
|
|
end
|
|
end
|
|
L2_2 = -1
|
|
do return L2_2 end
|
|
::lbl_9::
|
|
L2_2 = A1_2.param1
|
|
L3_2 = L1_1.active_step
|
|
if L2_2 == L3_2 then
|
|
L2_2 = 1
|
|
L3_2 = L4_1
|
|
L4_2 = 1
|
|
for L5_2 = L2_2, L3_2, L4_2 do
|
|
L6_2 = L1_1.gadget_array
|
|
L6_2 = L6_2[L5_2]
|
|
L7_2 = A1_2.param2
|
|
if L6_2 == L7_2 then
|
|
L6_2 = ScriptLib
|
|
L6_2 = L6_2.GetGroupVariableValue
|
|
L7_2 = A0_2
|
|
L8_2 = "sort"
|
|
L6_2 = L6_2(L7_2, L8_2)
|
|
L2_1 = L6_2
|
|
L6_2 = L2_1
|
|
L6_2 = 10 * L6_2
|
|
L6_2 = L6_2 + L5_2
|
|
L2_1 = L6_2
|
|
L6_2 = ScriptLib
|
|
L6_2 = L6_2.SetGroupVariableValue
|
|
L7_2 = A0_2
|
|
L8_2 = "sort"
|
|
L9_2 = L2_1
|
|
L6_2(L7_2, L8_2, L9_2)
|
|
break
|
|
end
|
|
L6_2 = L4_1
|
|
if L5_2 == L6_2 then
|
|
L6_2 = L1_1.gadget_array
|
|
L6_2 = L6_2[L5_2]
|
|
L7_2 = A1_2.param2
|
|
if L6_2 ~= L7_2 then
|
|
L6_2 = ScriptLib
|
|
L6_2 = L6_2.SetGroupVariableValue
|
|
L7_2 = A0_2
|
|
L8_2 = "v_error"
|
|
L9_2 = 1
|
|
L6_2(L7_2, L8_2, L9_2)
|
|
L6_2 = L2_1
|
|
L6_2 = 10 * L6_2
|
|
L2_1 = L6_2
|
|
end
|
|
end
|
|
end
|
|
end
|
|
L2_2 = L2_1
|
|
L3_2 = L4_1
|
|
L3_2 = L3_2 - 1
|
|
L3_2 = 10 ^ L3_2
|
|
if L2_2 > L3_2 then
|
|
L2_2 = ScriptLib
|
|
L2_2 = L2_2.GetGroupVariableValue
|
|
L3_2 = A0_2
|
|
L4_2 = "v_error"
|
|
L2_2 = L2_2(L3_2, L4_2)
|
|
L3_1 = L2_2
|
|
L2_2 = L3_1
|
|
if 0 == L2_2 then
|
|
L2_2 = L4_1
|
|
L3_2 = 1
|
|
L4_2 = -1
|
|
for L5_2 = L2_2, L3_2, L4_2 do
|
|
L6_2 = L2_1
|
|
L6_2 = L6_2 % 10
|
|
if L6_2 ~= L5_2 then
|
|
L6_2 = 1
|
|
L3_1 = L6_2
|
|
break
|
|
end
|
|
L6_2 = math
|
|
L6_2 = L6_2.floor
|
|
L7_2 = L2_1
|
|
L7_2 = L7_2 / 10
|
|
L6_2 = L6_2(L7_2)
|
|
L2_1 = L6_2
|
|
end
|
|
end
|
|
L2_2 = 0
|
|
L2_1 = L2_2
|
|
L2_2 = L3_1
|
|
if L2_2 ~= 1 then
|
|
L2_2 = -1
|
|
L3_1 = L2_2
|
|
end
|
|
L2_2 = ScriptLib
|
|
L2_2 = L2_2.SetGroupVariableValue
|
|
L3_2 = A0_2
|
|
L4_2 = "sort"
|
|
L5_2 = L2_1
|
|
L2_2(L3_2, L4_2, L5_2)
|
|
L2_2 = ScriptLib
|
|
L2_2 = L2_2.SetGroupVariableValue
|
|
L3_2 = A0_2
|
|
L4_2 = "gear_reset"
|
|
L5_2 = L3_1
|
|
L2_2(L3_2, L4_2, L5_2)
|
|
L2_2 = ScriptLib
|
|
L2_2 = L2_2.SetGroupVariableValue
|
|
L3_2 = A0_2
|
|
L4_2 = "v_error"
|
|
L5_2 = 0
|
|
L2_2(L3_2, L4_2, L5_2)
|
|
end
|
|
L2_2 = 0
|
|
return L2_2
|
|
end
|
|
action_EVENT_GADGET_STATE_CHANGE_146007 = L5_1
|
|
function L5_1(A0_2, A1_2)
|
|
local L2_2, L3_2, L4_2, L5_2, L6_2, L7_2, L8_2, L9_2, L10_2
|
|
L2_2 = A1_2.param1
|
|
L3_2 = A1_2.param2
|
|
if L2_2 == L3_2 then
|
|
L2_2 = -1
|
|
return L2_2
|
|
end
|
|
L2_2 = A1_2.param1
|
|
if L2_2 == 1 then
|
|
L2_2 = L1_1.reset_gear_list
|
|
L2_2 = #L2_2
|
|
if L2_2 == 0 then
|
|
L2_2 = suites
|
|
L2_2 = L2_2[1]
|
|
L2_2 = L2_2.gadgets
|
|
L1_1.reset_gear_list = L2_2
|
|
end
|
|
L2_2 = 1
|
|
L3_2 = L1_1.reset_gear_list
|
|
L3_2 = #L3_2
|
|
L4_2 = 1
|
|
for L5_2 = L2_2, L3_2, L4_2 do
|
|
L6_2 = ScriptLib
|
|
L6_2 = L6_2.SetGroupGadgetStateByConfigId
|
|
L7_2 = A0_2
|
|
L8_2 = 0
|
|
L9_2 = L1_1.reset_gear_list
|
|
L9_2 = L9_2[L5_2]
|
|
L10_2 = L1_1.inactive_step
|
|
L6_2(L7_2, L8_2, L9_2, L10_2)
|
|
end
|
|
L2_2 = ScriptLib
|
|
L2_2 = L2_2.SetGroupVariableValue
|
|
L3_2 = A0_2
|
|
L4_2 = "trigger_output"
|
|
L5_2 = -1
|
|
L2_2(L3_2, L4_2, L5_2)
|
|
else
|
|
L2_2 = A1_2.param1
|
|
if -1 == L2_2 then
|
|
L2_2 = ScriptLib
|
|
L2_2 = L2_2.SetGroupVariableValue
|
|
L3_2 = A0_2
|
|
L4_2 = "trigger_output"
|
|
L5_2 = 1
|
|
L2_2(L3_2, L4_2, L5_2)
|
|
end
|
|
end
|
|
L2_2 = ScriptLib
|
|
L2_2 = L2_2.SetGroupVariableValue
|
|
L3_2 = A0_2
|
|
L4_2 = "gear_reset"
|
|
L5_2 = 0
|
|
L2_2(L3_2, L4_2, L5_2)
|
|
L2_2 = 0
|
|
return L2_2
|
|
end
|
|
action_EVENT_VARIABLE_CHANGE_146008 = L5_1
|
|
function L5_1(A0_2, A1_2)
|
|
local L2_2, L3_2
|
|
L2_2 = A1_2.param1
|
|
L3_2 = A1_2.param2
|
|
if L2_2 == L3_2 then
|
|
L2_2 = false
|
|
return L2_2
|
|
end
|
|
L2_2 = A1_2.param1
|
|
if L2_2 == -1 then
|
|
L2_2 = true
|
|
return L2_2
|
|
end
|
|
L2_2 = false
|
|
return L2_2
|
|
end
|
|
condition_EVENT_VARIABLE_CHANGE_146009 = L5_1
|
|
function L5_1(A0_2, A1_2)
|
|
local L2_2, L3_2
|
|
L2_2 = A1_2.param1
|
|
L3_2 = A1_2.param2
|
|
if L2_2 == L3_2 then
|
|
L2_2 = false
|
|
return L2_2
|
|
end
|
|
L2_2 = A1_2.param1
|
|
if 0 < L2_2 then
|
|
L2_2 = true
|
|
return L2_2
|
|
end
|
|
L2_2 = false
|
|
return L2_2
|
|
end
|
|
condition_EVENT_VARIABLE_CHANGE_146010 = L5_1
|
|
function L5_1(A0_2, A1_2)
|
|
local L2_2, L3_2, L4_2, L5_2
|
|
L2_2 = ScriptLib
|
|
L2_2 = L2_2.AddExtraGroupSuite
|
|
L3_2 = A0_2
|
|
L4_2 = 177005146
|
|
L5_2 = 2
|
|
L2_2(L3_2, L4_2, L5_2)
|
|
L2_2 = ScriptLib
|
|
L2_2 = L2_2.KillGroupEntity
|
|
L3_2 = A0_2
|
|
L4_2 = {}
|
|
L4_2.group_id = 177005148
|
|
L5_2 = GroupKillPolicy
|
|
L5_2 = L5_2.GROUP_KILL_GADGET
|
|
L4_2.kill_policy = L5_2
|
|
L2_2 = L2_2(L3_2, L4_2)
|
|
if 0 ~= L2_2 then
|
|
L2_2 = ScriptLib
|
|
L2_2 = L2_2.PrintContextLog
|
|
L3_2 = A0_2
|
|
L4_2 = "@@ LUA_WARNING : kill_gadget_by_group"
|
|
L2_2(L3_2, L4_2)
|
|
L2_2 = -1
|
|
return L2_2
|
|
end
|
|
L2_2 = 0
|
|
return L2_2
|
|
end
|
|
action_EVENT_VARIABLE_CHANGE_146010 = L5_1
|
|
function L5_1(A0_2, A1_2)
|
|
local L2_2, L3_2
|
|
L2_2 = ScriptLib
|
|
L2_2 = L2_2.GetGroupMonsterCount
|
|
L3_2 = A0_2
|
|
L2_2 = L2_2(L3_2)
|
|
if L2_2 ~= 0 then
|
|
L2_2 = false
|
|
return L2_2
|
|
end
|
|
L2_2 = true
|
|
return L2_2
|
|
end
|
|
condition_EVENT_ANY_MONSTER_DIE_146018 = L5_1
|
|
function L5_1(A0_2, A1_2)
|
|
local L2_2, L3_2, L4_2, L5_2
|
|
L2_2 = ScriptLib
|
|
L2_2 = L2_2.AddExtraGroupSuite
|
|
L3_2 = A0_2
|
|
L4_2 = 177005146
|
|
L5_2 = 3
|
|
L2_2(L3_2, L4_2, L5_2)
|
|
L2_2 = 0
|
|
return L2_2
|
|
end
|
|
action_EVENT_ANY_MONSTER_DIE_146018 = L5_1
|
|
function L5_1(A0_2, A1_2)
|
|
local L2_2, L3_2
|
|
L2_2 = ScriptLib
|
|
L2_2 = L2_2.GetGroupMonsterCount
|
|
L3_2 = A0_2
|
|
L2_2 = L2_2(L3_2)
|
|
if L2_2 ~= 0 then
|
|
L2_2 = false
|
|
return L2_2
|
|
end
|
|
L2_2 = true
|
|
return L2_2
|
|
end
|
|
condition_EVENT_ANY_MONSTER_DIE_146019 = L5_1
|
|
function L5_1(A0_2, A1_2)
|
|
local L2_2, L3_2, L4_2, L5_2
|
|
L2_2 = ScriptLib
|
|
L2_2 = L2_2.SetGadgetStateByConfigId
|
|
L3_2 = A0_2
|
|
L4_2 = 146006
|
|
L5_2 = GadgetState
|
|
L5_2 = L5_2.Default
|
|
L2_2 = L2_2(L3_2, L4_2, L5_2)
|
|
if 0 ~= L2_2 then
|
|
L2_2 = ScriptLib
|
|
L2_2 = L2_2.PrintContextLog
|
|
L3_2 = A0_2
|
|
L4_2 = "@@ LUA_WARNING : set_gadget_state_by_configId"
|
|
L2_2(L3_2, L4_2)
|
|
L2_2 = -1
|
|
return L2_2
|
|
end
|
|
L2_2 = 0
|
|
return L2_2
|
|
end
|
|
action_EVENT_ANY_MONSTER_DIE_146019 = L5_1
|