local effect = require(mod_name .. ".lualib.effects") local pollution = require(mod_name .. ".lualib.pollution") local locations = require(mod_name .. ".lualib.locations") local quest_gui = require(mod_name .. ".lualib.quest_gui") local compi = require(mod_name .. '.lualib.compi') local story_actions = {} story_actions['explore'] = function() quest_gui.visible(false) end story_actions['handmining'] = function() quest_gui.visible(false) end story_actions['handmining'] = function() quest_gui.visible(false) end story_actions['smelting'] = function() quest_gui.visible(false) end story_actions['automining'] = function() quest_gui.visible(false) end story_actions['handcrafting'] = function() local compi_box = locations.get_surface_ent_from_tag(global.main_surface,'compi-box') compi_box.remove_item({name='transport-belt',count=2}) compi_box.remove_item({name='stone-furnace',count=1}) compi_box.remove_item({name='burner-mining-drill',count=1}) for item_name, item_count in pairs(compi_box.get_inventory(defines.inventory.chest).get_contents()) do main_player().insert({name=item_name,count=item_count}) end compi_box.destroy() quest_gui.visible(false) end story_actions['trigger-build'] = function() quest_gui.visible(false) compi.say() end story_actions['repair-assembler'] = function() effect.swap_tagged_with_fixed_recipe('iron-gear-wheel-wreck','iron-gear-wheel') locations.get_surface_ent_from_tag(global.main_surface,'gear-feed').destroy() effect.refund_consumer('gear-feed',{{name='iron-plate',goal=50}}) quest_gui.visible(false) end story_actions['repair-lab'] = function() effect.swap_tagged_with_fixed_recipe('automation-science-pack-wreck','automation-science-pack') effect.swap_tagged_with_fixed_entity('lab-wreck','escape-pod-lab') locations.get_surface_ent_from_tag(global.main_surface,'lab-feed').destroy() effect.refund_consumer('lab-feed',{{name='iron-plate',goal=50}}) quest_gui.visible(false) end story_actions['load-lab'] = function() quest_gui.visible(false) end story_actions['electronics'] = function() quest_gui.visible(false) end story_actions['build-radar'] = function() effect.activate_radar(true) quest_gui.visible(false) end story_actions['trigger-radar'] = function() effect.activate_radar(true) quest_gui.visible(false) compi.say() end story_actions['scan-wreck'] = function() pollution.reset() quest_gui.visible(false) end story_actions['trigger-attacks'] = function() compi.say() quest_gui.visible(false) end story_actions['prepare'] = function() quest_gui.visible(false) end story_actions['leave'] = function() quest_gui.visible(false) compi.say() end story_actions['reach-pond'] = function() effect.turn_biters_hostile('starting-area') quest_gui.visible(false) end story_actions['rebuild'] = function() quest_gui.visible(false) end story_actions['military'] = function() pollution.reset() quest_gui.visible(false) end story_actions['entrench'] = function() quest_gui.visible(false) end story_actions['trigger-second-wave'] = function() quest_gui.visible(false) end story_actions['fortify'] = function() quest_gui.visible(false) end story_actions['survive'] = function() effect.activate_side_menu(true) quest_gui.visible(false) end return story_actions