mirror of
https://github.com/ComfyFactory/ComfyFactorio.git
synced 2025-02-09 13:37:02 +02:00
rocket now blows up after you launch it
This commit is contained in:
parent
dd4f5491a1
commit
b7c0c6697a
@ -1610,7 +1610,6 @@ local function event_on_rocket_launched(event)
|
||||
local a = Balance.rocket_launch_coin_reward
|
||||
Common.give_items_to_crew({{name = 'coin', count = a}})
|
||||
memory.playtesting_stats.coins_gained_by_rocket_launches = memory.playtesting_stats.coins_gained_by_rocket_launches + a
|
||||
|
||||
end
|
||||
|
||||
local force = memory.force
|
||||
@ -1626,6 +1625,11 @@ local function event_on_rocket_launched(event)
|
||||
destination.dynamic_data.quest_progress = destination.dynamic_data.rocketsilohp
|
||||
Quest.try_resolve_quest()
|
||||
end
|
||||
|
||||
if destination.dynamic_data.rocketsilos and destination.dynamic_data.rocketsilos[1] and destination.dynamic_data.rocketsilos[1].valid then
|
||||
destination.dynamic_data.rocketsilos[1].die()
|
||||
destination.dynamic_data.rocketsilos = nil
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user