From ea1d1ece29a838bc8395a9e8e3c3b793086c288f Mon Sep 17 00:00:00 2001 From: An Orbit <68935009+orbit-loona@users.noreply.github.com> Date: Sat, 6 May 2023 20:49:39 -0400 Subject: [PATCH] change kep1er behavior --- mods/human_edit.js | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/mods/human_edit.js b/mods/human_edit.js index b72f78e8..6fc2e10a 100644 --- a/mods/human_edit.js +++ b/mods/human_edit.js @@ -692,7 +692,23 @@ if(enabledMods.includes(onTryMoveIntoMod)) { tempHigh: 200, stateHigh: ["ash","molten_plastic"], density: 332, //based off of First Impact: https://www.amazon.com/Kep1er-IMPACT-Contents-Tracking-Connect/dp/B09MQMNZ62 - behavior: behaviors.POWDER, + tick: function(pixel) { + if(!(tryMove(pixel,pixel.x,pixel.y+1))) { + var directions = []; + if(isEmpty(pixel.x-1,pixel.y+2)) { + directions.push(-1) + }; + if(isEmpty(pixel.x+1,pixel.y+2)) { + directions.push(1) + }; + if(directions.length > 0) { + tryMove(pixel,pixel.x+directions[Math.floor(Math.random() * directions.length)],pixel.y) + }; + } + }, + reactions: { + water: { elem1: ["plastic","cellulose","cellulose"], elem2: ["water","water","cellulose",null,null], chance: 0.8 } + }, burn: 40, burnTime: 150, burnInto: ["ash","molten_plastic","carbon_dioxide","smoke"],