From 0fbae15dd686d33cb8c4d54a90159a3d32432d1c Mon Sep 17 00:00:00 2001 From: Kurt Date: Sun, 12 Apr 2020 20:32:41 -0700 Subject: [PATCH] Clarify turnip times --- NHSE.Core/Structures/TurnipStonk.cs | 28 ++++++++++++++-------------- NHSE.Tests/MarshalTests.cs | 8 ++++++++ 2 files changed, 22 insertions(+), 14 deletions(-) diff --git a/NHSE.Core/Structures/TurnipStonk.cs b/NHSE.Core/Structures/TurnipStonk.cs index a364bb3..82ff497 100644 --- a/NHSE.Core/Structures/TurnipStonk.cs +++ b/NHSE.Core/Structures/TurnipStonk.cs @@ -9,25 +9,25 @@ public class TurnipStonk public uint BuyPrice { get; set; } - public uint SellSunday1 { get; set; } - public uint SellSunday2 { get; set; } + public uint SellSundayAM { get; set; } + public uint SellSundayPM { get; set; } - public uint SellMonday1 { get; set; } - public uint SellMonday2 { get; set; } + public uint SellMondayAM { get; set; } + public uint SellMondayPM { get; set; } - public uint SellTuesday1 { get; set; } - public uint SellTuesday2 { get; set; } + public uint SellTuesdayAM { get; set; } + public uint SellTuesdayPM { get; set; } - public uint SellWednesday1 { get; set; } - public uint SellWednesday2 { get; set; } + public uint SellWednesdayAM { get; set; } + public uint SellWednesdayPM { get; set; } - public uint SellThursday1 { get; set; } - public uint SellThursday2 { get; set; } + public uint SellThursdayAM { get; set; } + public uint SellThursdayPM { get; set; } - public uint SellFriday1 { get; set; } - public uint SellFriday2 { get; set; } + public uint SellFridayAM { get; set; } + public uint SellFridayPM { get; set; } - public uint SellSaturday1 { get; set; } - public uint SellSaturday2 { get; set; } + public uint SellSaturdayAM { get; set; } + public uint SellSaturdayPM { get; set; } } } diff --git a/NHSE.Tests/MarshalTests.cs b/NHSE.Tests/MarshalTests.cs index 8ff0a12..a4fa267 100644 --- a/NHSE.Tests/MarshalTests.cs +++ b/NHSE.Tests/MarshalTests.cs @@ -40,5 +40,13 @@ public void TerrainTileMarshal() var bytes = obj.ToBytesClass(); bytes.Length.Should().Be(TerrainTile.SIZE); } + + [Fact] + public void TurnipMarshal() + { + var obj = new TurnipStonk(); + var bytes = obj.ToBytesClass(); + bytes.Length.Should().Be(TurnipStonk.SIZE); + } } }