fixed categorization of solid atisanium phases

This commit is contained in:
Lily-129 2022-02-18 07:47:53 -05:00 committed by GitHub
parent d8efeb0cc9
commit 3cc961d530
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 62 additions and 62 deletions

View File

@ -17,8 +17,8 @@ elements.laetium = {
density: 6719, density: 6719,
conduct: 4.7E210, conduct: 4.7E210,
behavior: behaviors.WALL, behavior: behaviors.WALL,
state: "solid", state: "solid",
category: "solids", category: "solids",
tick: function(pixel) { tick: function(pixel) {
neighbors = [[-1,0],[0,-1],[1,0],[0,1]] neighbors = [[-1,0],[0,-1],[1,0],[0,1]]
for(i = 0; i < neighbors.length; i++) { for(i = 0; i < neighbors.length; i++) {
@ -98,23 +98,23 @@ elements.atisanium = {
stateLow: "liquid_atisanium", stateLow: "liquid_atisanium",
density: 1.225, density: 1.225,
behavior: [ behavior: [
"M1|M1|M1", "M1|M1|M1",
"M1|XX|M1", "M1|XX|M1",
"M1|M1|M1", "M1|M1|M1",
], ],
state: "gas", state: "gas",
category: "gases", category: "gases",
tick: function(pixel) { tick: function(pixel) {
var neighbors = [[-1,-1],[-1,0],[-1,1],[0,-1],[0,1],[1,-1],[1,0],[1,1]] var neighbors = [[-1,-1],[-1,0],[-1,1],[0,-1],[0,1],[1,-1],[1,0],[1,1]]
var neighborChoice = randomArrayChoice(neighbors) var neighborChoice = randomArrayChoice(neighbors)
if(isEmpty(neighborChoice[0],pixel.y+neighborChoice[1],true)) { if(isEmpty(neighborChoice[0],pixel.y+neighborChoice[1],true)) {
tryMove(pixel,pixel.x+neighborChoice[0],pixel.y+neighborChoice[1]) tryMove(pixel,pixel.x+neighborChoice[0],pixel.y+neighborChoice[1])
} }
if(pixel.chargeCD) { if(pixel.chargeCD) {
if(pixel.chargeCD > 2) { if(pixel.chargeCD > 2) {
pixel.chargeCD = 2 pixel.chargeCD = 2
} }
} }
}, },
} }
@ -126,33 +126,33 @@ elements.liquid_atisanium = {
stateHigh: "atisanium", stateHigh: "atisanium",
tempLow: -214, tempLow: -214,
stateLow: "alpha_atisanium", stateLow: "alpha_atisanium",
temp: -100, temp: -100,
density: 15941, density: 15941,
behavior: behaviors.LIQUID, behavior: behaviors.LIQUID,
state: "liquid", state: "liquid",
category: "liquids", category: "liquids",
tick: function(pixel) { tick: function(pixel) {
var moveSpotsA = [[-1,1],[0,1],[1,1]] var moveSpotsA = [[-1,1],[0,1],[1,1]]
var moveSpotsB = [[-1,0],[1,0]] var moveSpotsB = [[-1,0],[1,0]]
var msaChoice = randomArrayChoice(moveSpotsA) var msaChoice = randomArrayChoice(moveSpotsA)
var msbChoice = randomArrayChoice(moveSpotsB) var msbChoice = randomArrayChoice(moveSpotsB)
if(isEmpty(msaChoice[0],pixel.y+msaChoice[1],true)) { if(isEmpty(msaChoice[0],pixel.y+msaChoice[1],true)) {
if(!tryMove(pixel,pixel.x+msaChoice[0],pixel.y+msaChoice[1])) { if(!tryMove(pixel,pixel.x+msaChoice[0],pixel.y+msaChoice[1])) {
tryMove(pixel,pixel.x+msbChoice[0],pixel.y+msbChoice[1]) tryMove(pixel,pixel.x+msbChoice[0],pixel.y+msbChoice[1])
} }
} }
if(pixel.chargeCD) { if(pixel.chargeCD) {
if(pixel.chargeCD > 2) { if(pixel.chargeCD > 2) {
pixel.chargeCD = 2 pixel.chargeCD = 2
} }
} }
if(pixel.chargeCD) { if(pixel.chargeCD) {
if(pixel.chargeCD > 1) { if(pixel.chargeCD > 1) {
if(Math.random() < 0.2) { if(Math.random() < 0.2) {
pixel.chargeCD = 1 pixel.chargeCD = 1
} }
} }
} }
}, },
} }
@ -164,24 +164,24 @@ elements.alpha_atisanium = {
stateHigh: "liquid_atisanium", stateHigh: "liquid_atisanium",
tempLow: -261, tempLow: -261,
stateLow: "beta_atisanium", stateLow: "beta_atisanium",
temp: -240, temp: -240,
density: 51295, density: 51295,
behavior: behaviors.WALL, behavior: behaviors.WALL,
state: "solid", state: "solid",
category: "solid", category: "solids",
tick: function(pixel) { tick: function(pixel) {
if(pixel.chargeCD) { if(pixel.chargeCD) {
if(pixel.chargeCD > 2) { if(pixel.chargeCD > 2) {
pixel.chargeCD = 2 pixel.chargeCD = 2
} }
} }
if(pixel.chargeCD) { if(pixel.chargeCD) {
if(pixel.chargeCD > 1) { if(pixel.chargeCD > 1) {
if(Math.random() < 0.4) { if(Math.random() < 0.4) {
pixel.chargeCD = 1 pixel.chargeCD = 1
} }
} }
} }
}, },
} }
@ -191,17 +191,17 @@ elements.beta_atisanium = {
colorOn: ["#0f0021", "#120324", "#4b106e", "#a6058e", "#42043a"], //pretend this is UV colorOn: ["#0f0021", "#120324", "#4b106e", "#a6058e", "#42043a"], //pretend this is UV
tempHigh: -260, tempHigh: -260,
stateHigh: "alpha_atisanium", stateHigh: "alpha_atisanium",
temp: -270, temp: -270,
density: 111295, density: 111295,
behavior: behaviors.WALL, behavior: behaviors.WALL,
state: "solid", state: "solid",
category: "solid", category: "solids",
tick: function(pixel) { tick: function(pixel) {
if(pixel.chargeCD) { if(pixel.chargeCD) {
if(pixel.chargeCD > 3) { if(pixel.chargeCD > 3) {
pixel.chargeCD = 3 pixel.chargeCD = 3
} }
} }
}, },
} }