mirror of
https://github.com/ProjectSWGCore/NGECore2.git
synced 2026-08-02 03:15:52 -04:00
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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user