Wear and Tear

by withers

Adds wear and tear mechanics to the game, plus automated maintenance.

6 years ago
0.14 - 0.15
14

i compatability with tintet icons

6 years ago

data-final-fixes.lua

134 line
== local r_icon = old_item.icon
++ local r_icons = old_item.icons

182 line
++ if old_item.icon ~= nil then
== data:extend({{type = "recipe", category = "recycling", name = recycle_name, localised_name = recycle_loc_name, subgroup = "recycling", energy_required = 5, enable = true, ingredients = {{old_item.name, 1}}, results = r_results, icon = r_icon, order = "a"}})
== data:extend({{type = "recipe", category = "refurbishing", name = refurbish_name, localised_name = refurbish_loc_name, subgroup = "refurbishing", energy_required = 5, enable = true, ingredients = refurbish_ingredients, results = ref_results, icon = r_icon, order = "a"}})
++ else
++ data:extend({{type = "recipe", category = "recycling", name = recycle_name, localised_name = recycle_loc_name, subgroup = "recycling", energy_required = 5, enable = true, ingredients = {{old_item.name, 1}}, results = r_results, icons = r_icons, order = "a"}})
++ data:extend({{type = "recipe", category = "refurbishing", name = refurbish_name, localised_name = refurbish_loc_name, subgroup = "refurbishing", energy_required = 5, enable = true, ingredients = refurbish_ingredients, results = ref_results, icons = r_icons, order = "a"}})
++ end

6 years ago

Fixed it.

New response