Merge pull request #113 from StellarX20/patch-1

Add updates to neutronium mod
This commit is contained in:
slweeb 2023-07-20 13:16:40 -04:00 committed by GitHub
commit b941c444a9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 40 additions and 47 deletions

View File

@ -6,11 +6,51 @@ let rPOWDER = behaviors.POWDER
console.log("Welcome to the console.");
console.log(rPOWDER);
elements.test = {
name: "Testium",
color: "#ff0000",
behavior: behaviors.POWDER,
category: "land",
state: "solid",
density: 15,
temp: 22,
tempHigh: 35,
stateHigh: "molten_testium",
reactions: {
"ilitium": { "elem1":"tralphium", "elem2":null },
"nickel": { "elem1":"iron", "elem2":null },
}
};
elements.molten_testium = {
name:"Liquid Testium",
color:"#0000ff",
behavior: behaviors.LIQUID,
category: "liquids",
state: "liquid",
density: 10,
temp: 50,
tempHigh: 450,
stateHigh: "testium_gas",
tempLow: 35,
stateLow: "test",
reactions: {
"ilitium": { "elem1":"tralphium", "elem2":null },
"molten_nickel": { "elem1":"molten_iron", "elem2":null },
},
};
elements.testium_gas = {
name:"Liquid Testium",
color:"#00ff00",
behavior: behaviors.GAS,
category: "gases",
state: "gas",
density: 5,
temp: 525,
tempLow: 450,
stateLow: "molten_testium",
reactions: {
"ilitium": { "elem1":"helium", "elem2":null },
},
};
elements.neutronium = {
name: "Neutronium",
@ -972,46 +1012,6 @@ tempLow: 1668,
temp: 2000,
viscosity: 10000
};
elements.toxin = {
color: "#07f71b",
category: "liquids",
state: "liquid",
behavior: behaviors.LIQUID,
stateLow: "toxic_ice",
tempLow: -10,
stateHigh: "toxic_gas",
tempHigh: 115,
reactions: {
"water": { "elem1":null, "elem2":"toxic_water" },
},
};
lifeArray = ["plant", "dead_plant", "frozen_plant", "grass", "algae", "cell", "cancer", "flea", "termite", "ant", "worm", "fly", "firefly", "bee", "human", "body", "head", "rat", "frog", "frozen_frog", "fish", "slug", "snail", "bone_marrow", "sapling", "seeds", "grass_seed", "wheat_seed", "wheat", "pollen", "flower_seed", "pistil", "petal", "vine", "bamboo", "bamboo_plant", "mushroom_spore", "mushroom_stalk", "mushroom_gills", "mushroom_cap", "hyphae", "lichen", "cellulose", "corn_seed", "potato_seed", "root", "berry_seed", "old_berry_leaf", "berry_leaf", "berry", "slime", "blood", "antibody", "infection", "meat", "rotten_meat", "frozen_meat", "yeast"]
if(!elements.toxin.reactions) {
elements.toxin.reactions = {}
}
for(i = 0; i < lifeArray.length; i++) {
elements.toxin.reactions[lifeArray[i]] = { "elem1":null, "elem2":"dead" }
};
/*
// (Ignore this comment if it's not in another comment anymore) this whole area is a comment only because I don't want the game to try using useless code and (possibly) error out.
if(!elements.toxic_gas.reactions) {
elements.toxic_gas.reactions = {}
}
for(i = 0; i < lifeArray.length; i++) {
elements.toxic_gas.reactions[lifeArray[i]] = { "elem1":null, "elem2":"dead" }
};
if(!elements.toxic_ice.reactions) {
elements.toxic_ice.reactions = {}
}
for(i = 0; i < lifeArray.length; i++) {
elements.toxic_ice.reactions[lifeArray[i]] = { "elem1":null, "elem2":"dead" }
};
if(!elements.toxic_water.reactions) {
elements.toxic_water.reactions = {}
}
for(i = 0; i < lifeArray.length; i++) {
elements.toxic_water.reactions[lifeArray[i]] = { "elem1":null, "elem2":"dead" }
}; */
elements.laser_emitter = {
color: "#8a8886",
category: "machines",
@ -1032,13 +1032,6 @@ behavior: behaviors.WALL,
behaviorOn: behaviors.LASEREMITTER,
conduct: 1,
};
elements.dead = {
color: "#a5a683",
category: "life",
state: "solid",
behavior: behaviors.POWDER,
density: 10,
};
elements.ilitium = {
color: "#97baa7",
category: "solids",