mirror of
https://github.com/ProjectSWGCore/NGECore2.git
synced 2026-10-06 21:12:59 -04:00
Loot System changes, see extended
* Added /setgodmode genloot <lootTemplate> command * Added the option to have a 'custom setup' of a looted object template (see scripts/loot/lootItems/veryrareloot/rare_ankarres_sapphire.py), procedure is same as object scripts * Looted items no longer need custom names in order to not have an empty name (most scripts containing a custom name can now have that method removed)
This commit is contained in:
@@ -134,7 +134,7 @@ public class EquipmentService implements INetworkDispatch {
|
||||
return result;
|
||||
}
|
||||
|
||||
public void equip(CreatureObject actor, SWGObject item)
|
||||
synchronized public void equip(CreatureObject actor, SWGObject item)
|
||||
{
|
||||
String template = ((item.getAttachment("customServerTemplate") == null) ? item.getTemplate() : (item.getTemplate().split("shared_")[0] + "shared_" + ((String) item.getAttachment("customServerTemplate")) + ".iff"));
|
||||
String serverTemplate = template.replace(".iff", "");
|
||||
@@ -151,7 +151,7 @@ public class EquipmentService implements INetworkDispatch {
|
||||
}
|
||||
}
|
||||
|
||||
public void unequip(CreatureObject actor, SWGObject item)
|
||||
synchronized public void unequip(CreatureObject actor, SWGObject item)
|
||||
{
|
||||
String template = ((item.getAttachment("customServerTemplate") == null) ? item.getTemplate() : (item.getTemplate().split("shared_")[0] + "shared_" + ((String) item.getAttachment("customServerTemplate")) + ".iff"));
|
||||
String serverTemplate = template.replace(".iff", "");
|
||||
|
||||
Reference in New Issue
Block a user