private MonadoArt GetUniqueAttributeForUltimate(HtmlNode row, WebCharacter character) { var uniqueData = _uniqueDataScrapingServices.Create <MonadoArt>(); var monadoArtsCells = row.SelectNodes("td"); string name = CleanupValue(monadoArtsCells[0].InnerText); string active = CleanupValue(monadoArtsCells[1].InnerText); string cooldown = CleanupValue(monadoArtsCells[2].InnerText); string damageTaken = CleanupValue(monadoArtsCells[3].InnerText); string damageDealt = CleanupValue(monadoArtsCells[4].InnerText); string knockbackTaken = CleanupValue(monadoArtsCells[5].InnerText); string knockbackDealt = CleanupValue(monadoArtsCells[6].InnerText); string jumpHeight = CleanupValue(monadoArtsCells[7].InnerText); string ledgeJumpHeight = CleanupValue(monadoArtsCells[8].InnerText); string airSlashHeight = CleanupValue(monadoArtsCells[9].InnerText); string initialDashSpeed = CleanupValue(monadoArtsCells[10].InnerText); string runSpeed = CleanupValue(monadoArtsCells[11].InnerText); string walkSpeed = CleanupValue(monadoArtsCells[12].InnerText); string airSpeed = CleanupValue(monadoArtsCells[13].InnerText); string gravity = CleanupValue(monadoArtsCells[14].InnerText); string fallSpeed = CleanupValue(monadoArtsCells[15].InnerText); string shieldHealth = CleanupValue(monadoArtsCells[16].InnerText); string shieldRegen = CleanupValue(monadoArtsCells[17].InnerText); uniqueData.Name = name; uniqueData.Owner = character.Name; uniqueData.OwnerId = character.OwnerId; uniqueData.Active = active; uniqueData.AirSlashHeight = airSlashHeight; uniqueData.AirSpeed = airSpeed; uniqueData.Cooldown = cooldown; uniqueData.DamageDealt = damageDealt; uniqueData.DamageTaken = damageTaken; uniqueData.FallSpeed = fallSpeed; uniqueData.Gravity = gravity; uniqueData.InitialDashSpeed = initialDashSpeed; uniqueData.JumpHeight = jumpHeight; uniqueData.KnockbackDealt = knockbackDealt; uniqueData.KnockbackTaken = knockbackTaken; uniqueData.LedgeJumpHeight = ledgeJumpHeight; uniqueData.RunSpeed = runSpeed; uniqueData.ShieldHealth = shieldHealth; uniqueData.ShieldRegen = shieldRegen; uniqueData.WalkSpeed = walkSpeed; uniqueData.Game = Games.Ultimate; return(uniqueData); }
private Float GetUniqueAttribute(HtmlNodeCollection rows, WebCharacter character) { var uniqueData = _uniqueDataScrapingServices.Create <Float>(); uniqueData.Owner = character.Name; uniqueData.OwnerId = character.OwnerId; uniqueData.DurationInFrames = GetValue("Duration (Frames)", rows); uniqueData.DurationInSeconds = GetValue("Duration (Seconds)", rows); return(uniqueData); }
private Aura GetUniqueAttributeForSmash4(HtmlNodeCollection rows, WebCharacter character) { var uniqueData = _uniqueDataScrapingServices.Create <Aura>(); uniqueData.Owner = character.Name; uniqueData.OwnerId = character.OwnerId; uniqueData.MinPercentAuraMultiplier = GetValue("Min % Aura ×", rows); uniqueData.MaxPercentAuraMultiplier = GetValue("Max % Aura ×", rows); uniqueData.AuraBaselinePercent = GetValue("Aura Baseline %", rows); uniqueData.AuraCeilingPercent = GetValue("Aura Ceiling %", rows); return(uniqueData); }
private CommandSelection GetUniqueAttributeCore(HtmlNode row, WebCharacter character) { var uniqueData = _uniqueDataScrapingServices.Create <CommandSelection>(); var commandSelectionCells = row.SelectNodes("td"); string name = row.SelectSingleNode("th")?.InnerText; string description = commandSelectionCells[0]?.InnerText; uniqueData.Game = Games.Smash4; uniqueData.Name = $"CommandSelection - {name}"; uniqueData.Owner = character.Name; uniqueData.OwnerId = character.OwnerId; uniqueData.Description = CleanupValue(description); return(uniqueData); }
private Vegetable GetUniqueAttributeCore(HtmlNode row, WebCharacter character) { var uniqueData = _uniqueDataScrapingServices.Create <Vegetable>(); var vegetableCells = row.SelectNodes("td"); string name = row.SelectSingleNode("th")?.InnerText; string chance = vegetableCells[0]?.InnerText; string damageDealt = vegetableCells[1]?.InnerText; uniqueData.Game = Games.Smash4; uniqueData.Name = $"Vegetable - {name}"; uniqueData.Owner = character.Name; uniqueData.OwnerId = character.OwnerId; uniqueData.Chance = CleanupValue(chance); uniqueData.DamageDealt = CleanupValue(damageDealt); return(uniqueData); }
private Pikmin GetUniqueAttributeCore(HtmlNode row, WebCharacter character) { var uniqueData = _uniqueDataScrapingServices.Create <Pikmin>(); var pikminCells = row.SelectNodes("td"); string name = pikminCells[0]?.InnerText; string attackThrow = CleanupValue(pikminCells[1]?.InnerText); string hp = CleanupValue(pikminCells[3]?.InnerText); int indexOfAttack = name.IndexOf("Attack"); uniqueData.Name = $"{name.Substring(0, indexOfAttack).TrimEnd()}"; //just the stuff before attack uniqueData.Owner = character.Name; uniqueData.OwnerId = character.OwnerId; uniqueData.Attack = attackThrow.Substring(0, 4); uniqueData.Throw = attackThrow.Substring(5, 4); uniqueData.HP = hp; return(uniqueData); }
private LimitBreak GetUniqueAttributeForSmash4(HtmlNodeCollection rows, WebCharacter character) { var uniqueData = _uniqueDataScrapingServices.Create <LimitBreak>(); uniqueData.Owner = character.Name; uniqueData.OwnerId = character.OwnerId; uniqueData.FramesToCharge = GetValue("Frames to Charge", rows); uniqueData.PercentDealtToCharge = GetValue("% Dealt to Charge", rows); uniqueData.RunSpeed = GetValue("Run Speed", rows); uniqueData.WalkSpeed = GetValue("Walk Speed", rows); uniqueData.Gravity = GetValue("Gravity", rows); uniqueData.SHAirTime = GetValue("SH Air Time", rows); uniqueData.GainedPerFrame = GetValue("Gained per Frame", rows); uniqueData.PercentTakenToCharge = GetValue("% Taken to Charge", rows); uniqueData.AirSpeed = GetValue("Air Speed", rows); uniqueData.FallSpeed = GetValue("Fall Speed", rows); uniqueData.AirAcceleration = GetValue("Air Acceleration", rows); uniqueData.FHAirTime = GetValue("FH Air Time", rows); return(uniqueData); }
private OneWingedAngel GetUniqueAttribute(HtmlNodeCollection rows, WebCharacter character) { var uniqueData = _uniqueDataScrapingServices.Create <OneWingedAngel>(); uniqueData.Owner = character.Name; uniqueData.OwnerId = character.OwnerId; uniqueData.RunAcceleration = GetValue("Run Accel", rows); uniqueData.WalkAcceleration = GetValue("Walk Accel", rows); uniqueData.RunSpeed = GetValue("Run Speed", rows); uniqueData.WalkSpeed = GetValue("Walk Speed", rows); uniqueData.Gravity = GetValue("Gravity", rows); uniqueData.SHAirTime = GetValue("SH Air Time", rows); uniqueData.DamageDealt = GetValue("Damage Dealt", rows); uniqueData.MaxJumps = GetValue("Max Jumps", rows); uniqueData.AirSpeed = GetValue("Air Speed", rows); uniqueData.AirSpeedFriction = GetValue("Air Speed Friction", rows); uniqueData.FallSpeed = GetValue("Fall Speed", rows); uniqueData.FastFallSpeed = GetValue("Fast Fall Speed", rows); uniqueData.AirAcceleration = GetValue("Air Acceleration", rows); uniqueData.FHAirTime = GetValue("FH Air Time", rows); return(uniqueData); }