minor changes
This commit is contained in:
parent
e7c48cad97
commit
fa575894fc
|
|
@ -43,12 +43,11 @@ function planetCrackerFinale(doColorChange=true) {
|
||||||
};
|
};
|
||||||
|
|
||||||
elements.planet_cracker = {
|
elements.planet_cracker = {
|
||||||
color: ["#8f8f8f","3f3f3f"],
|
color: "#ffc8ba",
|
||||||
behavior: behaviors.WALL,
|
behavior: behaviors.WALL,
|
||||||
properties: {
|
properties: {
|
||||||
active: true,
|
active: true,
|
||||||
counter: 1,
|
counter: 1,
|
||||||
changeTemp: true
|
|
||||||
},
|
},
|
||||||
tick: function(pixel) {
|
tick: function(pixel) {
|
||||||
if(!pixel?.active) {
|
if(!pixel?.active) {
|
||||||
|
|
@ -68,7 +67,7 @@ elements.planet_cracker = {
|
||||||
var finalRadius = Math.round(((1 + closenessToBottom) ** 2) * 6);
|
var finalRadius = Math.round(((1 + closenessToBottom) ** 2) * 6);
|
||||||
|
|
||||||
if(typeof(explodeAtPlus) === "function") {
|
if(typeof(explodeAtPlus) === "function") {
|
||||||
explodeAtPlus(pixel.x,pixel.y+pixel.counter,finalRadius,"plasma","fire",null,planetCrackerHeat,pixel.changeTemp);
|
explodeAtPlus(pixel.x,pixel.y+pixel.counter,finalRadius,"plasma","fire",null,planetCrackerHeat);
|
||||||
} else {
|
} else {
|
||||||
explodeAt(pixel.x,pixel.y+pixel.counter,finalRadius,"plasma");
|
explodeAt(pixel.x,pixel.y+pixel.counter,finalRadius,"plasma");
|
||||||
};
|
};
|
||||||
|
|
@ -76,7 +75,7 @@ elements.planet_cracker = {
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
state: "solid",
|
state: "solid",
|
||||||
density: 1000,
|
density: 10000,
|
||||||
category: "weapons",
|
category: "weapons",
|
||||||
hardness: 1,
|
hardness: 1,
|
||||||
};
|
};
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue