From bd4137d307d2c9eb923b71b0e6a04003a844ae98 Mon Sep 17 00:00:00 2001 From: Noah Stolk <31079637+NoahStolk@users.noreply.github.com> Date: Tue, 30 Aug 2022 21:47:17 +0200 Subject: [PATCH] Fix build --- .../Components/Spawnsets/Spawn.razor | 4 ++-- .../Extensions/CustomLeaderboardCriteriaTypeExtensions.cs | 2 +- .../Pages/Guides/Spawnsets/HowToCreate.razor | 2 +- .../Pages/Leaderboard/StatisticsPage.cs | 6 +++--- 4 files changed, 7 insertions(+), 7 deletions(-) diff --git a/src/web-client/DevilDaggersInfo.Web.Client/Components/Spawnsets/Spawn.razor b/src/web-client/DevilDaggersInfo.Web.Client/Components/Spawnsets/Spawn.razor index 4c956fe63..d41216ac3 100644 --- a/src/web-client/DevilDaggersInfo.Web.Client/Components/Spawnsets/Spawn.razor +++ b/src/web-client/DevilDaggersInfo.Web.Client/Components/Spawnsets/Spawn.razor @@ -18,8 +18,8 @@ private string GetHandLevelHexColor(HandLevel handLevel) => handLevel switch { - HandLevel.Level3 => UpgradesV3_2.Level3.Color.HexCode, - HandLevel.Level4 => UpgradesV3_2.Level4.Color.HexCode, + HandLevel.Level3 => Upgrades.Level3.Color.HexCode, + HandLevel.Level4 => Upgrades.Level4.Color.HexCode, _ => "#f00", }; } diff --git a/src/web-client/DevilDaggersInfo.Web.Client/Extensions/CustomLeaderboardCriteriaTypeExtensions.cs b/src/web-client/DevilDaggersInfo.Web.Client/Extensions/CustomLeaderboardCriteriaTypeExtensions.cs index 94b45dea8..f4692475c 100644 --- a/src/web-client/DevilDaggersInfo.Web.Client/Extensions/CustomLeaderboardCriteriaTypeExtensions.cs +++ b/src/web-client/DevilDaggersInfo.Web.Client/Extensions/CustomLeaderboardCriteriaTypeExtensions.cs @@ -13,7 +13,7 @@ public static class CustomLeaderboardCriteriaTypeExtensions CustomLeaderboardCriteriaType.EnemiesKilled => "#f80", // TODO: Use same color as graph CustomLeaderboardCriteriaType.DaggersFired => "#f80", // TODO: Use same color as graph CustomLeaderboardCriteriaType.DaggersHit => "#f80", // TODO: Use same color as graph - CustomLeaderboardCriteriaType.HomingStored => UpgradesV3_2.Level4.Color.HexCode, + CustomLeaderboardCriteriaType.HomingStored => Upgrades.Level4.Color.HexCode, CustomLeaderboardCriteriaType.HomingEaten => EnemiesV3_2.Ghostpede.Color.HexCode, CustomLeaderboardCriteriaType.Skull1Kills => EnemiesV3_2.Skull1.Color.HexCode, CustomLeaderboardCriteriaType.Skull2Kills => EnemiesV3_2.Skull2.Color.HexCode, diff --git a/src/web-client/DevilDaggersInfo.Web.Client/Pages/Guides/Spawnsets/HowToCreate.razor b/src/web-client/DevilDaggersInfo.Web.Client/Pages/Guides/Spawnsets/HowToCreate.razor index 89370e186..dced7759c 100644 --- a/src/web-client/DevilDaggersInfo.Web.Client/Pages/Guides/Spawnsets/HowToCreate.razor +++ b/src/web-client/DevilDaggersInfo.Web.Client/Pages/Guides/Spawnsets/HowToCreate.razor @@ -264,7 +264,7 @@
  • The goal in Race is simply to grab the dagger that's located somewhere on the arena. This game mode also doesn't have an end loop.
  • -
  • The player settings (initial hand and additional gems/homing); these are given to the player when the run starts. The editor shows the effective player settings under the text boxes, since you can't have @MarkupUtils.UpgradeString(UpgradesV3_2.Level1) with 70 additional gems for example (this is interpreted by the game as @MarkupUtils.UpgradeString(UpgradesV3_2.Level3) with 0 additional homing).
  • +
  • The player settings (initial hand and additional gems/homing); these are given to the player when the run starts. The editor shows the effective player settings under the text boxes, since you can't have @MarkupUtils.UpgradeString(Upgrades.Level1) with 70 additional gems for example (this is interpreted by the game as @MarkupUtils.UpgradeString(Upgrades.Level3) with 0 additional homing).
  • The initial timer start value; useful for practice (for example when starting at the @MarkupUtils.EnemyString(EnemiesV3_2.Gigapede) section in the real game, the timer start value can be set to 259 to make the spawn times match with the real game). Note that this value does not affect anything other than the displayed time. The "real" timer will always start at 0 regardless of this setting.
  • diff --git a/src/web-client/DevilDaggersInfo.Web.Client/Pages/Leaderboard/StatisticsPage.cs b/src/web-client/DevilDaggersInfo.Web.Client/Pages/Leaderboard/StatisticsPage.cs index fe36e6fba..2c5a44f9d 100644 --- a/src/web-client/DevilDaggersInfo.Web.Client/Pages/Leaderboard/StatisticsPage.cs +++ b/src/web-client/DevilDaggersInfo.Web.Client/Pages/Leaderboard/StatisticsPage.cs @@ -115,9 +115,9 @@ void SetScoreChart(IEnumerable> data, double scale, ref B List upgradesSet = new() { - new(UpgradesV3_2.Level1.Color.HexCode, _statistics.PlayersWithLevel1, _statistics.PlayersWithLevel1), - new(UpgradesV3_2.Level2.Color.HexCode, _statistics.PlayersWithLevel2, _statistics.PlayersWithLevel2), - new(UpgradesV3_2.Level3.Color.HexCode, _statistics.PlayersWithLevel3Or4, _statistics.PlayersWithLevel3Or4), + new(Upgrades.Level1.Color.HexCode, _statistics.PlayersWithLevel1, _statistics.PlayersWithLevel1), + new(Upgrades.Level2.Color.HexCode, _statistics.PlayersWithLevel2, _statistics.PlayersWithLevel2), + new(Upgrades.Level3.Color.HexCode, _statistics.PlayersWithLevel3Or4, _statistics.PlayersWithLevel3Or4), }; const double upgradesScale = 50000.0; _upgradesDataOptions = new(0, upgradesScale, Math.Ceiling(new[] { _statistics.PlayersWithLevel1, _statistics.PlayersWithLevel2, _statistics.PlayersWithLevel3Or4 }.Max() / upgradesScale) * upgradesScale);