mirror of
https://github.com/SWG-Source/dsrc.git
synced 2026-07-13 22:01:04 -04:00
24 lines
643 B
Java
Executable File
24 lines
643 B
Java
Executable File
package script.faction_perk.hq;
|
|
|
|
import script.obj_id;
|
|
import script.string_id;
|
|
|
|
public class deed extends script.faction_perk.base.factional_deed
|
|
{
|
|
public deed()
|
|
{
|
|
}
|
|
public int OnAttach(obj_id self) throws InterruptedException
|
|
{
|
|
String faction = "imperial";
|
|
if (getTemplateName(self).contains("_rebel"))
|
|
{
|
|
faction = "rebel";
|
|
}
|
|
string_id newFactionalizedName = new string_id("deed", getNameStringId(self).getAsciiId() + "_" + faction);
|
|
setName(self, "");
|
|
setName(self, newFactionalizedName);
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
}
|