invisible map element bug fixed

cloaking field no longer gets smaller when you are low on energy
invisible map element bug fixed
This commit is contained in:
landgreen
2021-08-08 11:26:24 -07:00
parent 387d30eff5
commit efa16c9ad5
5 changed files with 14 additions and 29 deletions

View File

@@ -3803,6 +3803,7 @@ const b = {
if (tech.isIceCrystals) {
bullet[bullet.length - 1].beforeDmg = function(who) {
mobs.statusSlow(who, 60)
if (tech.isNailRadiation) mobs.statusDoT(who, dmg * (tech.isFastRadiation ? 2.6 : 0.65), tech.isSlowRadiation ? 240 : (tech.isFastRadiation ? 30 : 120)) // one tick every 30 cycles
if (tech.isNailCrit && !who.shield && Vector.dot(Vector.normalise(Vector.sub(who.position, this.position)), Vector.normalise(this.velocity)) > 0.94) {
b.explosion(this.position, 150 + 30 * Math.random()); //makes bullet do explosive damage at end
}
@@ -3810,7 +3811,7 @@ const b = {
if (m.energy < 0.01) {
m.fireCDcycle = m.cycle + 60; // cool down
} else {
m.energy -= m.fieldRegen + 0.009
m.energy -= m.fieldRegen + 0.008
}
}
},
@@ -4610,7 +4611,7 @@ const b = {
name: "spores",
description: "fire a <strong class='color-p' style='letter-spacing: 2px;'>sporangium</strong> that discharges <strong class='color-p' style='letter-spacing: 2px;'>spores</strong><br><strong class='color-p' style='letter-spacing: 2px;'>spores</strong> seek out nearby mobs",
ammo: 0,
ammoPack: 3,
ammoPack: 2.3,
have: false,
do() {},
fire() {