Browse Source

mob resist issue

lakebane-master
FatBoy-DOTC 6 months ago
parent
commit
324851a8ab
  1. 6
      src/engine/db/handlers/dbMobBaseHandler.java
  2. 2
      src/engine/objects/MobBase.java

6
src/engine/db/handlers/dbMobBaseHandler.java

@ -123,7 +123,11 @@ public class dbMobBaseHandler extends dbHandlerBase {
int id = rs.getInt("loadID"); int id = rs.getInt("loadID");
MobBase mobbase = MobBase.getMobBase(id); MobBase mobbase = MobBase.getMobBase(id);
if(mobbase != null){ if(mobbase != null){
mobbase.raceType = rs.getString("raceType"); try {
mobbase.raceType = rs.getString("raceType");
}catch(Exception e){
}
} }
} }

2
src/engine/objects/MobBase.java

@ -53,7 +53,7 @@ public class MobBase extends AbstractGameObject {
private float run = 0; private float run = 0;
private float walkCombat = 0; private float walkCombat = 0;
private float runCombat = 0; private float runCombat = 0;
public String raceType = "Human"; public String raceType = "All";
/** /**
* ResultSet Constructor * ResultSet Constructor

Loading…
Cancel
Save