dropper resists
This commit is contained in:
@@ -450,10 +450,10 @@ public enum LootManager {
|
|||||||
if(!Mob.disciplineDroppers.contains(mob))
|
if(!Mob.disciplineDroppers.contains(mob))
|
||||||
Mob.disciplineDroppers.add(mob);
|
Mob.disciplineDroppers.add(mob);
|
||||||
|
|
||||||
mob.level = 65;
|
//mob.level = 65;
|
||||||
mob.healthMax = 7500;
|
//mob.healthMax = 7500;
|
||||||
mob.setHealth(7500);
|
//mob.setHealth(7500);
|
||||||
mob.setResists(new Resists("Dropper"));
|
//mob.setResists(new Resists("Dropper"));
|
||||||
ChatSystemMsg chatMsg = new ChatSystemMsg(null, mob.getName() + " in " + mob.getParentZone().getName() + " has found the " + ItemBase.getItemBase(bse.itemBase).getName() + ". Are you tough enough to take it?");
|
ChatSystemMsg chatMsg = new ChatSystemMsg(null, mob.getName() + " in " + mob.getParentZone().getName() + " has found the " + ItemBase.getItemBase(bse.itemBase).getName() + ". Are you tough enough to take it?");
|
||||||
chatMsg.setMessageType(10);
|
chatMsg.setMessageType(10);
|
||||||
chatMsg.setChannel(Enum.ChatChannelType.SYSTEM.getChannelID());
|
chatMsg.setChannel(Enum.ChatChannelType.SYSTEM.getChannelID());
|
||||||
|
|||||||
@@ -80,8 +80,8 @@ public class Mob extends AbstractIntelligenceAgent {
|
|||||||
private DeferredPowerJob weaponPower;
|
private DeferredPowerJob weaponPower;
|
||||||
private DateTime upgradeDateTime = null;
|
private DateTime upgradeDateTime = null;
|
||||||
private boolean lootSync = false;
|
private boolean lootSync = false;
|
||||||
public int discDelay = 6;
|
|
||||||
public boolean firstSpawn = true;
|
public boolean dropper = false;
|
||||||
|
|
||||||
// New Mobile constructor. Fill in the blanks and then call
|
// New Mobile constructor. Fill in the blanks and then call
|
||||||
// PERSIST.
|
// PERSIST.
|
||||||
@@ -1740,22 +1740,21 @@ public class Mob extends AbstractIntelligenceAgent {
|
|||||||
this.behaviourType = MobBehaviourType.Aggro;
|
this.behaviourType = MobBehaviourType.Aggro;
|
||||||
}
|
}
|
||||||
|
|
||||||
boolean isDropper = false;
|
|
||||||
for(MobEquipment equipped: this.equip.values()){
|
for(MobEquipment equipped: this.equip.values()){
|
||||||
if(equipped.getItemBase().isVorg() && this.getMobBaseID() != 14062){
|
if(equipped.getItemBase().isVorg() && this.getMobBaseID() != 14062){
|
||||||
//this.healthMax = 7500;
|
//this.healthMax = 7500;
|
||||||
//this.setHealth(this.healthMax);
|
//this.setHealth(this.healthMax);
|
||||||
//this.level = 65;
|
//this.level = 65;
|
||||||
isDropper = true;
|
this.dropper = true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
for(Item item : this.charItemManager.getInventory()){
|
for(Item item : this.charItemManager.getInventory()){
|
||||||
if(item.getItemBase().isDiscRune() && this.level < 75){
|
if(item.getItemBase().isDiscRune() && this.level < 75){
|
||||||
isDropper = true;
|
this.dropper = true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if(isDropper){
|
if(this.dropper){
|
||||||
this.level = 65;
|
this.level = 65;
|
||||||
this.resists = new Resists("Dropper");
|
this.resists = new Resists("Dropper");
|
||||||
this.atrHandOne *= 2;
|
this.atrHandOne *= 2;
|
||||||
|
|||||||
@@ -441,6 +441,11 @@ public class Resists {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public void calculateResists(AbstractCharacter ac, boolean val) {
|
public void calculateResists(AbstractCharacter ac, boolean val) {
|
||||||
|
|
||||||
|
if(ac.getObjectType().equals(Enum.GameObjectType.Mob) && ((Mob)ac).dropper){
|
||||||
|
this.setDropperResists();
|
||||||
|
return;
|
||||||
|
}
|
||||||
this.immuneTo.clear();
|
this.immuneTo.clear();
|
||||||
|
|
||||||
// get resists for runes
|
// get resists for runes
|
||||||
|
|||||||
Reference in New Issue
Block a user