public static void GainPerk(this BasicChar basicChar, VorePerks type) { switch (type) { case VorePerks.Elastic: break; case VorePerks.Compression: break; } if (basicChar.Vore.Perks.HasPerk(type)) { basicChar.Vore.Perks.GetPerk(type).LevelUp(); } else { basicChar.Vore.Perks.VorePerks.Add(new VorePerk(type)); } }
public VorePerk(VorePerks type) => this.type = type;
public bool NotMaxLevel(VorePerks type, int maxLevel) => HasPerk(type) ? GetPerk(type).Level < maxLevel : false;
public int GetPerkLevel(VorePerks type) => HasPerk(type) ? GetPerk(type).Level : 0;
public VorePerk GetPerk(VorePerks type) => VorePerks.Find(p => p.Type == type);
public bool HasPerk(VorePerks type) => VorePerks.Exists(p => p.Type == type);