Update Humanitize.js

This commit is contained in:
Nekonico 2024-08-21 11:04:52 -07:00 committed by GitHub
parent d1868c9cfe
commit 2c9be5538e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 11 additions and 5 deletions

View File

@ -1,4 +1,4 @@
/* mod by nekonico aka doobienecoarc */ /* mod by nekonico, do not steal without credit */
behaviors.BODY_DELETE = function(pixel) { behaviors.BODY_DELETE = function(pixel) {
if (pixel.willbuildhouse == true) { if (pixel.willbuildhouse == true) {
@ -312,7 +312,7 @@ elements.c_body = {
doHeat(pixel); doHeat(pixel);
doBurning(pixel); doBurning(pixel);
doElectricity(pixel); doElectricity(pixel);
if (pixel.dead) { if (pixel.dead) { // by nekonico
// Turn into rotten_meat if pixelTicks-dead > 500 // Turn into rotten_meat if pixelTicks-dead > 500
if (pixelTicks-pixel.dead > 200 && Math.random() < 0.1) { if (pixelTicks-pixel.dead > 200 && Math.random() < 0.1) {
changePixel(pixel,"rotten_meat"); changePixel(pixel,"rotten_meat");
@ -781,9 +781,9 @@ elements.workbench = {
"loose_straw": { elem2:"basket", chance:0.25 }, "loose_straw": { elem2:"basket", chance:0.25 },
"rock": { elem2:"pickaxe", chance:0.1 }, "rock": { elem2:"pickaxe", chance:0.1 },
"oven": { elem1:"allpurposestation", elem2:null, chance:0.5 }, "oven": { elem1:"allpurposestation", elem2:null, chance:0.5 },
}, },// by
temp:40, temp:40, //neko
tempHigh: 1000, tempHigh: 1000, //nico
stateHigh: "magma", stateHigh: "magma",
category: "human", category: "human",
state: "solid", state: "solid",
@ -951,3 +951,9 @@ elements.body.name = "dumb_body"
elements.grass.properties.h = 1 elements.grass.properties.h = 1
elements.rotten_meat.density = 1200 elements.rotten_meat.density = 1200
/* yo, thanks for scrolling to the end. If you have any ideas to add to this mod, or wanna contact me in general, you can DM my discord account "nekonico" or just ping me in the r74n discord
peace
^ ^
(*w*) /
*/