Initial commit of lightsaber customization - see extended

The majority of lightsaber customization now works.

All that I can think of that needs to be done is:

* Rare/Unique color crystals names/palette index to
resources.datatables.LightsaberColors
* Weapon element types and damage bonus based on color crystal
* Random stats when tuning power crystals/krayt dragon pearls
* Checks to see if lightsaber is full - container size is in IFFs, we
should implement it for all containers
This commit is contained in:
Seefo
2014-05-05 20:19:07 -04:00
parent 07fb35b747
commit 8dd5f5d053
11 changed files with 280 additions and 5 deletions
@@ -297,6 +297,13 @@ public class TangibleObject extends SWGObject implements Serializable {
}
}
public Byte getCustomizationVariable(String type)
{
if(customizationVariables.containsKey(type)) return customizationVariables.get(type);
System.err.println("Error: object doesn't have customization variable " + type);
return null;
}
public void setCustomizationVariable(String type, byte value)
{
if(customizationVariables.containsKey(type)) customizationVariables.replace(type, value);