From 35e207dbe7d5236310769ff021eb9738c1d53a51 Mon Sep 17 00:00:00 2001 From: Rutherther Date: Thu, 3 Feb 2022 18:47:35 +0100 Subject: [PATCH] feat(data): make monster level ushort --- Data/NosSmooth.Data.Abstractions/Infos/IMonsterInfo.cs | 2 +- Data/NosSmooth.Data.Database/Data/MonsterInfo.cs | 2 +- Data/NosSmooth.Data.NOSFiles/Parsers/MonsterParser.cs | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Data/NosSmooth.Data.Abstractions/Infos/IMonsterInfo.cs b/Data/NosSmooth.Data.Abstractions/Infos/IMonsterInfo.cs index 55735ab..49a01a5 100644 --- a/Data/NosSmooth.Data.Abstractions/Infos/IMonsterInfo.cs +++ b/Data/NosSmooth.Data.Abstractions/Infos/IMonsterInfo.cs @@ -21,5 +21,5 @@ public interface IMonsterInfo : IVNumInfo /// /// Gets the default level of the monster. /// - int Level { get; } + ushort Level { get; } } \ No newline at end of file diff --git a/Data/NosSmooth.Data.Database/Data/MonsterInfo.cs b/Data/NosSmooth.Data.Database/Data/MonsterInfo.cs index 1d6f256..3790f55 100644 --- a/Data/NosSmooth.Data.Database/Data/MonsterInfo.cs +++ b/Data/NosSmooth.Data.Database/Data/MonsterInfo.cs @@ -38,5 +38,5 @@ public class MonsterInfo : IMonsterInfo public TranslatableString Name { get; set; } /// - public int Level { get; set; } + public ushort Level { get; set; } } \ No newline at end of file diff --git a/Data/NosSmooth.Data.NOSFiles/Parsers/MonsterParser.cs b/Data/NosSmooth.Data.NOSFiles/Parsers/MonsterParser.cs index b852c95..b021f70 100644 --- a/Data/NosSmooth.Data.NOSFiles/Parsers/MonsterParser.cs +++ b/Data/NosSmooth.Data.NOSFiles/Parsers/MonsterParser.cs @@ -39,7 +39,7 @@ public class MonsterParser : IInfoParser ( vnum, new TranslatableString(TranslationRoot.Monster, nameKey), - item.GetEntry("LEVEL").Read(1) + item.GetEntry("LEVEL").Read(1) ) ); } @@ -47,5 +47,5 @@ public class MonsterParser : IInfoParser return result; } - private record MonsterInfo(int VNum, TranslatableString Name, int Level) : IMonsterInfo; + private record MonsterInfo(int VNum, TranslatableString Name, ushort Level) : IMonsterInfo; } \ No newline at end of file -- 2.48.1