Skip to content

Commit

Permalink
Added custom message when trying to insert an invalid item into a "fu…
Browse files Browse the repository at this point in the history
…rnace" type entity (#933)
  • Loading branch information
KiwiHawk authored Sep 18, 2023
1 parent 2130a99 commit 7159bfb
Show file tree
Hide file tree
Showing 8 changed files with 13 additions and 0 deletions.
1 change: 1 addition & 0 deletions angelsbioprocessing/changelog.txt
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ Date: xx.xx.xxxx
- Made wood production available earlier (932)
- Recipe changes for Tree seed generators, Arboretum, and Composter
- Tech tree changes
- Added custom error message for when trying to insert invalid items into butchery, composter, or hatchery (933)
---------------------------------------------------------------------------------------------------
Version: 0.7.24
Date: 23.02.2023
Expand Down
5 changes: 5 additions & 0 deletions angelsbioprocessing/locale/en/bio-processing.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -653,3 +653,8 @@ angels-bio-tile-pollution-absorbtion-multiplier=Biologically active tile polluti

[mod-setting-description]
angels-bio-tile-pollution-absorbtion-multiplier=Increases the pollution absorption to reduce the pollution cloud in your base.

[cant_insert]
angels-butchery-limitation=__1__ cannot be butchered.
angels-composter-limitation=__1__ cannot be composted.
angels-hatchery-limitation=__1__ cannot be incubated.
1 change: 1 addition & 0 deletions angelsbioprocessing/prototypes/buildings/butchery.lua
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ data:extend({
selection_box = { { -1.5, -1.5 }, { 1.5, 1.5 } },
drawing_box = { { -1.5, -1.75 }, { 1.5, 1.5 } },
crafting_categories = { "bio-butchery" },
cant_insert_at_source_message_key = "cant_insert.angels-butchery-limitation",
module_specification = {
module_slots = 2,
},
Expand Down
1 change: 1 addition & 0 deletions angelsbioprocessing/prototypes/buildings/composter.lua
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ data:extend({
collision_box = { { -1.4, -1.4 }, { 1.4, 1.4 } },
selection_box = { { -1.5, -1.5 }, { 1.5, 1.5 } },
crafting_categories = { "angels-bio-void" },
cant_insert_at_source_message_key = "cant_insert.angels-composter-limitation",
module_specification = {
module_slots = 2,
},
Expand Down
1 change: 1 addition & 0 deletions angelsbioprocessing/prototypes/buildings/hatchery.lua
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ data:extend({
selection_box = { { -1.5, -1.5 }, { 1.5, 1.5 } },
drawing_box = { { -1.5, -1.75 }, { 1.5, 1.5 } },
crafting_categories = { "bio-hatchery" },
cant_insert_at_source_message_key = "cant_insert.angels-hatchery-limitation",
module_specification = {
module_slots = 2,
},
Expand Down
1 change: 1 addition & 0 deletions angelsrefining/changelog.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ Date: xx.xx.xxxx
- Moved Electro-refining to purple science. Replaced Crystal catalyst with Hybrid catalyst in Thorium sorting recipe (909)
- Compatibility with Bob's changes (911)
- Enabled productivity modules for Thorium Ore sorting recipe (929)
- Added custom error message for when trying to insert invalid items into a barreling pump (933)
---------------------------------------------------------------------------------------------------
Version: 0.12.4
Date: 23.02.2023
Expand Down
2 changes: 2 additions & 0 deletions angelsrefining/locale/en/water-treatment.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -92,3 +92,5 @@ water-treatment=Essential methods for the treatment of impure water.
angels-fluid-barreling=Methods to fill fluids into containers for alternative transport.
water-washing=Processing of mud water and extraction of sediments.
[cant_insert]
angels-barreling-pump-limitation=__1__ cannot be filled.
1 change: 1 addition & 0 deletions angelsrefining/prototypes/buildings/barreling-pump.lua
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,7 @@ if angelsmods.trigger.enable_auto_barreling then
barreling_pump.result_inventory_size = 1
barreling_pump.source_inventory_size = 1
barreling_pump.ingredient_count = nil
barreling_pump.cant_insert_at_source_message_key = "cant_insert.angels-barreling-pump-limitation",
end

data:extend({ barreling_pump })

0 comments on commit 7159bfb

Please sign in to comment.