Browse Source

added hotzone tables to simulate booty command

master
FatBoy-DOTC 1 year ago
parent
commit
32653216e9
  1. 10
      src/engine/devcmd/cmds/simulateBootyCmd.java
  2. 8
      src/engine/gameManager/LootManager.java

10
src/engine/devcmd/cmds/simulateBootyCmd.java

@ -3,7 +3,9 @@ package engine.devcmd.cmds; @@ -3,7 +3,9 @@ package engine.devcmd.cmds;
import engine.Enum;
import engine.devcmd.AbstractDevCmd;
import engine.gameManager.BuildingManager;
import engine.gameManager.LootManager;
import engine.gameManager.NPCManager;
import engine.gameManager.ZoneManager;
import engine.objects.*;
import java.util.ArrayList;
@ -135,7 +137,13 @@ public class simulateBootyCmd extends AbstractDevCmd { @@ -135,7 +137,13 @@ public class simulateBootyCmd extends AbstractDevCmd {
output += "Mob BootySet: " + mob.bootySet + newline;
output += "Tables Rolled On: " + newline;
for (BootySetEntry entry : NPCManager._bootySetMap.get(mob.getMobBase().bootySet)) {
output += "[" + entry.bootyType + "] " + entry.lootTable + newline;
output += "NORMAL TABLE [" + entry.bootyType + "] " + entry.lootTable + newline;
}
if(ZoneManager.inHotZone(mob.getLoc())){
for (BootySetEntry entry : NPCManager._bootySetMap.get(mob.getMobBase().bootySet)) {
if(LootManager.generalItemTables.containsKey(entry.lootTable + 1) == true)
output += "HOTZONE TABLE [" + entry.bootyType + "] " + entry.lootTable + 1 + newline;
}
}
output += "Time Required To Gain Simulated Booty: " + respawnTime * 100 + " Seconds" + newline;
output += "GLASS DROPS: " + GlassItems.size() + newline;

8
src/engine/gameManager/LootManager.java

@ -28,10 +28,10 @@ public enum LootManager { @@ -28,10 +28,10 @@ public enum LootManager {
LOOTMANAGER;
//new tables
private static final HashMap<Integer, GenTable> generalItemTables = new HashMap<>();
private static final HashMap<Integer, ItemTable> itemTables = new HashMap<>();
private static final HashMap<Integer, ModTypeTable> modTypeTables = new HashMap<>();
private static final HashMap<Integer, ModTable> modTables = new HashMap<>();
public static final HashMap<Integer, GenTable> generalItemTables = new HashMap<>();
public static final HashMap<Integer, ItemTable> itemTables = new HashMap<>();
public static final HashMap<Integer, ModTypeTable> modTypeTables = new HashMap<>();
public static final HashMap<Integer, ModTable> modTables = new HashMap<>();
// Drop Rates

Loading…
Cancel
Save