Server/project/tests/services
Refringe 3d77ed8595
Seperates ragfair pricing into seperate method
This changes the `RagfairPriceService.getDynamicOfferPriceForOffer()` method to handle the logic surrounding collecting prices for items in offers, while offloading the individual price generation to a new method. The new method, `RagfairPriceService.getDynamicItemPrice()`, is responsible for generating a price for either an item template, or optionally an offerItems collection. This change also allows `getDynamicItemPrice()` to be used elsewhere in the code-base to gather more "realistic" pricing for specific item templates.

Fixes an edge-case where unreasonable prices would only be adjusted on the first item within an offer.

Includes some tests.

Related to #618. This will allow the insurance system to use this method to get better pricing for items.
2024-04-10 12:23:28 -04:00
..
ItemBaseClassService.test.ts Reformatted imports with (only) Biome. 2023-11-13 11:43:37 -05:00
PaymentService.test.ts Formatting Change - Space is now given around object properties. 2023-11-13 12:38:16 -05:00
PlayerService.test.ts Formatting for test classes. 2023-11-10 17:21:20 -05:00
RagfairPriceService.test.ts Seperates ragfair pricing into seperate method 2024-04-10 12:23:28 -04:00