public void SwapStats(DataStoreCrystarium other) { CrystariumType type = other.Type; ushort value = other.Value; other.Type = this.Type; other.Value = this.Value; this.Type = type; this.Value = value; }
public void SwapStatsAbilities(DataStoreCrystarium other) { SwapStats(other); uint pointer = other.AbilityPointer; other.AbilityPointer = this.AbilityPointer; this.AbilityPointer = pointer; string abilityName = other.AbilityName; other.AbilityName = this.AbilityName; this.AbilityName = abilityName; }
public static Ability GetAbility(string name, DataStoreCrystarium cryst) { return(Abilities.abilities.Where(a => a.HasCharacter(GetCharID(name)) && a.GetAbility(GetCharID(name)) == cryst.AbilityName).FirstOrDefault()); }