Skip to content

Commit

Permalink
Fix fletcher bods for servuo
Browse files Browse the repository at this point in the history
  • Loading branch information
kaczy93 committed Sep 20, 2024
1 parent 1203aeb commit 883d80d
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
10 changes: 9 additions & 1 deletion Scripts/Engines/BulkOrders/Books/BOBSmallEntry.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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 );
Expand Down
3 changes: 2 additions & 1 deletion Scripts/Engines/BulkOrders/Books/BODType.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ public enum BODType
{
Smith,
Tailor,
Fletcher
Fletcher,
ServUOFletcher = 5
}
}

0 comments on commit 883d80d

Please sign in to comment.