mod energy from damage,
annaliation now requires negative mass field
mod - spawn bots after killing mobs
This commit is contained in:
landgreen
2020-04-07 08:17:51 -07:00
parent 76383df567
commit ba5020889e
7 changed files with 88 additions and 32 deletions

View File

@@ -710,6 +710,10 @@ const game = {
if (!(mech.cycle % 60)) { //once a second
if (b.isModEnergyDamage) {
document.getElementById("mod-capacitor").innerHTML = `(+${(mech.energy/0.05).toFixed(0)}%)`
}
if (mech.lastKillCycle + 300 > mech.cycle) { //effects active for 5 seconds after killing a mob
if (b.isModEnergyRecovery) {
mech.energy += mech.fieldEnergyMax * 0.07