Create elements.js

new elements:
boron
graphite
plutonium (BETA)
This commit is contained in:
henriquerosaconta2025-hue 2025-08-16 06:02:21 -03:00 committed by GitHub
parent b2c2cddd45
commit b7e042244a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 47 additions and 0 deletions

47
mods/elements.js Normal file
View File

@ -0,0 +1,47 @@
addElement("boron", {
color: "#635F62",
category: "powders",
state: "solid",
behavior: [
"RL:radiation%0.001",
],
reactions: {
neutron: {elem2: "radiation"},
},
}),
addElement("Graphite", {
color: "#635F62",
category: "powders",
state: "solid",
behavior: [
"RL:radiation%2, AND RL:neutron%5",
],
}),
addElement("Plutonium", {
color: "#FFFF7F",
category: "powders",
state: "solid",
behavior: [
"RL:radiation%10 AND RL:proton%0.05",
],
reactions: {
neutron: {
elem2: "radiation",
onReact: function(elem1, elem2) {
elem1.temp = elem1.temp + 25
},
},
},
})