internal bool doMelee(Moveable mob) { bool dead = mob.takeDamage(this, MELEE_DMG); if (dead) { dropThreat(mob); } return false; }
internal bool doFireAoe(Moveable mob) { bool dead = mob.takeDamage(this, GROUNDFIRE_DMG); if (dead) { dropThreat(mob); } return false; }
internal bool doVolley(Moveable mob) { bool dead = mob.takeDamage(this, VOLLEY_DMG * (enraged ? VOLLEY_ENRAGE_MULTI : 1)); if (dead) { dropThreat(mob); } return false; }
internal bool doMeleeHit(Moveable m) { if (m is Enemy) ((Enemy)m).takeDamage(this, MELEE_AMT + (float)buffs.getValue(BuffType.meleeDmg), 1); else m.takeDamage(this, MELEE_AMT); stack.stack(1); return true; }
internal bool doTankHit(Moveable m) { if (m is Enemy) ((Enemy)m).takeDamage(this, TANKHIT_AMT + (float)buffs.getValue(BuffType.meleeDmg), THREAT_MULTIPLIER); else m.takeDamage(this, TANKHIT_AMT + (float)buffs.getValue(BuffType.meleeDmg)); return true; }
internal bool doTankAoe(Moveable m) { if (m is Enemy) ((Enemy)m).takeDamage(this, TANKAOE_AMT, THREAT_MULTIPLIER); else//lol what? m.takeDamage(this, TANKAOE_AMT); return true; }
internal bool doVolley(Moveable mob) { float volleyDMG = VOLLEY_DMG * (enraged || dogEnrage ? VOLLEY_ENRAGE_MULTI : 1); bool dead = mob.takeDamage(this, volleyDMG); if (dead) { dropThreat(mob); } return false; }
internal bool doChargeDMG(Moveable attackee) { bool dead = attackee.takeDamage(this, MELEE_DMG); if (dead) { dropThreat(attackee); } //than do the knockback effect //Movement.knockback(attackee,new Vector2f()); return false; }
internal bool doMelee(Moveable mob) { bool dead = mob.takeDamage(this, MELEE_DMG * (leashed ? 1: (1 + UNLEASHED_DMG_BUFF))); if (dead) { dropThreat(mob); } return false; }
internal bool doMelee(Moveable mob) { bool dead = mob.takeDamage(this, MELEE_DMG * (dogEnrage ? ENRAGE_DOG : 1)); if (dead) { dropThreat(mob); } return false; }
internal bool doBiteDmg(Moveable m) { m.takeDamage(this, BITE_DMG); return false; }
internal bool doFireballAoe(Moveable damagee) { damagee.takeDamage(this, FIREBALL_DMG * FIREBALL_AOE_PERCENT); return true; }
//damagee = person who gets damaged internal bool doFireball(Moveable damagee) { damagee.takeDamage(this, FIREBALL_DMG); if (InGame.randy.NextDouble() <= BIGFIREBALL_STACK_CHANCE) sb1.stack(1); //aoe List<Moveable> enemys = InGame.getInstance().getAliveEnemyMoveables(damagee, FIREBALL_AOE_RANGE); foreach (Moveable mob in enemys) { if (!mob.isDead() && mob != damagee) { InGame.getInstance().addProjectileFromProj(new Projectile(this, damagee.getMid(), mob, doFireballAoe, fireballAoeProjectileTexture, fireballAoeProjectileRect)); } } return true; }
internal bool doBigFireballAoe(Moveable damagee) { damagee.takeDamage(this, BIGFIREBALL_DMG); return true; }
internal bool doBigFireball(Moveable damagee) { damagee.takeDamage(this, BIGFIREBALL_DMG); //aoe List<Moveable> enemys = InGame.getInstance().getAliveEnemyMoveables(damagee, BIGFIREBALL_AOE_RANGE); foreach (Moveable mob in enemys) { if (!mob.isDead() && mob != damagee) InGame.getInstance().addProjectileFromProj(new Projectile(this, damagee.getMid(), mob, doBigFireballAoe, bigFireballAoeProjectileTexture,bigFireballAoeProjectileRect)); } return true; }