Initial Stronghold Push

This commit is contained in:
2024-07-07 20:44:24 -05:00
parent 7e457fa17b
commit 9f591b166b
6 changed files with 189 additions and 11 deletions
+23
View File
@@ -663,4 +663,27 @@ public enum LootManager {
}
}
public static void GenerateStrongholdLoot(Mob mob, boolean commander){
mob.getCharItemManager().clearInventory();
int multiplier = 1;
if(commander)
multiplier = 2;
int high = 500000;
int low = 125000;
int gold = ThreadLocalRandom.current().nextInt(low, high + 1) * multiplier;
if (gold > 0) {
MobLoot goldAmount = new MobLoot(mob, gold);
mob.getCharItemManager().addItemToInventory(goldAmount);
}
for(int i = 0; i < 3 * multiplier; i++){
DropPresent(mob);
}
}
}