This commit is contained in:
2024-03-02 17:28:01 -06:00
parent c520263179
commit f52e67e80c
2 changed files with 19 additions and 10 deletions
-4
View File
@@ -156,12 +156,8 @@ public class Mob extends AbstractIntelligenceAgent {
this.currentID = this.dbID; this.currentID = this.dbID;
this.agentType = AIAgentType.MOBILE; this.agentType = AIAgentType.MOBILE;
if(this.getMobBaseID() == 14104) {//guards if(this.getMobBaseID() == 14104) {//guards
this.level = 75;
this.behaviourType = MobBehaviourType.Aggro; this.behaviourType = MobBehaviourType.Aggro;
this.healthMax = 15000;
this.setHealth(15000);
} }
} catch (Exception e) { } catch (Exception e) {
Logger.error(e + " " + this.dbID); Logger.error(e + " " + this.dbID);
+19 -6
View File
@@ -63,19 +63,32 @@ public class MobBase extends AbstractGameObject {
this.loadID = rs.getInt("loadID"); this.loadID = rs.getInt("loadID");
this.firstName = rs.getString("name"); 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.goldMod = rs.getInt("goldMod");
this.spawnTime = rs.getInt("spawnTime"); this.spawnTime = rs.getInt("spawnTime");
if(this.loadID == 14104){
this.healthMax = rs.getInt("health"); this.healthMax = 15000;
this.damageMin = rs.getFloat("minDmg"); this.damageMin = 250;
this.damageMax = rs.getFloat("maxDmg"); 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.attackRating = rs.getInt("atr");
this.defenseRating = rs.getInt("defense"); this.defenseRating = rs.getInt("defense");
this.attackRange = rs.getFloat("attackRange"); 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")); this.fsm = Enum.MobBehaviourType.valueOf(rs.getString("fsm"));