Commit Graph

15 Commits

Author SHA1 Message Date
Chomp d2d119f3b4 Added CurrencyTypeExtensions 2025-06-28 10:09:56 +01:00
chompDev ae417899b1 .NET Format Style Fixes 2025-06-22 10:33:34 +00:00
Chomp 7dde75053d Fixed Exploit - Selling item for any value when no other offers existing for item
`GetItemMinAvgMaxFleaPriceValues` ran after `CreatePlayerOffer`, resulting in the average price values using the players offer, skewing the results
2025-06-22 11:32:59 +01:00
refringe 6e01428b2b .NET Format Style Fixes 2025-06-18 17:09:20 +00:00
Chomp e869f6ebef Refactored ragfair code for improved readability 2025-06-16 13:00:06 +01:00
Chomp 8179e5c86b Localised strings
Improved nullguards
2025-06-09 14:45:47 +01:00
Chomp 1d5162c761 Various changes and fixes for things that have been bugging me
Removed/flagged unused props
Typo fixes
Use `FirstOrDefault` over direct index access
Log stacktrace on exception inside `CreateWeaponItems`
2025-06-08 10:40:40 +01:00
Chomp e444a9a3b6 Small optimisation of GetOffers()
Only process the paginated trader offers before sending to client
2025-06-07 10:40:27 +01:00
Chomp 5b29ce761b Added resasonable defaults for call to _ragfairSortHelper.SortOffers 2025-06-07 10:31:22 +01:00
Chomp 3df2fdfc0f Added edge-case handling to flea offer results pagination, stops server trying to get offers starting at a higher index than the end position
Moved pagination code into own function
Resolved various IDE warnings
Added comments
2025-06-07 10:19:24 +01:00
Chomp 112afd3391 Fixed flea logic that prevented offers being listed for complex items (items /w children)
`GetItemsToListOnFleaFromInventory` would not keep the root item at index 0, client requires this

`FindAndReturnChildrenAsItems` now inserts root item at index 0
`CreateMultiOffer` now looks for root item by its id

Updated `CreateSingleOffer` to not choose first inventory item as root, search for it instead

Fixes #318
2025-06-04 17:30:26 +01:00
Alex 1499627d3c DI completely reworked to keep status of singletons on multi type components 2025-05-06 10:52:22 +01:00
CWX 7c7297f63c Code cleanup and format 2025-04-22 14:49:05 +01:00
Chomp 951ba24d98 Removed reduandant property from method and improved error message text 2025-03-08 09:33:41 +00:00
clodan 270f095413 renamed projects and namespaces 2025-03-07 13:16:43 +00:00