From 552ee6671e908f4ff3a62710224e2bc67447d42c Mon Sep 17 00:00:00 2001 From: shkandriyeli-eng Date: Mon, 26 Jan 2026 07:48:56 -0700 Subject: [PATCH] Added the mod dry_acid.js Adds a new elements and modifies a few. --- mods/dry_acid.js | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 mods/dry_acid.js diff --git a/mods/dry_acid.js b/mods/dry_acid.js new file mode 100644 index 00000000..337a63ed --- /dev/null +++ b/mods/dry_acid.js @@ -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 \ No newline at end of file