cash_n_more.js

adds cash and paper
This commit is contained in:
ludus530 2024-05-05 09:35:22 +02:00 committed by GitHub
parent 0647f2208a
commit b38b85ead8
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 37 additions and 0 deletions

37
mods/cash_n_more.js Normal file
View File

@ -0,0 +1,37 @@
elements.cash = {
color: "#00e600",
behavior: behaviors.POWDER,
category: "powders",
};
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",
};