Update heatglow.js
This commit is contained in:
parent
bbac548190
commit
47e392bd88
|
|
@ -23,8 +23,9 @@ const heatfunc = function(pixel){
|
||||||
pixel.color = "rgb(" + pixel.newR + "," + pixel.newG + "," + pixel.newB + ")";
|
pixel.color = "rgb(" + pixel.newR + "," + pixel.newG + "," + pixel.newB + ")";
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
const metals = ["iron", "glass", "copper", "gold", "brass","steel","nickel","zinc","silver","aluminum","bronze","metal_scrap","oxidized_copper","tin","lead"];
|
if (!eLists.metals) { eLists.metals = [] }
|
||||||
metals.forEach(metal => {
|
eLists.metals = eLists.metals.concat(["iron", "glass", "copper", "gold", "brass","steel","nickel","zinc","silver","aluminum","bronze","metal_scrap","oxidized_copper","tin","lead"])
|
||||||
|
eLists.metals.forEach(metal => {
|
||||||
const prefunc = elements[metal].tick;
|
const prefunc = elements[metal].tick;
|
||||||
if (!prefunc){
|
if (!prefunc){
|
||||||
elements[metal].tick = heatfunc;
|
elements[metal].tick = heatfunc;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue