private void ChooseRace(RaceType race) { if (race.Equals(RaceType.Elf)) { MAX_HEALTH += 180; Intelligence += 10; Strength -= 4; Agility += 7; Endurance -= 5; MAX_HEALTH -= MAX_HEALTH * 0.2; } else if (race.Equals(RaceType.Human)) { MAX_HEALTH += 200; Intelligence += 9; Strength += 5; Agility -= 1; Endurance += 6; } else if (race.Equals(RaceType.Dwarf)) { MAX_HEALTH -= MAX_HEALTH * 0.3; MAX_MANA += 20; MAX_STAMINA -= 30; Intelligence += 4; Strength += 7; Agility -= 3; Endurance += 15; } else if (race.Equals(RaceType.Orc)) { MAX_HEALTH += MAX_HEALTH * 0.4; MAX_MANA -= MAX_MANA * 0.5; MAX_STAMINA += MAX_STAMINA * 0.5; Intelligence -= 7; Strength += 11; Agility -= 5; Endurance += 7; BasedDamage += 50; } }
public bool Equals(DestinyRaceDefinition input) { if (input == null) { return(false); } return (( DisplayProperties == input.DisplayProperties || (DisplayProperties != null && DisplayProperties.Equals(input.DisplayProperties)) ) && ( RaceType == input.RaceType || (RaceType != null && RaceType.Equals(input.RaceType)) ) && ( GenderedRaceNames == input.GenderedRaceNames || (GenderedRaceNames != null && GenderedRaceNames.SequenceEqual(input.GenderedRaceNames)) ) && ( GenderedRaceNamesByGenderHash == input.GenderedRaceNamesByGenderHash || (GenderedRaceNamesByGenderHash != null && GenderedRaceNamesByGenderHash.SequenceEqual(input.GenderedRaceNamesByGenderHash)) ) && ( Hash == input.Hash || (Hash.Equals(input.Hash)) ) && ( Index == input.Index || (Index.Equals(input.Index)) ) && ( Redacted == input.Redacted || (Redacted != null && Redacted.Equals(input.Redacted)) )); }
public bool Equals(DestinyCharacterComponent input) { if (input == null) { return(false); } return (( MembershipId == input.MembershipId || (MembershipId.Equals(input.MembershipId)) ) && ( MembershipType == input.MembershipType || (MembershipType != null && MembershipType.Equals(input.MembershipType)) ) && ( CharacterId == input.CharacterId || (CharacterId.Equals(input.CharacterId)) ) && ( DateLastPlayed == input.DateLastPlayed || (DateLastPlayed != null && DateLastPlayed.Equals(input.DateLastPlayed)) ) && ( MinutesPlayedThisSession == input.MinutesPlayedThisSession || (MinutesPlayedThisSession.Equals(input.MinutesPlayedThisSession)) ) && ( MinutesPlayedTotal == input.MinutesPlayedTotal || (MinutesPlayedTotal.Equals(input.MinutesPlayedTotal)) ) && ( Light == input.Light || (Light.Equals(input.Light)) ) && ( Stats == input.Stats || (Stats != null && Stats.SequenceEqual(input.Stats)) ) && ( RaceHash == input.RaceHash || (RaceHash.Equals(input.RaceHash)) ) && ( GenderHash == input.GenderHash || (GenderHash.Equals(input.GenderHash)) ) && ( ClassHash == input.ClassHash || (ClassHash.Equals(input.ClassHash)) ) && ( RaceType == input.RaceType || (RaceType != null && RaceType.Equals(input.RaceType)) ) && ( ClassType == input.ClassType || (ClassType != null && ClassType.Equals(input.ClassType)) ) && ( GenderType == input.GenderType || (GenderType != null && GenderType.Equals(input.GenderType)) ) && ( EmblemPath == input.EmblemPath || (EmblemPath != null && EmblemPath.Equals(input.EmblemPath)) ) && ( EmblemBackgroundPath == input.EmblemBackgroundPath || (EmblemBackgroundPath != null && EmblemBackgroundPath.Equals(input.EmblemBackgroundPath)) ) && ( EmblemHash == input.EmblemHash || (EmblemHash.Equals(input.EmblemHash)) ) && ( EmblemColor == input.EmblemColor || (EmblemColor != null && EmblemColor.Equals(input.EmblemColor)) ) && ( LevelProgression == input.LevelProgression || (LevelProgression != null && LevelProgression.Equals(input.LevelProgression)) ) && ( BaseCharacterLevel == input.BaseCharacterLevel || (BaseCharacterLevel.Equals(input.BaseCharacterLevel)) ) && ( PercentToNextLevel == input.PercentToNextLevel || (PercentToNextLevel.Equals(input.PercentToNextLevel)) ) && ( TitleRecordHash == input.TitleRecordHash || (TitleRecordHash.Equals(input.TitleRecordHash)) )); }