public static void AddPerk(Profile p, PartyPerks perk) { if (!Party._perks.ContainsKey(p)) { Party._perks[p] = new List <PartyPerks>(); } if (Party._perks[p].Contains(perk)) { return; } Party._perks[p].Add(perk); }
public static bool HasPerk(Profile p, PartyPerks perk) => TeamSelect2.partyMode && Party._perks.ContainsKey(p) && Party._perks[p].Contains(perk);