Skip to content

Commit

Permalink
moondrop turd balance tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
notnotmelon committed Nov 20, 2023
1 parent 949bd91 commit 4c25779
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 17 deletions.
2 changes: 2 additions & 0 deletions changelog.txt
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@ Date: ???
- fixed nuclear caravans (https://github.com/pyanodon/pybugreports/issues/334)
- fixed reproductive complex sometimes eating your modules (https://github.com/pyanodon/pybugreports/issues/322)
- changed the item description for navens (https://github.com/pyanodon/pybugreports/issues/308)
- reworked moondrop turd path 2 & added a 100% energy penalty to path 3
- buffed moondrop turd path 3 speed increase from 10% to 20%
---------------------------------------------------------------------------------------------------
Version: 2.1.9
Date: 2023-9-4
Expand Down
33 changes: 16 additions & 17 deletions prototypes/upgrades/moondrop.lua
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,23 @@ if data then
recipe.name = recipe.name .. '-cu'
FUN.add_ingredient(recipe, {name = 'copper-ore', amount = 10, type = 'item'})
FUN.multiply_result_amount(recipe, 'moondrop', 1.1)
recipe.energy_required = math.ceil(recipe.energy_required * 0.9)
recipe.energy_required = math.ceil(recipe.energy_required * 0.8)
data:extend{recipe}
end

data:extend{{
name = 'methane-co2-with-lamp',
results = {{type = 'fluid', amount = 60, name = 'methane', fluidbox_index = 1}},
energy_required = 15,
ingredients = {
{type = 'item', amount = 1, name = 'small-lamp'},
{type = 'fluid', amount = 100, name = 'water', fluidbox_index = 3},
},
category = 'moon',
enabled = false,
type = 'recipe'
}}

data:extend{{
name = 'moondrop-co2',
results = {{type = 'fluid', amount = 100, name = 'carbon-dioxide', fluidbox_index = 1}},
Expand All @@ -24,17 +37,6 @@ if data then
enabled = false,
type = 'recipe'
}}

for i, machine_recipe in pairs({
table.deepcopy(data.raw.recipe['moondrop-greenhouse-mk01']),
table.deepcopy(data.raw.recipe['moondrop-greenhouse-mk02']),
table.deepcopy(data.raw.recipe['moondrop-greenhouse-mk03']),
table.deepcopy(data.raw.recipe['moondrop-greenhouse-mk04']),
}) do
machine_recipe.name = machine_recipe.name .. '-with-lamp'
FUN.add_ingredient(machine_recipe, {name = 'small-lamp', amount = 20 * i, type = 'item'})
data:extend{machine_recipe}
end
end

return {
Expand Down Expand Up @@ -78,11 +80,7 @@ return {
icon_size = 128,
order = 'c-a',
effects = { -- the effects the tech will have on the building. valid types: 'module-effects', 'unlock-recipe', 'lock-recipe', 'recipe-replacement'
{consumption = 0.5, speed = 0.2, productivity = 0.02, type = 'module-effects'},
{old = 'moondrop-greenhouse-mk01', new = 'moondrop-greenhouse-mk01-with-lamp', type = 'recipe-replacement'},
{old = 'moondrop-greenhouse-mk02', new = 'moondrop-greenhouse-mk02-with-lamp', type = 'recipe-replacement'},
{old = 'moondrop-greenhouse-mk03', new = 'moondrop-greenhouse-mk03-with-lamp', type = 'recipe-replacement'},
{old = 'moondrop-greenhouse-mk04', new = 'moondrop-greenhouse-mk04-with-lamp', type = 'recipe-replacement'},
{old = 'methane-co2', new = 'methane-co2-with-lamp', type = 'recipe-replacement'},
}
},
{
Expand All @@ -91,6 +89,7 @@ return {
icon_size = 128,
order = 'c-a',
effects = { -- the effects the tech will have on the building. valid types: 'module-effects', 'unlock-recipe', 'lock-recipe', 'recipe-replacement'
{consumption = 1, type = 'module-effects'},
{recipe = 'moondrop-co2', type = 'unlock-recipe'}
}
}
Expand Down

0 comments on commit 4c25779

Please sign in to comment.