From 324851a8abb45c29f78d569b7cf25e6fab7d170b Mon Sep 17 00:00:00 2001 From: FatBoy-DOTC Date: Sun, 12 May 2024 16:20:17 -0500 Subject: [PATCH] mob resist issue --- src/engine/db/handlers/dbMobBaseHandler.java | 6 +++++- src/engine/objects/MobBase.java | 2 +- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/src/engine/db/handlers/dbMobBaseHandler.java b/src/engine/db/handlers/dbMobBaseHandler.java index 270ae5d0..a5f086c4 100644 --- a/src/engine/db/handlers/dbMobBaseHandler.java +++ b/src/engine/db/handlers/dbMobBaseHandler.java @@ -123,7 +123,11 @@ public class dbMobBaseHandler extends dbHandlerBase { int id = rs.getInt("loadID"); MobBase mobbase = MobBase.getMobBase(id); if(mobbase != null){ - mobbase.raceType = rs.getString("raceType"); + try { + mobbase.raceType = rs.getString("raceType"); + }catch(Exception e){ + + } } } diff --git a/src/engine/objects/MobBase.java b/src/engine/objects/MobBase.java index 16d469ee..e465b268 100644 --- a/src/engine/objects/MobBase.java +++ b/src/engine/objects/MobBase.java @@ -53,7 +53,7 @@ public class MobBase extends AbstractGameObject { private float run = 0; private float walkCombat = 0; private float runCombat = 0; - public String raceType = "Human"; + public String raceType = "All"; /** * ResultSet Constructor