Update heatglow.js

This commit is contained in:
JustAGenericUsername 2023-12-15 23:09:23 -05:00 committed by GitHub
parent bbac548190
commit 47e392bd88
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 2 deletions

View File

@ -23,8 +23,9 @@ const heatfunc = function(pixel){
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"];
metals.forEach(metal => {
if (!eLists.metals) { eLists.metals = [] }
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;
if (!prefunc){
elements[metal].tick = heatfunc;