public static void IncreasePoses(Achievement.KeyStat pose) { foreach (Achievement data in achievements) { if (data.key == pose) { data.value = Math.Min(data.max, data.value + 1); } } }
private static void UpdateAchievements(Achievement[] list, Achievement.KeyStat key, int value) { foreach (Achievement data in list) { if (data.key == key && data.value < value) { data.value = Math.Min(data.max, value); } } }
public Pose(string icon, string idleName, Achievement.KeyStat achieveKey, string[] keys, Attribute.Type[] positiveAttributes, Attribute.Type[] negativeAttributes, bool isSequence = false) { this.icon = icon; this.idleName = idleName; this.achieveKey = achieveKey; this.keys = keys; this.positiveAttributes = positiveAttributes; this.negativeAttributes = negativeAttributes; this.isSequence = isSequence; }