quick fixes
This commit is contained in:
parent
9266ce7d0f
commit
a1e544520c
|
|
@ -38,8 +38,8 @@ var randomProperty = function (obj) {
|
||||||
if (Math.abs(settings.randomcount) == settings.randomcount){
|
if (Math.abs(settings.randomcount) == settings.randomcount){
|
||||||
if (!settings.skineasteregg){
|
if (!settings.skineasteregg){
|
||||||
for (var i = 1; i <= settings.randomcount; i++){
|
for (var i = 1; i <= settings.randomcount; i++){
|
||||||
var f = Math.random() < 0.2
|
var canHeat = Math.random() < 0.2
|
||||||
var co = Math.random() < 0.2
|
var canCold = Math.random() < 0.2
|
||||||
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",
|
||||||
|
|
@ -49,11 +49,11 @@ if (Math.abs(settings.randomcount) == settings.randomcount){
|
||||||
density: randomIntFromInterval(1, 10000)
|
density: randomIntFromInterval(1, 10000)
|
||||||
}
|
}
|
||||||
total = i
|
total = i
|
||||||
if (f){
|
if (canHeat){
|
||||||
elements["element_"+i].tempHigh = 20 + randomIntFromInterval(10, 6000)
|
elements["element_"+i].tempHigh = 20 + randomIntFromInterval(10, 6000)
|
||||||
elements["element_"+i].stateHigh = elementslist[Math.floor(Math.random()*elementslist.length)]
|
elements["element_"+i].stateHigh = elementslist[Math.floor(Math.random()*elementslist.length)]
|
||||||
}
|
}
|
||||||
if (co){
|
if (canCold){
|
||||||
elements["element_"+i].tempLow = 20 - randomIntFromInterval(10, 270)
|
elements["element_"+i].tempLow = 20 - randomIntFromInterval(10, 270)
|
||||||
elements["element_"+i].stateLow = elementslist[Math.floor(Math.random()*elementslist.length)]
|
elements["element_"+i].stateLow = elementslist[Math.floor(Math.random()*elementslist.length)]
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1798,6 +1798,7 @@ elements.invisiblewall = {
|
||||||
category: "solids",
|
category: "solids",
|
||||||
movable: false,
|
movable: false,
|
||||||
noMix: true,
|
noMix: true,
|
||||||
|
hardness: 1,
|
||||||
},
|
},
|
||||||
elements.bismuth = {
|
elements.bismuth = {
|
||||||
color: ["#818181","#989898","#b0b0b0","#c9c9c9"],
|
color: ["#818181","#989898","#b0b0b0","#c9c9c9"],
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue