Skip to content

Commit

Permalink
I'm a Controversy
Browse files Browse the repository at this point in the history
  • Loading branch information
Jumprocks1 committed May 8, 2023
1 parent 9f0bbea commit d3ee04d
Show file tree
Hide file tree
Showing 3 changed files with 9,201 additions and 3 deletions.
5 changes: 2 additions & 3 deletions drum-game-web/scripts/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,7 @@ public static class Program
public static bool Deploy;
public static void Main(string[] args)
{
Console.WriteLine("Building map info");
Deploy = args.Length > 0 && args[0] == "deploy";
if (!Directory.Exists("../dist/maps"))
{
Expand Down Expand Up @@ -117,7 +118,7 @@ public static List<(string, BeatmapMetadata)> GetMapSet(BeatmapMetadata beatmap,
var set = new List<(string, BeatmapMetadata)>();
foreach (var (file, metadata) in allMetadata)
{
if (metadata.Title == beatmap.Title && metadata.Artist == beatmap.Artist && metadata.Mapper == beatmap.Mapper
if (metadata.Artist == beatmap.Artist && metadata.Mapper == beatmap.Mapper
&& metadata.Audio == beatmap.Audio)
set.Add((file, metadata));
}
Expand Down Expand Up @@ -157,8 +158,6 @@ static decimal GetDlevel(string[] tags)
dtxMaps[map.Filename] = metadata;
metadata.DownloadUrl = map.DownloadUrl;
metadata.Date = map.Date;
// TODO we shouldn't need to manually enter the difficulties


var set = GetMapSet(metadata, drumGame);
var difficulties = set.Select(e => GetDlevel(e.Item2)).OrderBy(e => e);
Expand Down
Loading

0 comments on commit d3ee04d

Please sign in to comment.