From 883d80dc1caee721fa8d8fb2e345a5a56173d889 Mon Sep 17 00:00:00 2001 From: kaczy Date: Fri, 20 Sep 2024 10:48:55 +0200 Subject: [PATCH] Fix fletcher bods for servuo --- Scripts/Engines/BulkOrders/Books/BOBSmallEntry.cs | 10 +++++++++- Scripts/Engines/BulkOrders/Books/BODType.cs | 3 ++- 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/Scripts/Engines/BulkOrders/Books/BOBSmallEntry.cs b/Scripts/Engines/BulkOrders/Books/BOBSmallEntry.cs index 92c23112..615541d8 100644 --- a/Scripts/Engines/BulkOrders/Books/BOBSmallEntry.cs +++ b/Scripts/Engines/BulkOrders/Books/BOBSmallEntry.cs @@ -104,7 +104,15 @@ public void Serialize( GenericWriter writer ) writer.Write( (bool) m_RequireExceptional ); - writer.WriteEncodedInt( (int) m_DeedType ); + if (World.ServUOSave && m_DeedType == BODType.Fletcher) + { + writer.WriteEncodedInt((int)BODType.ServUOFletcher); + } + else + { + writer.WriteEncodedInt((int)m_DeedType); + } + writer.WriteEncodedInt( (int) m_Material ); writer.WriteEncodedInt( (int) m_AmountCur ); writer.WriteEncodedInt( (int) m_AmountMax ); diff --git a/Scripts/Engines/BulkOrders/Books/BODType.cs b/Scripts/Engines/BulkOrders/Books/BODType.cs index 9b2a82e8..8a8aadba 100644 --- a/Scripts/Engines/BulkOrders/Books/BODType.cs +++ b/Scripts/Engines/BulkOrders/Books/BODType.cs @@ -6,6 +6,7 @@ public enum BODType { Smith, Tailor, - Fletcher + Fletcher, + ServUOFletcher = 5 } } \ No newline at end of file