mirror of
https://github.com/claunia/SabreTools.git
synced 2025-12-16 19:14:27 +00:00
Add ControlType, fix a bunch of numerics
This commit is contained in:
@@ -67,16 +67,10 @@ namespace SabreTools.Library.DatItems
|
||||
Tilt = mappings[Field.DatItem_Tilt].AsYesNo();
|
||||
|
||||
if (mappings.Keys.Contains(Field.DatItem_Players))
|
||||
{
|
||||
if (Int64.TryParse(mappings[Field.DatItem_Players], out long players))
|
||||
Players = players;
|
||||
}
|
||||
Players = Sanitizer.CleanLong(mappings[Field.DatItem_Players]);
|
||||
|
||||
if (mappings.Keys.Contains(Field.DatItem_Coins))
|
||||
{
|
||||
if (Int64.TryParse(mappings[Field.DatItem_Coins], out long coins))
|
||||
Coins = coins;
|
||||
}
|
||||
Coins = Sanitizer.CleanLong(mappings[Field.DatItem_Coins]);
|
||||
|
||||
if (Controls != null)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user