protected override Other ConvertRowToModel(int generatedId, OtherRow row) { Other model = new Other(); model.Id = generatedId; model.Description = row.OtherName; model.CharacterName = row.Character; model.SourceName = row.Source; model.SourceType = null; //fill in during merge phase model.SourceId = 0; //fill in during merge phase model.ImagePath = row.ImagePath; model.Name = row.OtherName; model.AbilityType = _abilityTypeConverter.ConvertFromNameToId(row.Type); model.TargetType = _targetTypeConverter.ConvertFromNameToId(row.Target); model.DamageFormulaType = _damageFormulaTypeConverter.ConvertFromNameToId(row.Formula); model.Multiplier = _doubleConverter.ConvertFromStringToDouble(row.Multiplier); model.Elements = _elementConverter.ConvertFromCommaSeparatedListToIds(row.Element); model.CastTime = _doubleConverter.ConvertFromStringToDouble(row.Time); model.Effects = row.Effects; model.IsCounterable = _stringToBooleanConverter.ConvertFromStringToBool(row.Counter); model.AutoTargetType = _autoTargetTypeConverter.ConvertFromNameToId(row.AutoTarget); model.SoulBreakPointsGained = _intConverter.ConvertFromStringToInt(row.SB); model.School = _schoolConverter.ConvertFromNameToId(row.School); model.EnlirId = row.ID; model.IsInGlobal = _stringToBooleanConverter.ConvertFromStringToBool(row.IsInGlobal); model.IsChecked = _stringToBooleanConverter.ConvertFromStringToBool(row.Checked); _logger.LogDebug("Converted OtherRow to Other: {Id} - {Description}", model.Id, model.Description); return(model); }
protected override SoulBreak ConvertRowToModel(int generatedId, SoulBreakRow row) { SoulBreak model = new SoulBreak(); model.Id = generatedId; model.Description = row.SoulBreakName; model.SoulBreakName = row.SoulBreakName; model.JapaneseName = row.JapaneseName; model.ImagePath = row.ImagePath; model.CharacterName = row.Character.Replace(DashCharacter, String.Empty);; model.CharacterId = 0; //fill in during merge phase model.RelicName = row.Relic; model.RelicId = 0; //fill in during merge phase model.Realm = _realmConverter.ConvertFromNameToId(row.Realm); model.Commands = null; //fill in during merge phase model.Statuses = null; //fill in during merge phase model.OtherEffects = null; //fill in during merge phase model.SbVer = row.SbVer; model.AbilityType = _abilityTypeConverter.ConvertFromNameToId(row.Type); model.TargetType = _targetTypeConverter.ConvertFromNameToId(row.Target); model.AutoTargetType = _autoTargetTypeConverter.ConvertFromNameToId(row.AutoTarget); model.DamageFormulaType = _damageFormulaTypeConverter.ConvertFromNameToId(row.Formula); model.Multiplier = _doubleConverter.ConvertFromStringToDouble(row.Multiplier); model.Elements = _elementConverter.ConvertFromCommaSeparatedListToIds(row.Element); model.CastTime = _doubleConverter.ConvertFromStringToDouble(row.Time); model.Effects = row.Effects; model.IsCounterable = _stringToBooleanConverter.ConvertFromStringToBool(row.Counter); model.IsInGlobal = _stringToBooleanConverter.ConvertFromStringToBool(row.IsInGlobal); model.IsChecked = _stringToBooleanConverter.ConvertFromStringToBool(row.Checked); model.SoulBreakPointsRequired = _intConverter.ConvertFromStringToInt(row.Points); model.SoulBreakTier = _soulBreakTierConverter.ConvertFromNameToId(row.Tier); model.MasteryBonus = row.Master; model.Anima = row.Anima; model.EnlirId = row.ID; _logger.LogDebug("Converted SoulBreakRow to SoulBreak: {Id} - {Description}", model.Id, model.Description); return(model); }
protected override SynchroCommand ConvertRowToModel(int generatedId, SynchroCommandRow row) { SynchroCommand model = new SynchroCommand(); model.Id = generatedId; model.Description = $"{row.Source} - {row.CommandName}"; model.CommandName = row.CommandName; model.JapaneseName = row.JapaneseName; model.CharacterName = row.Character; model.CharacterId = 0; //fill in during merge phase model.SourceSoulBreakName = row.Source; model.SourceSoulBreakId = 0; //fill in during merge phase model.SbVer = row.SbVer; model.ImagePath = row.ImagePath; model.SynchroAbilitySlot = _intConverter.ConvertFromStringToInt(row.SynchroAbilitySlot); model.SynchroCondition = row.SynchroCondition; model.SynchroConditionId = _intConverter.ConvertFromStringToInt(row.SynchroConditionId); model.AbilityType = _abilityTypeConverter.ConvertFromNameToId(row.Type); model.TargetType = _targetTypeConverter.ConvertFromNameToId(row.Target); model.AutoTargetType = _autoTargetTypeConverter.ConvertFromNameToId(row.AutoTarget); model.DamageFormulaType = _damageFormulaTypeConverter.ConvertFromNameToId(row.Formula); model.Multiplier = _doubleConverter.ConvertFromStringToDouble(row.Multiplier); model.Elements = _elementConverter.ConvertFromCommaSeparatedListToIds(row.Element); model.CastTime = _doubleConverter.ConvertFromStringToDouble(row.Time); model.Effects = row.Effects; model.IsCounterable = _stringToBooleanConverter.ConvertFromStringToBool(row.Counter); model.IsInGlobal = _stringToBooleanConverter.ConvertFromStringToBool(row.IsInGlobal); model.IsChecked = _stringToBooleanConverter.ConvertFromStringToBool(row.Checked); model.SoulBreakPointsGained = _intConverter.ConvertFromStringToInt(row.SB); model.School = _schoolConverter.ConvertFromNameToId(row.School); model.EnlirId = row.ID; _logger.LogDebug("Converted SynchroCommandRow to SynchroCommand: {Id} - {Description}", model.Id, model.Description); return(model); }
protected override MagiciteSkill ConvertRowToModel(int generatedId, MagiciteSkillRow row) { MagiciteSkill model = new MagiciteSkill(); model.Id = generatedId; model.Description = $"{row.Magicite} - {row.Name}"; model.MagiciteName = row.Magicite; model.MagiciteId = 0; //fill in during merge phase model.SkillName = row.Name; model.JapaneseName = row.JapaneseName; model.ImagePath = row.ImagePath; model.AbilityType = _abilityTypeConverter.ConvertFromNameToId(row.Type); model.AutoTargetType = _autoTargetTypeConverter.ConvertFromNameToId(row.AutoTarget); model.DamageFormulaType = _damageFormulaTypeConverter.ConvertFromNameToId(row.Formula); model.Multiplier = _doubleConverter.ConvertFromStringToDouble(row.Multiplier); model.Element = _elementConverter.ConvertFromNameToId(row.Element); model.CastTime = _doubleConverter.ConvertFromStringToDouble(row.Time); model.Effects = row.Effects; model.IsCounterable = _stringToBooleanConverter.ConvertFromStringToBool(row.Counter); model.EnlirId = row.ID; model.IsInGlobal = _stringToBooleanConverter.ConvertFromStringToBool(row.IsInGlobal); model.IsChecked = _stringToBooleanConverter.ConvertFromStringToBool(row.Checked); model.ChanceForSkillUseWith0LevelCapBreaks = _doubleConverter.ConvertFromStringToDouble(row.ChanceToUseTier0); model.ChanceForSkillUseWith1LevelCapBreaks = _doubleConverter.ConvertFromStringToDouble(row.ChanceToUseTier1); model.ChanceForSkillUseWith2LevelCapBreaks = _doubleConverter.ConvertFromStringToDouble(row.ChanceToUseTier2); model.ChanceForSkillUseWith3LevelCapBreaks = _doubleConverter.ConvertFromStringToDouble(row.ChanceToUseTier3); _logger.LogDebug("Converted MagiciteSkillRow to MagiciteSkill: {Id} - {Description}", model.Id, model.Description); return(model); }
protected override Ability ConvertRowToModel(int generatedId, AbilityRow row) { Ability model = new Ability(); model.Id = generatedId; model.Description = row.AbilityName; model.AbilityName = row.AbilityName; model.ImagePath = row.ImagePath; model.School = _schoolConverter.ConvertFromNameToId(row.School ?? "Unknown"); model.Rarity = _intConverter.ConvertFromStringToInt(row.Rarity); model.MinUses = _intConverter.ConvertFromStringToInt(row.Uses); model.MaxUses = _intConverter.ConvertFromStringToInt(row.Max); model.AbilityType = _abilityTypeConverter.ConvertFromNameToId(row.Type); model.TargetType = _targetTypeConverter.ConvertFromNameToId(row.Target); model.AutoTargetType = _autoTargetTypeConverter.ConvertFromNameToId(row.AutoTarget); model.DamageFormulaType = _damageFormulaTypeConverter.ConvertFromNameToId(row.Formula); model.Multiplier = _doubleConverter.ConvertFromStringToDouble(row.Multiplier); model.Elements = _elementConverter.ConvertFromCommaSeparatedListToIds(row.Element); model.CastTime = _doubleConverter.ConvertFromStringToDouble(row.Time); model.Effects = row.Effects; model.IsCounterable = _stringToBooleanConverter.ConvertFromStringToBool(row.Counter); model.IsInGlobal = _stringToBooleanConverter.ConvertFromStringToBool(row.IsInGlobal); model.IsChecked = _stringToBooleanConverter.ConvertFromStringToBool(row.Checked); model.SoulBreakPointsGained = _intConverter.ConvertFromStringToInt(row.SB); model.IntroducingEventName = row.IntroducingEvent; model.IntroducingEventId = 0; //filled in during merge phase model.JapaneseName = row.JapaneseName; model.EnlirId = row.ID; model.OrbRequirements = GetOrbRequirements(row); _logger.LogDebug("Converted AbilityRow to Ability: {Id} - {Description}", model.Id, model.Description); return(model); }
protected override Magicite ConvertRowToModel(int generatedId, MagiciteRow row) { Magicite model = new Magicite(); //IModelDescriptor model.Id = generatedId; model.Description = row.Name; //core attributes model.MagiciteName = row.Name; model.Element = _elementConverter.ConvertFromNameToId(row.Element); model.Rarity = _intConverter.ConvertFromStringToInt(row.Rarity); model.Realm = _realmConverter.ConvertFromNameToId(row.Realm); model.ImagePath = row.ImagePath; model.IntroducingEventName = row.IntroducingEvent; model.IntroducingEventId = 0; //fill in during merge phase model.IsInGlobal = _stringToBooleanConverter.ConvertFromStringToBool(row.IsInGlobal); model.IsChecked = _stringToBooleanConverter.ConvertFromStringToBool(row.Checked); //stats model.HitPoints = _intConverter.ConvertFromStringToInt(row.HP); model.Attack = _intConverter.ConvertFromStringToInt(row.ATK); model.Defense = _intConverter.ConvertFromStringToInt(row.DEF); model.Magic = _intConverter.ConvertFromStringToInt(row.MAG); model.Resistance = _intConverter.ConvertFromStringToInt(row.RES); model.Mind = _intConverter.ConvertFromStringToInt(row.MND); model.Speed = _intConverter.ConvertFromStringToInt(row.SPD); //passives model.PassiveEffects = GetPassiveEffectsForMagicite(row); //ultra skill if (row.UltraSkill.Length > 1) { UltraSkill ultraSkill = new UltraSkill() { Name = row.UltraSkill, JapaneseName = row.JapaneseName, AbilityType = _abilityTypeConverter.ConvertFromNameToId(row.Type), AutoTargetType = _autoTargetTypeConverter.ConvertFromNameToId(row.AutoTarget), DamageFormulaType = _damageFormulaTypeConverter.ConvertFromNameToId(row.Formula), Multiplier = _doubleConverter.ConvertFromStringToDouble(row.Multiplier), Element = _elementConverter.ConvertFromNameToId(row.Element), CastTime = _doubleConverter.ConvertFromStringToDouble(row.Time), Effects = row.Effects, IsCounterable = _stringToBooleanConverter.ConvertFromStringToBool(row.Counter), Cooldown = _doubleConverter.ConvertFromStringToDouble(row.Cooldown), Duration = _doubleConverter.ConvertFromStringToDouble(row.Duration), EnlirId = row.ID }; model.UltraSkill = ultraSkill; } //magicite skills model.MagiciteSkills = new List <MagiciteSkill>(); //fill in during merge phase _logger.LogDebug("Converted MagiciteRow to Magicite: {Id} - {Description}", model.Id, model.Description); return(model); }