diff --git a/mod-list.html b/mod-list.html index e273ce68..07d08604 100644 --- a/mod-list.html +++ b/mod-list.html @@ -157,7 +157,7 @@ Science & Chemistry alcohol.jsAdds methanol, (iso-)propanol, and butanolAlice alkahest.jsAdds the alkahest, a liquid which dissolves anythingAlice -aScientistsWish.jsAdds things that related to science, especially radiationCarbon Monoxide, CPU +aScientistsWish.jsAdds things that related to science, especially radiationCarbon Monoxide, salmonfishy bettermetalscrap.jsAllows metal scrap to be melted back into its original materialnousernamefound bigger_star_spawners.jsAdds spawners for larger starsAlice bioooze_and_pyrogens.jsAdds Bio-Ooze from Frackin’ Universe and several heat-producing materials from various games’ modsAlice diff --git a/mods/cash_n_more.js b/mods/cash_n_more.js new file mode 100644 index 00000000..e267a8f7 --- /dev/null +++ b/mods/cash_n_more.js @@ -0,0 +1,58 @@ +elements.cash = { + color: "#00e600", + behavior: behaviors.POWDER, + category: "powders", +}; + +delete elements.paper; +delete elements.sponge; + +elements.sponge = { + color: "#ffff1a", + behavior: behaviors.SOLID, + category: "solids", + tool: function(pixel) { + if (pixel.element == "water") { + pixel.element = "wet_sponge" + } + }, +}; + +elements.wet_sponge = { + color: "#cccc00", + behavior: behaviors.SOLID, + category: "solids", +}; + + +elements.paper = { + color: "#ffffff", + behavior: behaviors.SOLID, + category: "solids", +}; + +elements.shredded_paper = { + color: "#ffffff", + behavior: behaviors.POWDER, + category: "powders", +}; + +elements.shredded_cash = { + color: "#004d00", + behavior: behaviors.POWDER, + category: "powders", +}; + +elements.shredder = { + color: "#08b508", + behavior: behaviors.SOLID, + tool: function(pixel) { + if (pixel.element == "cash") { + pixel.element = "shredded_cash" + }, + if (pixel.element == "paper") { + pixel.element = "shredded_money" + } + }, + category: "tools", +};