diff --git a/changelog.txt b/changelog.txt index b756bb5..884b493 100644 --- a/changelog.txt +++ b/changelog.txt @@ -1,6 +1,8 @@ --------------------------------------------------------------------------------------------------- Version: 1.0.29 Date: 08.06.2022 + Features: + - added option for legacy icons on rare metals Bugfixes: - fix bug with industrial revolution --------------------------------------------------------------------------------------------------- diff --git a/data-final-fixes.lua b/data-final-fixes.lua index 11a7ac0..7dcc99c 100644 --- a/data-final-fixes.lua +++ b/data-final-fixes.lua @@ -1,5 +1,8 @@ --fix upgradeables bounding boxes require('scripts/upgrades') +--legacy icons +require('scripts/legacy_icons') + --insert tech if data.raw.lab['lab'] then table.insert(data.raw.lab['lab'].inputs, 'fi_ki_science') diff --git a/locale/en/lang_en.cfg b/locale/en/lang_en.cfg index 9fae301..443596a 100644 --- a/locale/en/lang_en.cfg +++ b/locale/en/lang_en.cfg @@ -645,6 +645,8 @@ el_ki_core_energy_usage_input_3=KI3 core power input maximum overhaul_science=Enable [color=#880fb4]science overhaul[/color]. retexture_science=Enable [color=green]science re-texturing[/color]. +legacy_icons=Enable [color=#96b40f]legacy icons[/color]. + [mod-setting-description] el_ki_core_productivity=Allows to achieve very high productivity values in f.e. crafting machines, so use with caution. overhaul_mode=Overaul vanilla/Krastorio2 by inserting 248k in progression, aswell as in techs and recipes. \n[color=red]NOTE: When 248k is added in already existing save this may cause problems. For best gameplay use this on new world.[/color] @@ -654,6 +656,8 @@ override_krastorio_endgame=Adjust Krastorio2 recipes for Anti-matter reactor, In overhaul_science=[color=red][WIP][/color]. Change science by adding additional lab for exotic science. Will include more ways to make science and simulation methods in the future. \n[color=red]Will not work with Krastorio2. [/color] retexture_science=Re-textures science packs with 248k icons. \n[color=red]Will not work with Krastorio2. [/color] +legacy_icons=Adds back the legacy textures for fission stage rare metals. + [item-limitation] limitation_message=This module can not be used here. diff --git a/ressources/legacy_icons/fi_materials_gold.png b/ressources/legacy_icons/fi_materials_gold.png new file mode 100644 index 0000000..a502c31 Binary files /dev/null and b/ressources/legacy_icons/fi_materials_gold.png differ diff --git a/ressources/legacy_icons/fi_materials_neodym.png b/ressources/legacy_icons/fi_materials_neodym.png new file mode 100644 index 0000000..926d93e Binary files /dev/null and b/ressources/legacy_icons/fi_materials_neodym.png differ diff --git a/ressources/legacy_icons/fi_materials_titan.png b/ressources/legacy_icons/fi_materials_titan.png new file mode 100644 index 0000000..526889e Binary files /dev/null and b/ressources/legacy_icons/fi_materials_titan.png differ diff --git a/scripts/legacy_icons.lua b/scripts/legacy_icons.lua new file mode 100644 index 0000000..08c1a72 --- /dev/null +++ b/scripts/legacy_icons.lua @@ -0,0 +1,5 @@ +if settings.startup['legacy_icons'].value then + data.raw.item["fi_materials_gold"].icon = "__248k__/ressources/legacy_icons/fi_materials_gold.png" + data.raw.item["fi_materials_titan"].icon = "__248k__/ressources/legacy_icons/fi_materials_titan.png" + data.raw.item["fi_materials_neodym"].icon = "__248k__/ressources/legacy_icons/fi_materials_neodym.png" +end \ No newline at end of file diff --git a/settings.lua b/settings.lua index eaad05f..8e44e0a 100644 --- a/settings.lua +++ b/settings.lua @@ -138,4 +138,11 @@ data:extend({ default_value = false, order = 'i-d', }, + { + name = 'legacy_icons', + type = 'bool-setting', + setting_type = 'startup', + default_value = false, + order = 'i-d', + }, }) \ No newline at end of file