added power casting for pets who have DB entires
This commit is contained in:
1 parent
3c610a8564
commit
69c78fa5a6
3 files changed
+45
-8
No files matched your search
@@ -1126,8 +1126,7 @@ public class MobileFSM {
|
||||
return;
|
||||
}
|
||||
|
||||
//HashMap<Integer, Integer> staticPowers = aiAgent.getMobBase().getStaticPowers();
|
||||
HashMap<Integer,Integer> staticPowers = DbManager.MobBaseQueries.LOAD_STATIC_POWERS(aiAgent.getMobBaseID());
|
||||
HashMap<Integer, Integer> staticPowers = aiAgent.getMobBase().getStaticPowers();
|
||||
if (staticPowers != null && !staticPowers.isEmpty()) {
|
||||
|
||||
int chance = ThreadLocalRandom.current().nextInt(100);
|
||||
|
||||
Reference in new issue
Block a user