eddy current brake
mod perfect diamagnetism: eddy current brake - mobs have a speed limit when they are near you
This commit is contained in:
@@ -842,6 +842,10 @@ const game = {
|
||||
},
|
||||
checks() {
|
||||
if (!(mech.cycle % 60)) { //once a second
|
||||
|
||||
//every second energy above max energy loses 25%
|
||||
if (mech.energy > mech.maxEnergy) mech.energy = 1 + (mech.maxEnergy - mech.energy) * 0.75
|
||||
|
||||
if (mech.pos.y > game.fallHeight) { // if 4000px deep
|
||||
if (game.difficultyMode > 2) {
|
||||
mech.death();
|
||||
|
||||
Reference in New Issue
Block a user