Merge pull request #1343 from shkandriyeli-eng/main

Added the mod dry_acid.js
This commit is contained in:
slweeb 2026-01-26 14:50:43 -05:00 committed by GitHub
commit f82a57a38e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 34 additions and 0 deletions

34
mods/dry_acid.js Normal file
View File

@ -0,0 +1,34 @@
elements.dry_acid = {
name:"Anhydrous acid",
desc:"It's pretty much just acid without water in it.",
color: ["#62e36f", "#a5d9aa", "#b3c9b6"],
behavior: behaviors.POWDER,
category: "powders",
state: "solid",
reactions: {
"water": { elem1:"dry_acid", elem2:"acid", temp2:37.22},
"dirty_water": { elem1:null, elem2:"acid", temp2:37.22}
},
density: 1.522
}
if (elements.acid) {
if (!elements.acid.ignore) {
elements.acid.ignore = [];
}
elements.acid.ignore.push('dry_acid');
}
// Ensure the reactions object exists for the element
if (!elements.acid.reactions) {
elements.acid.reactions = {};
}
// Add the new reaction
elements.acid.reactions["dirty_water"] = {
elem1: "acid", // What this element turns into
elem2: "acid", // What the other element turns into
}
delete elements.acid.reactions.water
delete elements.water.reactions.acid