M Data/NosSmooth.Data.Abstractions/Infos/IMonsterInfo.cs => Data/NosSmooth.Data.Abstractions/Infos/IMonsterInfo.cs +1 -1
@@ 21,5 21,5 @@ public interface IMonsterInfo : IVNumInfo
/// <summary>
/// Gets the default level of the monster.
/// </summary>
- int Level { get; }
+ ushort Level { get; }
}=
\ No newline at end of file
M Data/NosSmooth.Data.Database/Data/MonsterInfo.cs => Data/NosSmooth.Data.Database/Data/MonsterInfo.cs +1 -1
@@ 38,5 38,5 @@ public class MonsterInfo : IMonsterInfo
public TranslatableString Name { get; set; }
/// <inheritdoc />
- public int Level { get; set; }
+ public ushort Level { get; set; }
}=
\ No newline at end of file
M Data/NosSmooth.Data.NOSFiles/Parsers/MonsterParser.cs => Data/NosSmooth.Data.NOSFiles/Parsers/MonsterParser.cs +2 -2
@@ 39,7 39,7 @@ public class MonsterParser : IInfoParser<IMonsterInfo>
(
vnum,
new TranslatableString(TranslationRoot.Monster, nameKey),
- item.GetEntry("LEVEL").Read<int>(1)
+ item.GetEntry("LEVEL").Read<ushort>(1)
)
);
}
@@ 47,5 47,5 @@ public class MonsterParser : IInfoParser<IMonsterInfo>
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