various cleanups

This commit is contained in:
2024-04-23 05:44:32 -05:00
parent 928845a220
commit 9879c1b18f
3 changed files with 14 additions and 23 deletions
+11 -15
View File
@@ -101,18 +101,6 @@ public enum LootManager {
chatMsg.setChannel(Enum.ChatChannelType.SYSTEM.getChannelID());
DispatchMessage.dispatchMsgToAll(chatMsg);
}
if (ib.isDiscRune() && mob.level < 80){
if(Mob.disciplineDroppers.contains(mob) == false){
Mob.disciplineDroppers.add(mob);
}
mob.level = 60;
mob.healthMax = 7500;
mob.setHealth(7500);
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());
DispatchMessage.dispatchMsgToAll(chatMsg);
}
}
}
@@ -458,14 +446,22 @@ public enum LootManager {
if(bse.itemBase == 3049)//disable clanwarden
return;
int chance = 25;
int chance;
if(ItemBase.getItemBase(bse.itemBase).isDiscRune() == false) {
if(!ItemBase.getItemBase(bse.itemBase).isDiscRune()) {
chance = (int) bse.dropChance;
}else {
chance = 25;
if(Mob.disciplineDroppers.contains(mob) == false)
if(!Mob.disciplineDroppers.contains(mob))
Mob.disciplineDroppers.add(mob);
mob.level = 60;
mob.healthMax = 7500;
mob.setHealth(7500);
ChatSystemMsg chatMsg = new ChatSystemMsg(null, mob.getName() + " in " + mob.getParentZone().getName() + " may have found the " + ItemBase.getItemBase(bse.itemBase).getName() + ". Are you tough enough to take it?");
chatMsg.setMessageType(10);
chatMsg.setChannel(Enum.ChatChannelType.SYSTEM.getChannelID());
DispatchMessage.dispatchMsgToAll(chatMsg);
}
//if((bse.itemBase == 3040 || bse.itemBase == 3021) && mob.level < 80){