fixes
This commit is contained in:
parent
1c6e49a3a2
commit
d06e9720d3
|
|
@ -17,6 +17,9 @@ elements.change_count = {
|
||||||
},
|
},
|
||||||
category: "random"
|
category: "random"
|
||||||
}
|
}
|
||||||
|
var choosebehaviors = behaviors
|
||||||
|
delete choosebehaviors.KILLPIXEL2
|
||||||
|
delete choosebehaviors.KILLPIXEL1
|
||||||
if (!settings.randomcount){settings.randomcount = 10000; saveSettings()}
|
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 color = ["1", "2", "3", "4", "5", "6", "7", "8", "9", "0", "a", "b", "c", "d", "e","f"]
|
||||||
var states = ["solid", "liquid", "gas"]
|
var states = ["solid", "liquid", "gas"]
|
||||||
|
|
@ -37,7 +40,7 @@ if (Math.abs(settings.randomcount) == settings.randomcount){
|
||||||
elements["element_"+i] = {
|
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)],
|
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",
|
category: "random",
|
||||||
behavior: randomProperty(behaviors),
|
behavior: randomProperty(choosebehaviors),
|
||||||
state: states[Math.floor(Math.random()*states.length)],
|
state: states[Math.floor(Math.random()*states.length)],
|
||||||
reactions: {},
|
reactions: {},
|
||||||
density: randomIntFromInterval(1, 10000)
|
density: randomIntFromInterval(1, 10000)
|
||||||
|
|
|
||||||
|
|
@ -26,7 +26,7 @@ elements.molten_caesium = {
|
||||||
stateLow: "caesium",
|
stateLow: "caesium",
|
||||||
tempHigh: 671,
|
tempHigh: 671,
|
||||||
stateHigh: "caesium_vapor",
|
stateHigh: "caesium_vapor",
|
||||||
density: 1843,
|
density: 1842,
|
||||||
temp: 29,
|
temp: 29,
|
||||||
conduct: 0.90,
|
conduct: 0.90,
|
||||||
reactions: {
|
reactions: {
|
||||||
|
|
@ -2489,4 +2489,4 @@ elements.grid_brush = {
|
||||||
deletePixel(pixel.x, pixel.y)
|
deletePixel(pixel.x, pixel.y)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue