added a few mods and added custom difficulty

This commit is contained in:
landgreen
2020-02-15 19:01:31 -08:00
parent d186ff7636
commit 749fd0f797
8 changed files with 167 additions and 91 deletions

View File

@@ -664,7 +664,18 @@ const game = {
// }
}
if (!(mech.cycle % 60)) { //once a second check
if (!(mech.cycle % 60)) { //once a second checks
if (mech.lastKillCycle + 300 > mech.cycle) { //effects active for 5 seconds after killing a mob
if (b.isModEnergyRecovery) {
mech.fieldMeter += mech.fieldEnergyMax * 0.07
if (mech.fieldMeter > mech.fieldEnergyMax) mech.fieldMeter = mech.fieldEnergyMax;
}
if (b.isModHealthRecovery) {
mech.addHealth(0.01)
}
}
}