Browse Source

mob resist issue

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

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

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

2
src/engine/objects/MobBase.java

@ -53,7 +53,7 @@ public class MobBase extends AbstractGameObject { @@ -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

Loading…
Cancel
Save