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:
Seefo
2014-05-07 22:11:18 -04:00
parent 2285378ad7
commit d182fea6eb
6 changed files with 38 additions and 6 deletions
+2 -2
View File
@@ -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", "");