Fixed loot system message, added functions to TangibleObject to obtain different variants of the object's name

This commit is contained in:
Seefo
2014-05-06 13:03:54 -04:00
parent 0ac226b50f
commit f394dd6e19
3 changed files with 20 additions and 6 deletions
@@ -512,6 +512,24 @@ public class TangibleObject extends SWGObject implements Serializable {
}
}
// Returns the STF-based name
public String getProperName()
{
return "@" + getStfFilename() + ":" + getStfName();
}
// Returns the current, true name of the Object
public String getTrueName()
{
return getCustomName() != null ? getCustomName() : getProperName();
}
// Returns the STF-based description
public String getProperDescription()
{
return "@" + getDetailFilename() + ":" + getDetailName();
}
public List<LootGroup> getLootGroups() {
return lootGroups;
}