Exemplo n.º 1
0
    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));
        }
    }
Exemplo n.º 2
0
 public VorePerk(VorePerks type) => this.type = type;
Exemplo n.º 3
0
 public bool NotMaxLevel(VorePerks type, int maxLevel) => HasPerk(type) ? GetPerk(type).Level < maxLevel : false;
Exemplo n.º 4
0
 public int GetPerkLevel(VorePerks type) => HasPerk(type) ? GetPerk(type).Level : 0;
Exemplo n.º 5
0
 public VorePerk GetPerk(VorePerks type) => VorePerks.Find(p => p.Type == type);
Exemplo n.º 6
0
 public bool HasPerk(VorePerks type) => VorePerks.Exists(p => p.Type == type);