text rewording

tech: freezer burn - if a mob is frozen while below 33% health, it dies
tech: flash freeze - if a mob is above 66% health it's health is set to 66%

snakeBoss 1st tail mob is larger and farther from boss
parthenogenesis your duplication effects extend to duplicate mobs and bosses
WIMPs do 33% less harm  (because they are hard to deal with on reactor)
MACHO 66->60% defense
axion 75%-> 100% of defense added to damage

full tech wording rewrite (I probably made a few typos)
  increase damage by 10% -> +10% damage
  20% fire delay reduction -> +20% fire rate
  taking harm -> losing health
  50% harm reduction -> +50% defense
    new defense text effect
  extra long minus sign - -> –

bug fixes
This commit is contained in:
landgreen
2022-06-14 09:00:01 -07:00
parent 789769519a
commit e3d6ffce43
11 changed files with 425 additions and 555 deletions

View File

@@ -59,7 +59,9 @@ const mobs = {
}
function applySlow(whom) {
if (!whom.shield && !whom.isShielded) {
if (!whom.shield && !whom.isShielded && who.alive) {
if (tech.isIceMaxHealthLoss && who.health > 0.66 && who.damageReduction > 0) who.health = 0.66
if (tech.isIceKill && who.health < 0.33 && who.damageReduction > 0) who.death();
if (whom.isBoss) cycles = Math.floor(cycles * 0.25)
let i = whom.status.length
while (i--) {
@@ -68,8 +70,8 @@ const mobs = {
whom.isSlowed = true;
whom.status.push({
effect() {
if (whom.speed > 2) {
const drag = 0.95
if (whom.speed > 1) {
const drag = 0.94
Matter.Body.setVelocity(whom, {
x: whom.velocity.x * drag,
y: whom.velocity.y * drag
@@ -1065,7 +1067,7 @@ const mobs = {
if ((!this.isShielded || isBypassShield) && this.alive) {
dmg *= tech.damageFromTech()
//mobs specific damage changes
if (tech.isFarAwayDmg) dmg *= 1 + Math.sqrt(Math.max(500, Math.min(3000, this.distanceToPlayer())) - 500) * 0.0067 //up to 50% dmg at max range of 3500
if (tech.isFarAwayDmg) dmg *= 1 + Math.sqrt(Math.max(500, Math.min(3000, this.distanceToPlayer())) - 500) * 0.0067 //up to 33% dmg at max range of 3000
dmg *= this.damageReduction
//energy and heal drain should be calculated after damage boosts
if (tech.energySiphon && dmg !== Infinity && this.isDropPowerUp && m.immuneCycle < m.cycle) m.energy += Math.min(this.health, dmg) * tech.energySiphon