Browse Source

hellgates maybe? round 5

lakebane
FatBoy-DOTC 3 weeks ago
parent
commit
e71ca71b30
  1. 3
      src/engine/gameManager/HellgateManager.java

3
src/engine/gameManager/HellgateManager.java

@ -42,6 +42,7 @@ public class HellgateManager {
LootManager.GenerateStrongholdLoot(mob,true,false); LootManager.GenerateStrongholdLoot(mob,true,false);
hellgate.mini_bosses.add(mob); hellgate.mini_bosses.add(mob);
mob.setObjectUUID(Integer.MAX_VALUE - (10000 + offsetUID)); mob.setObjectUUID(Integer.MAX_VALUE - (10000 + offsetUID));
DbManager.addToCache(mob);
offsetUID++; offsetUID++;
for(int i = 0; i < 5; i++){ for(int i = 0; i < 5; i++){
Mob minion = CreateHellgateMob(); Mob minion = CreateHellgateMob();
@ -52,6 +53,7 @@ public class HellgateManager {
LootManager.GenerateStrongholdLoot(minion,false,false); LootManager.GenerateStrongholdLoot(minion,false,false);
hellgate.mobs.add(minion); hellgate.mobs.add(minion);
minion.setObjectUUID(Integer.MAX_VALUE - (10000 + offsetUID)); minion.setObjectUUID(Integer.MAX_VALUE - (10000 + offsetUID));
DbManager.addToCache(minion);
offsetUID++; offsetUID++;
} }
} }
@ -64,6 +66,7 @@ public class HellgateManager {
LootManager.GenerateStrongholdLoot(mob,false,true); LootManager.GenerateStrongholdLoot(mob,false,true);
hellgate.boss = mob; hellgate.boss = mob;
mob.setObjectUUID(Integer.MAX_VALUE - (10000 + offsetUID)); mob.setObjectUUID(Integer.MAX_VALUE - (10000 + offsetUID));
DbManager.addToCache(mob);
offsetUID++; offsetUID++;
} }

Loading…
Cancel
Save