bug fixes

bremsstrahlung does extra damage to shields

bug fixes
This commit is contained in:
landgreen
2022-05-10 15:29:22 -07:00
parent 5938e06148
commit c65e163b6f
6 changed files with 40 additions and 28 deletions

View File

@@ -3202,7 +3202,7 @@ const b = {
}
}
//aoe damage to mobs
const dmg = (0.12 + 0.04 * tech.isFastDrones) * m.dmgScale * tech.droneRadioDamage * tech.radioactiveDamage
let dmg = (0.12 + 0.04 * tech.isFastDrones) * m.dmgScale * tech.droneRadioDamage * tech.radioactiveDamage
for (let i = 0, len = mob.length; i < len; i++) {
if (Vector.magnitude(Vector.sub(mob[i].position, this.position)) < this.radioRadius + mob[i].radius) {
if (Matter.Query.ray(map, mob[i].position, this.position).length > 0) dmg *= 0.25 //reduce damage if a wall is in the way