From 8f0e4c2cba1dc7a9cd2d86574e306fcd9a88cfd6 Mon Sep 17 00:00:00 2001 From: Gene Date: Wed, 4 Jun 2025 14:42:22 -0700 Subject: [PATCH] Fix PlaceNpc action not serializing marker --- Assets/Scripts/Game/Questing/Actions/PlaceFoe.cs | 6 +++--- Assets/Scripts/Game/Questing/Actions/PlaceNpc.cs | 7 +++++-- 2 files changed, 8 insertions(+), 5 deletions(-) diff --git a/Assets/Scripts/Game/Questing/Actions/PlaceFoe.cs b/Assets/Scripts/Game/Questing/Actions/PlaceFoe.cs index 4fba3b828e..98bae52441 100644 --- a/Assets/Scripts/Game/Questing/Actions/PlaceFoe.cs +++ b/Assets/Scripts/Game/Questing/Actions/PlaceFoe.cs @@ -4,8 +4,8 @@ // License: MIT License (http://www.opensource.org/licenses/mit-license.php) // Source Code: https://github.com/Interkarma/daggerfall-unity // Original Author: Gavin Clayton (interkarma@dfworkshop.net) -// Contributors: -// +// Contributors: +// // Notes: // @@ -79,7 +79,7 @@ public override void Update(Task caller) } // Assign Foe to Place - place.AssignQuestResource(foeSymbol, marker); + place.AssignQuestResource(foe.Symbol, marker); SetComplete(); } diff --git a/Assets/Scripts/Game/Questing/Actions/PlaceNpc.cs b/Assets/Scripts/Game/Questing/Actions/PlaceNpc.cs index 7bd8cc388d..260094c646 100644 --- a/Assets/Scripts/Game/Questing/Actions/PlaceNpc.cs +++ b/Assets/Scripts/Game/Questing/Actions/PlaceNpc.cs @@ -4,8 +4,8 @@ // License: MIT License (http://www.opensource.org/licenses/mit-license.php) // Source Code: https://github.com/Interkarma/daggerfall-unity // Original Author: Gavin Clayton (interkarma@dfworkshop.net) -// Contributors: -// +// Contributors: +// // Notes: // @@ -123,6 +123,7 @@ public struct SaveData_v1 { public Symbol npcSymbol; public Symbol placeSymbol; + public int marker; } public override object GetSaveData() @@ -130,6 +131,7 @@ public override object GetSaveData() SaveData_v1 data = new SaveData_v1(); data.npcSymbol = npcSymbol; data.placeSymbol = placeSymbol; + data.marker = marker; return data; } @@ -142,6 +144,7 @@ public override void RestoreSaveData(object dataIn) SaveData_v1 data = (SaveData_v1)dataIn; npcSymbol = data.npcSymbol; placeSymbol = data.placeSymbol; + marker = data.marker; } #endregion