Browse Source

vorg stats

lakebane-master
FatBoy-DOTC 8 months ago
parent
commit
f777f480ad
  1. 5
      src/engine/gameManager/LootManager.java
  2. 9
      src/engine/objects/Item.java
  3. 15
      src/engine/objects/ItemBase.java

5
src/engine/gameManager/LootManager.java

@ -101,6 +101,11 @@ public enum LootManager { @@ -101,6 +101,11 @@ public enum LootManager {
chatMsg.setChannel(Enum.ChatChannelType.SYSTEM.getChannelID());
DispatchMessage.dispatchMsgToAll(chatMsg);
}
if (ib.isDiscRune()){
mob.level = 60;
mob.healthMax = 7500;
mob.setHealth(7500);
}
}
}

9
src/engine/objects/Item.java

@ -1232,7 +1232,13 @@ public class Item extends AbstractWorldObject { @@ -1232,7 +1232,13 @@ public class Item extends AbstractWorldObject {
return;
if (this.getItemBase() != null)
if(this.getItemBase().isVorg()){
this.clearEffects();
for(String powerString : this.getItemBase().getVorgStats()){
AbstractPowerAction apa = PowersManager.getPowerActionByIDString(powerString);
apa.applyBakedInStatsForItem(this, 0);
}
}else {
for (Integer token : this.getItemBase().getBakedInStats().keySet()) {
effect = PowersManager.getEffectByToken(token);
@ -1245,6 +1251,7 @@ public class Item extends AbstractWorldObject { @@ -1245,6 +1251,7 @@ public class Item extends AbstractWorldObject {
apa.applyBakedInStatsForItem(this, this.getItemBase().getBakedInStats().get(token));
}
}
}
public final void loadEnchantments() {
//dont load mobloot enchantments, they arent in db.

15
src/engine/objects/ItemBase.java

@ -919,4 +919,19 @@ public class ItemBase { @@ -919,4 +919,19 @@ public class ItemBase {
public boolean isVorg(){
return LootManager.vorg_ha_uuids.contains(this.uuid) || LootManager.vorg_ma_uuids.contains(this.uuid) || LootManager.vorg_la_uuids.contains(this.uuid) || LootManager.vorg_cloth_uuids.contains(this.uuid);
}
public String[] getVorgStats() {
if(this.isLightArmor() || this.isMediumArmor() || this.isHeavyArmor() || this.isClothArmor()){
if(this.getValidSlot() == MBServerStatics.SLOT_FEET) {
return new String[]{"PRE-130", "PRE-232", "PRE-212", "PRE-222", "SUF-007","SUF-150"};
}else {
return new String[]{"PRE-130", "PRE-232", "PRE-212", "PRE-222", "SUF-007"};
}
} else if(this.isShield()){//shield
return new String[]{"SUF-265","PRE-123","PRE-232", "PRE-212", "PRE-222"};
} else{//weapon
return new String[]{"PRE-020","PRE-033",};
}
}
}

Loading…
Cancel
Save