updates i think
This commit is contained in:
parent
36498269a3
commit
e3757c806d
|
|
@ -1,19 +1,19 @@
|
||||||
arrayNameA = ["radiation", "alcohol", "soap", "acid", "ammonia", "acid_gas"];
|
killerArray = ["radiation", "alcohol", "soap", "acid", "ammonia", "acid_gas", "bleach", "poison", "ice_nine"];
|
||||||
arrayNameB = ["plant", "frozen_plant", "grass", "algae", "sapling", "seeds", "grass_seed", "wheat_seed", "wheat", "flower_seed", "pistil", "petal", "vine", "bamboo", "bamboo_plant", "corn_seed", "potato_seed", "root", "berry_seed", "old_berry_leaf", "berry_leaf", "berry"];
|
plantArray = ["plant", "frozen_plant", "grass", "algae", "sapling", "seeds", "grass_seed", "wheat_seed", "wheat", "flower_seed", "pistil", "petal", "vine", "bamboo", "bamboo_plant", "corn_seed", "potato_seed", "root", "berry_seed", "old_berry_leaf", "berry_leaf", "berry"];
|
||||||
if(enabledMods.includes("mods/alcohol.js")) {
|
if(enabledMods.includes("mods/alcohol.js")) {
|
||||||
arrayNameA.push("methanol");
|
killerArray.push("methanol");
|
||||||
arrayNameA.push("propanol");
|
killerArray.push("propanol");
|
||||||
arrayNameA.push("isopropanol");
|
killerArray.push("isopropanol");
|
||||||
arrayNameA.push("butanol");
|
killerArray.push("butanol");
|
||||||
};
|
};
|
||||||
|
|
||||||
runAfterLoad(function() {
|
runAfterLoad(function() {
|
||||||
for(i = 0; i < arrayNameA.length; i++) {
|
for(i = 0; i < killerArray.length; i++) {
|
||||||
if(!elements[arrayNameA[i]].reactions) {
|
if(!elements[killerArray[i]].reactions) {
|
||||||
elements[arrayNameA[i]].reactions = {}
|
elements[killerArray[i]].reactions = {}
|
||||||
}
|
}
|
||||||
for(j = 0; j < arrayNameB.length; j++) {
|
for(j = 0; j < plantArray.length; j++) {
|
||||||
elements[arrayNameA[i]].reactions[arrayNameB[j]] = { "elem1":null, "elem2":"dead_plant" }
|
elements[killerArray[i]].reactions[plantArray[j]] = { "elem1":null, "elem2":"dead_plant" }
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
});
|
});
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue