forked from MagicBane/Server
Random Vorg From Droppers
This commit is contained in:
@@ -13,6 +13,7 @@ import engine.Enum.DamageType;
|
||||
import engine.Enum.GameObjectType;
|
||||
import engine.Enum.ItemType;
|
||||
import engine.gameManager.DbManager;
|
||||
import engine.gameManager.LootManager;
|
||||
import engine.server.MBServerStatics;
|
||||
import org.pmw.tinylog.Logger;
|
||||
|
||||
@@ -914,4 +915,23 @@ public class ItemBase {
|
||||
public void setAutoID(boolean autoID) {
|
||||
this.autoID = autoID;
|
||||
}
|
||||
|
||||
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",};
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user