baked in stats items no longer show up as "unidentified"
This commit is contained in:
@@ -13,7 +13,6 @@ import engine.InterestManagement.WorldGrid;
|
|||||||
import engine.ai.utilities.CombatUtilities;
|
import engine.ai.utilities.CombatUtilities;
|
||||||
import engine.ai.utilities.MovementUtilities;
|
import engine.ai.utilities.MovementUtilities;
|
||||||
import engine.gameManager.*;
|
import engine.gameManager.*;
|
||||||
import engine.math.Vector2f;
|
|
||||||
import engine.math.Vector3f;
|
import engine.math.Vector3f;
|
||||||
import engine.math.Vector3fImmutable;
|
import engine.math.Vector3fImmutable;
|
||||||
import engine.net.DispatchMessage;
|
import engine.net.DispatchMessage;
|
||||||
@@ -24,7 +23,6 @@ import engine.objects.*;
|
|||||||
import engine.powers.ActionsBase;
|
import engine.powers.ActionsBase;
|
||||||
import engine.powers.PowersBase;
|
import engine.powers.PowersBase;
|
||||||
import engine.server.MBServerStatics;
|
import engine.server.MBServerStatics;
|
||||||
|
|
||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
import java.util.HashSet;
|
import java.util.HashSet;
|
||||||
import java.util.Map.Entry;
|
import java.util.Map.Entry;
|
||||||
|
|||||||
@@ -72,6 +72,7 @@ public class LootManager {
|
|||||||
chatMsg.setChannel(Enum.ChatChannelType.SYSTEM.getChannelID());
|
chatMsg.setChannel(Enum.ChatChannelType.SYSTEM.getChannelID());
|
||||||
DispatchMessage.dispatchMsgToAll(chatMsg);
|
DispatchMessage.dispatchMsgToAll(chatMsg);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -87,6 +88,9 @@ public class LootManager {
|
|||||||
float dropChance = me.getDropChance() * 100;
|
float dropChance = me.getDropChance() * 100;
|
||||||
if (equipmentRoll <= (dropChance * multiplier)) {
|
if (equipmentRoll <= (dropChance * multiplier)) {
|
||||||
MobLoot ml = new MobLoot(mob, me.getItemBase(), false);
|
MobLoot ml = new MobLoot(mob, me.getItemBase(), false);
|
||||||
|
if(ml.getPrefix().isEmpty() == true && ml.getSuffix().isEmpty() == true){
|
||||||
|
ml.setIsID(true);
|
||||||
|
}
|
||||||
mob.getCharItemManager().addItemToInventory(ml);
|
mob.getCharItemManager().addItemToInventory(ml);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -119,6 +123,9 @@ public class LootManager {
|
|||||||
//iterate the booty tables and add items to mob inventory
|
//iterate the booty tables and add items to mob inventory
|
||||||
MobLoot toAdd = getGenTableItem(bse.lootTable, mob);
|
MobLoot toAdd = getGenTableItem(bse.lootTable, mob);
|
||||||
if (toAdd != null) {
|
if (toAdd != null) {
|
||||||
|
if(toAdd.getPrefix().isEmpty() == true && toAdd.getSuffix().isEmpty() == true){
|
||||||
|
toAdd.setIsID(true);
|
||||||
|
}
|
||||||
mob.getCharItemManager().addItemToInventory(toAdd);
|
mob.getCharItemManager().addItemToInventory(toAdd);
|
||||||
}
|
}
|
||||||
if (inHotzone) {
|
if (inHotzone) {
|
||||||
@@ -126,6 +133,9 @@ public class LootManager {
|
|||||||
int lootTableID = bse.lootTable + 1;
|
int lootTableID = bse.lootTable + 1;
|
||||||
MobLoot toAddHZ = getGenTableItem(lootTableID, mob);
|
MobLoot toAddHZ = getGenTableItem(lootTableID, mob);
|
||||||
if (toAddHZ != null)
|
if (toAddHZ != null)
|
||||||
|
if(toAdd.getPrefix().isEmpty() == true && toAdd.getSuffix().isEmpty() == true){
|
||||||
|
toAdd.setIsID(true);
|
||||||
|
}
|
||||||
mob.getCharItemManager().addItemToInventory(toAddHZ);
|
mob.getCharItemManager().addItemToInventory(toAddHZ);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user