vorg stats
This commit is contained in:
@@ -101,6 +101,11 @@ public enum LootManager {
|
|||||||
chatMsg.setChannel(Enum.ChatChannelType.SYSTEM.getChannelID());
|
chatMsg.setChannel(Enum.ChatChannelType.SYSTEM.getChannelID());
|
||||||
DispatchMessage.dispatchMsgToAll(chatMsg);
|
DispatchMessage.dispatchMsgToAll(chatMsg);
|
||||||
}
|
}
|
||||||
|
if (ib.isDiscRune()){
|
||||||
|
mob.level = 60;
|
||||||
|
mob.healthMax = 7500;
|
||||||
|
mob.setHealth(7500);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1232,17 +1232,24 @@ public class Item extends AbstractWorldObject {
|
|||||||
return;
|
return;
|
||||||
|
|
||||||
if (this.getItemBase() != null)
|
if (this.getItemBase() != null)
|
||||||
|
if(this.getItemBase().isVorg()){
|
||||||
for (Integer token : this.getItemBase().getBakedInStats().keySet()) {
|
this.clearEffects();
|
||||||
|
for(String powerString : this.getItemBase().getVorgStats()){
|
||||||
effect = PowersManager.getEffectByToken(token);
|
AbstractPowerAction apa = PowersManager.getPowerActionByIDString(powerString);
|
||||||
|
apa.applyBakedInStatsForItem(this, 0);
|
||||||
if (effect == null) {
|
}
|
||||||
Logger.error("missing effect of token " + token);
|
}else {
|
||||||
continue;
|
for (Integer token : this.getItemBase().getBakedInStats().keySet()) {
|
||||||
|
|
||||||
|
effect = PowersManager.getEffectByToken(token);
|
||||||
|
|
||||||
|
if (effect == null) {
|
||||||
|
Logger.error("missing effect of token " + token);
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
AbstractPowerAction apa = PowersManager.getPowerActionByIDString(effect.getIDString());
|
||||||
|
apa.applyBakedInStatsForItem(this, this.getItemBase().getBakedInStats().get(token));
|
||||||
}
|
}
|
||||||
AbstractPowerAction apa = PowersManager.getPowerActionByIDString(effect.getIDString());
|
|
||||||
apa.applyBakedInStatsForItem(this, this.getItemBase().getBakedInStats().get(token));
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -919,4 +919,19 @@ public class ItemBase {
|
|||||||
public boolean isVorg(){
|
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);
|
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",};
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user