From c37c07726a54b7412b74709b57bc992607280fff Mon Sep 17 00:00:00 2001 From: Stone_Red <56473591+Stone-Red-Code@users.noreply.github.com> Date: Sun, 4 Feb 2024 20:31:42 +0100 Subject: [PATCH] Fixed filled space calculation --- src/TextLore/Games/Roguelike/Commands/GenerateLevelCommand.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/TextLore/Games/Roguelike/Commands/GenerateLevelCommand.cs b/src/TextLore/Games/Roguelike/Commands/GenerateLevelCommand.cs index 8b63670..d1bd3cc 100644 --- a/src/TextLore/Games/Roguelike/Commands/GenerateLevelCommand.cs +++ b/src/TextLore/Games/Roguelike/Commands/GenerateLevelCommand.cs @@ -54,7 +54,7 @@ public class GenerateLevelCommand(IQueryable roomDefinitions, Na consoleOutput.WriteLine($"Level size: {level.Size.Width}x{level.Size.Height}"); consoleOutput.WriteLine($"Room count: {level.RoomCount}"); - consoleOutput.WriteLine($"Filled space: {(double)level.RoomCount / (level.Size.Width * level.Size.Height):F0}%"); + consoleOutput.WriteLine($"Filled space: {(double)level.RoomCount / (level.Size.Width * level.Size.Height) * 100:F0}%"); consoleOutput.WriteLine($"Seed: {seed.ToBase64()}"); consoleOutput.WriteLine("Level generation complete!");