working on gun: neutron bomb

This commit is contained in:
landgreen
2020-05-04 17:43:09 -07:00
parent a64b969186
commit 3e1fa6e851
6 changed files with 175 additions and 53 deletions

View File

@@ -624,8 +624,8 @@ const mech = {
if (b.isModSlowFPS) { // slow game
game.fpsCap = 30 //new fps
game.fpsInterval = 1000 / game.fpsCap;
mech.defaultFPSCycle = mech.cycle + 30 //how long to wait to return to normal fps
if (dmg > 0.1) mech.defaultFPSCycle += 30
//how long to wait to return to normal fps
mech.defaultFPSCycle = mech.cycle + 20 + Math.min(90, Math.floor(200 * dmg))
} else {
if (dmg > 0.05) { // freeze game for high damage hits
game.fpsCap = 4 //40 - Math.min(25, 100 * dmg)