From f52e67e80c7d566d7353454d580d9693bf69119f Mon Sep 17 00:00:00 2001 From: FatBoy-DOTC Date: Sat, 2 Mar 2024 17:28:01 -0600 Subject: [PATCH] guards --- src/engine/objects/Mob.java | 4 ---- src/engine/objects/MobBase.java | 25 +++++++++++++++++++------ 2 files changed, 19 insertions(+), 10 deletions(-) diff --git a/src/engine/objects/Mob.java b/src/engine/objects/Mob.java index 59ea6817..bb06c106 100644 --- a/src/engine/objects/Mob.java +++ b/src/engine/objects/Mob.java @@ -156,12 +156,8 @@ public class Mob extends AbstractIntelligenceAgent { this.currentID = this.dbID; this.agentType = AIAgentType.MOBILE; - if(this.getMobBaseID() == 14104) {//guards - this.level = 75; this.behaviourType = MobBehaviourType.Aggro; - this.healthMax = 15000; - this.setHealth(15000); } } catch (Exception e) { Logger.error(e + " " + this.dbID); diff --git a/src/engine/objects/MobBase.java b/src/engine/objects/MobBase.java index 80adffb0..43f4d6ae 100644 --- a/src/engine/objects/MobBase.java +++ b/src/engine/objects/MobBase.java @@ -63,19 +63,32 @@ public class MobBase extends AbstractGameObject { this.loadID = rs.getInt("loadID"); this.firstName = rs.getString("name"); - this.level = rs.getByte("level"); + if(this.loadID == 14104){ + this.level = 75; + }else { + this.level = rs.getByte("level"); + } this.goldMod = rs.getInt("goldMod"); this.spawnTime = rs.getInt("spawnTime"); - - this.healthMax = rs.getInt("health"); - this.damageMin = rs.getFloat("minDmg"); - this.damageMax = rs.getFloat("maxDmg"); + if(this.loadID == 14104){ + this.healthMax = 15000; + this.damageMin = 250; + this.damageMax = 500; + }else { + this.healthMax = rs.getInt("health"); + this.damageMin = rs.getFloat("minDmg"); + this.damageMax = rs.getFloat("maxDmg"); + } this.attackRating = rs.getInt("atr"); this.defenseRating = rs.getInt("defense"); this.attackRange = rs.getFloat("attackRange"); - this.bootySet = rs.getInt("bootySet"); + if(this.loadID == 14104){ + this.bootySet = 0; + }else { + this.bootySet = rs.getInt("bootySet"); + } this.fsm = Enum.MobBehaviourType.valueOf(rs.getString("fsm"));