Browse Source

top of the hour disc spawns

lakebane-master
FatBoy-DOTC 7 months ago
parent
commit
3c1a217ac6
  1. 5
      src/engine/gameManager/LootManager.java
  2. 11
      src/engine/objects/Mob.java

5
src/engine/gameManager/LootManager.java

@ -108,11 +108,6 @@ public enum LootManager { @@ -108,11 +108,6 @@ public enum LootManager {
mob.level = 60;
mob.healthMax = 7500;
mob.setHealth(7500);
if(mob.firstSpawn) {
mob.killCharacter("first spawn");
mob.firstSpawn = false;
mob.despawn();
}
ChatSystemMsg chatMsg = new ChatSystemMsg(null, mob.getName() + " in " + mob.getParentZone().getName() + " may have found the " + ib.getName() + ". Are you tough enough to take it?");
chatMsg.setMessageType(10);
chatMsg.setChannel(Enum.ChatChannelType.SYSTEM.getChannelID());

11
src/engine/objects/Mob.java

@ -1746,6 +1746,17 @@ public class Mob extends AbstractIntelligenceAgent { @@ -1746,6 +1746,17 @@ public class Mob extends AbstractIntelligenceAgent {
this.level = 65;
}
}
for(Item loot : this.charItemManager.getInventory()){
if(loot.getItemBase().isDiscRune() && this.level < 80){
if(this.firstSpawn) {
this.killCharacter("first spawn");
this.firstSpawn = false;
if(this.despawned == false)
this.despawn();
}
}
}
}
@Override

Loading…
Cancel
Save