Files
dsrc/sku.0/sys.server/compiled/game/script/faction_perk/hq/deed.java
T
2018-03-26 01:21:00 +01:00

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;
}
}