private Perk(int instance, int templateInstance, int prerequisitePerkInstance, int perkType, int allowedProfessions, int actionInstance, int requiredExperience) { Instance = instance; TemplateInstance = templateInstance; PrerequisitePerkInstance = prerequisitePerkInstance; PerkType = (PerkType)perkType; AllowedProfessions = (ProfessionFlag)allowedProfessions; ActionInstance = actionInstance; RequiredExperience = requiredExperience; //Remaining is not returned by GetFullPerkMap Name = N3EngineClientAnarchy.GetName(new Identity(IdentityType.None, TemplateInstance)); string sanitizedName = Name.Replace(" ", "").Replace("-", "").Replace("'", ""); PerkLine = (PerkLine)Enum.Parse(typeof(PerkLine), sanitizedName); }
public void Open() { N3EngineClientAnarchy.UseItem(Identity); }
public bool IsTrained() { return(N3EngineClientAnarchy.HasPerk(Instance)); }