Skip to content

Commit

Permalink
Added configurable triggers for acetone and urea (#924, #928)
Browse files Browse the repository at this point in the history
  • Loading branch information
KiwiHawk authored Aug 21, 2023
1 parent 1413b21 commit b6d117e
Show file tree
Hide file tree
Showing 6 changed files with 29 additions and 13 deletions.
3 changes: 3 additions & 0 deletions angelsbioprocessing/prototypes/bio-processing-triggers.lua
Original file line number Diff line number Diff line change
Expand Up @@ -42,3 +42,6 @@ if angelsmods.triggers.bio_pastes["zinc"] then
angelsmods.trigger.ores["zinc"] = true
angelsmods.trigger.smelting_products["zinc"].powder = true
end

angelsmods.trigger.gas_acetone = true
angelsmods.trigger.gas_urea = true
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@ if angelsmods.industries.tech then
AI.core_replace("turrets", "war", "basic")
AI.core_replace("flammables", "war", "enhance")
-- REFINING
-- PETROCHEM
AI.core_replace("basic-chemistry", "processing", "basic")
-- SMELTING
AI.core_replace("angels-solder-smelting-basic", "processing", "basic")
-- BIO PROCESSING
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ if angelsmods.industries.tech then
"logistics",
"turrets",
-- REFINING
-- PETROCHEM
"basic-chemistry",
-- SMELTING
"angels-solder-smelting-basic",
-- BIO PROCESSING
Expand Down
1 change: 1 addition & 0 deletions angelspetrochem/changelog.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ Date: ??.??.????
- Split tech Sodium processing into Sodium processing 1 and Sodium processing 2 (922)
Bugfixes:
- Fixed recipe order of carbon products to correctly display in helmod
- Fixed fertiliser not being craftable in mod configurations (924)
---------------------------------------------------------------------------------------------------
Version: 0.9.24
Date: 23.02.2023
Expand Down
2 changes: 2 additions & 0 deletions angelspetrochem/data.lua
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@ angelsmods.trigger.gas_ammonium_chloride = false
angelsmods.trigger.early_sulfuric_acid = false
angelsmods.trigger.gas_hydrogen_fluoride = settings.startup["angels-enable-acids"].value
or (mods["angelsbioprocessing"] and true or false)
angelsmods.trigger.gas_acetone = angelsmods.trigger.resin
angelsmods.trigger.gas_urea = (mods["bobgreenhouse"] or angelsmods.trigger.resin) and true or false

--HIDE UNUSED BUILDINGS
angelsmods.trigger.disable_bobs_electrolysers = settings.startup["angels-disable-bobs-electrolysers"].value
Expand Down
32 changes: 19 additions & 13 deletions angelspetrochem/prototypes/override/angelspetrochem.lua
Original file line number Diff line number Diff line change
Expand Up @@ -184,25 +184,31 @@ end
if angelsmods.functions.is_special_vanilla() then
OV.disable_recipe({
"solid-calcium-chloride",
"cumene-process", -- "gas-acetone"
"gas-phosgene",
})
OV.remove_prereq("angels-nitrogen-processing-2", "chlorine-processing-1")
angelsmods.functions.add_flag({
"solid-calcium-chloride",
"gas-phosgene",
}, "hidden")
end

if angelsmods.bioprocessing then
else
OV.disable_recipe({
"gas-urea",
})
angelsmods.functions.add_flag({
"gas-urea",
"gas-acetone",
}, "hidden")
end
if angelsmods.trigger.gas_acetone then
else
OV.disable_recipe({
"cumene-process",
})
angelsmods.functions.add_flag({
"gas-acetone",
}, "hidden")
end

if angelsmods.trigger.gas_urea then
else
OV.disable_recipe({
"gas-urea",
})
angelsmods.functions.add_flag({
"gas-urea",
}, "hidden")
end

if angelsmods.trigger.resin then
Expand Down

0 comments on commit b6d117e

Please sign in to comment.