This commit is contained in:
JustAGenericUsername 2024-04-07 14:26:05 -04:00
parent 1c6e49a3a2
commit d06e9720d3
2 changed files with 6 additions and 3 deletions

View File

@ -17,6 +17,9 @@ elements.change_count = {
},
category: "random"
}
var choosebehaviors = behaviors
delete choosebehaviors.KILLPIXEL2
delete choosebehaviors.KILLPIXEL1
if (!settings.randomcount){settings.randomcount = 10000; saveSettings()}
var color = ["1", "2", "3", "4", "5", "6", "7", "8", "9", "0", "a", "b", "c", "d", "e","f"]
var states = ["solid", "liquid", "gas"]
@ -37,7 +40,7 @@ if (Math.abs(settings.randomcount) == settings.randomcount){
elements["element_"+i] = {
color: "#" + color[Math.floor(Math.random()*color.length)] + color[Math.floor(Math.random()*color.length)] + color[Math.floor(Math.random()*color.length)] + color[Math.floor(Math.random()*color.length)] + color[Math.floor(Math.random()*color.length)] + color[Math.floor(Math.random()*color.length)],
category: "random",
behavior: randomProperty(behaviors),
behavior: randomProperty(choosebehaviors),
state: states[Math.floor(Math.random()*states.length)],
reactions: {},
density: randomIntFromInterval(1, 10000)

View File

@ -26,7 +26,7 @@ elements.molten_caesium = {
stateLow: "caesium",
tempHigh: 671,
stateHigh: "caesium_vapor",
density: 1843,
density: 1842,
temp: 29,
conduct: 0.90,
reactions: {
@ -2489,4 +2489,4 @@ elements.grid_brush = {
deletePixel(pixel.x, pixel.y)
}
}
}
}