1
0
mirror of https://github.com/ComfyFactory/ComfyFactorio.git synced 2025-01-14 02:34:09 +02:00

journey balancing for 2.0

This commit is contained in:
hanakocz 2024-10-21 17:58:50 +02:00
parent 82bad772a6
commit b201d2a3d7
2 changed files with 6 additions and 3 deletions

View File

@ -576,11 +576,11 @@ function Public.hard_reset(journey)
journey.mothership_cargo = {}
journey.mothership_cargo['uranium-fuel-cell'] = 10
journey.mothership_cargo['satellite'] = 1
journey.mothership_cargo['nuclear-reactor'] = 60
journey.mothership_cargo['nuclear-reactor'] = 6
journey.mothership_cargo_space = {
['satellite'] = 1,
['uranium-fuel-cell'] = 0,
['nuclear-reactor'] = 60
['nuclear-reactor'] = 6
}
journey.bonus_goods = {}
journey.bonus_goods['loader'] = 3
@ -1617,7 +1617,7 @@ function Public.deal_damage_to_beacon(journey, incoming_damage)
if journey.beacon_objective_health <= 0 then
table.insert(journey.mothership_messages, 'Beaming everyone up, triggerring emergency departure.')
table.insert(journey.mothership_messages, '[img=item/nuclear-reactor] Emergency power plant burned down ;_;')
journey.mothership_cargo['nuclear-reactor'] = journey.mothership_cargo['nuclear-reactor'] - 30
journey.mothership_cargo['nuclear-reactor'] = journey.mothership_cargo['nuclear-reactor'] - 3
if journey.mothership_cargo['nuclear-reactor'] < 0 then
table.insert(journey.mothership_messages, 'Aborting, there is not enough emergency fuel. Shutting systems off...')
for _ = 1, #journey.mothership_messages, 1 do

View File

@ -1,6 +1,9 @@
--[[
Journey, launch a rocket in increasingly harder getting worlds. - MewMew
]]--
if script.active_mods['space-age'] then
error('Journey Scenario is not compatible with the Space Age mod. Please disable the mod and try again', 2)
end
local Server = require 'utils.server'
local Constants = require 'maps.journey.constants'