示例#1
0
        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);
        }
示例#2
0
 public void Open()
 {
     N3EngineClientAnarchy.UseItem(Identity);
 }
示例#3
0
 public bool IsTrained()
 {
     return(N3EngineClientAnarchy.HasPerk(Instance));
 }