From 31dd3e04bc6f72afa083d307cf4dacee89fe73ba Mon Sep 17 00:00:00 2001 From: Kurt Date: Sun, 19 Apr 2020 11:27:58 -0700 Subject: [PATCH] Update Villager.cs --- NHSE.Core/Structures/Villager/Villager.cs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/NHSE.Core/Structures/Villager/Villager.cs b/NHSE.Core/Structures/Villager/Villager.cs index ed3f5d2..721d102 100644 --- a/NHSE.Core/Structures/Villager/Villager.cs +++ b/NHSE.Core/Structures/Villager/Villager.cs @@ -73,8 +73,10 @@ public IReadOnlyList Furniture } // State Flags - public byte State2 { get => Data[0x11EFA]; set => Data[0x11EFA] = value; } - public bool MovingOut { get => (State2 & 2) == 2; set => State2 = (byte)((State2 & ~2) | (value ? 2 : 0)); } + public byte BirthType { get => Data[0x11EF8]; set => Data[0x11EF8] = value; } + public byte InducementType { get => Data[0x11EF9]; set => Data[0x11EF9] = value; } + public byte MoveType { get => Data[0x11EFA]; set => Data[0x11EFA] = value; } + public bool MovingOut { get => (MoveType & 2) == 2; set => MoveType = (byte)((MoveType & ~2) | (value ? 2 : 0)); } // EventFlagsNPCSaveParam private const int EventFlagsSaveCount = 0x100; // Future-proof allocation! Release version used <20% of the amount allocated.