Rudimentary 096 tracking
This commit is contained in:
parent
7f001bbf6c
commit
1c1ab275de
15
mods/scp.js
15
mods/scp.js
|
|
@ -912,7 +912,20 @@ elements.shy_head = {
|
|||
pixel.dead = pixelTicks;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
if (!isEmpty(pixel.x+2, pixel.y, true) && pixelMap[pixel.x+2][pixel.y].element == "head") {
|
||||
var target = pixelMap[pixel.x+2][pixel.y];
|
||||
if (target.dead) { // If target is dead, ignore
|
||||
var target = null;
|
||||
}
|
||||
else { body.panic += 0.1; }
|
||||
}
|
||||
else { var target = null }
|
||||
if (target.dead) { // If target is dead, ignore
|
||||
var target = null;
|
||||
body.panic -= 0.1;
|
||||
}
|
||||
|
||||
// homeostasis
|
||||
if (pixel.temp > 37) { pixel.temp -= 1; }
|
||||
else if (pixel.temp < 37) { pixel.temp += 1; }
|
||||
|
|
|
|||
Loading…
Reference in New Issue