added power casting for pets who have DB entires

This commit is contained in:
2022-06-07 20:24:11 -05:00
parent 3c610a8564
commit 69c78fa5a6
3 changed files with 45 additions and 8 deletions
+1 -2
View File
@@ -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);