diff --git a/changelog.txt b/changelog.txt index 208faef3..9168a9e5 100644 --- a/changelog.txt +++ b/changelog.txt @@ -1,7 +1,9 @@ --------------------------------------------------------------------------------------------------- Version: 2.1.7 -Date: ??? +Date: 2023-11-2 Changes: + - Replaced explosives with gunpowder in cannon shell recipe + - Changed explosive cannon shell recipe to be 1 cannon shell plus 5 explosives --------------------------------------------------------------------------------------------------- Version: 2.1.6 Date: 2023-10-31 diff --git a/notes.txt b/notes.txt index 90ae2c5d..04f2e946 100644 --- a/notes.txt +++ b/notes.txt @@ -4,3 +4,6 @@ make oil finite same as py petroleum handling -- no bull shit mechanics just limited oil got 4 good choices for making oil from things you produce and oleochemicals can make an unlimited supply + + +add gunpowder to artillery shell \ No newline at end of file diff --git a/prototypes/updates/base-updates.lua b/prototypes/updates/base-updates.lua index 6f648239..1dd2dc43 100644 --- a/prototypes/updates/base-updates.lua +++ b/prototypes/updates/base-updates.lua @@ -264,6 +264,22 @@ data.raw.item["nuclear-fuel"].burnt_result = nil data.raw["gun"]["artillery-wagon-cannon"].attack_parameters.range = 2 * 32 +--update cannon and artillery shells to have gunpowder +RECIPE("cannon-shell"):remove_ingredient("explosives"):add_ingredient({type = "item", name = "gunpowder", amount = 10}) + +RECIPE { + type = "recipe", + name = "explosive-cannon-shell", + category = "crafting", + enabled = false, + energy_required = 8, + ingredients = { + {type = "item", name = "cannon-shell", amount = 1}, + {type = "item", name = "explosives", amount = 5}, + }, + results = {{type = "item", name = "explosive-cannon-shell", amount = 1}} +} + ITEM("productivity-module"):set_fields{ effect = {