public SpellTraits( string name, Genus genus, uint directRawDamage = 0, SpellDirectMagicType directMagicType = SpellDirectMagicType.None, uint mixtureRawDamage = 0, SpellMixtureMagicType mixtureMagicType = SpellMixtureMagicType.None) { this.Name = name; this.Genus = genus; this.DirectRawDamage = directRawDamage; this.DirectMagicType = directRawDamage > 0 ? SpellDirectMagicType.Damage : directMagicType; this.MixtureRawDamage = mixtureMagicType != SpellMixtureMagicType.None && mixtureRawDamage == 0 ? directRawDamage : mixtureRawDamage; this.MixtureMagicType = mixtureMagicType; }
private string MixtureMagicTypeToString(SpellMixtureMagicType mixtureMagicType) { switch (mixtureMagicType) { case SpellMixtureMagicType.Sword: return("Sword"); case SpellMixtureMagicType.Wave: return("Wave"); case SpellMixtureMagicType.Blade: return("Blade"); case SpellMixtureMagicType.Shoot: return("Shoot"); case SpellMixtureMagicType.AOE: return("AOE"); default: return(""); } }