Server/project/tests
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
..
__factories__ Formatting Change - Space is now given around object properties. 2023-11-13 12:38:16 -05:00
__fixture__ Formatting Change - Space is now given around object properties. 2023-11-13 12:38:16 -05:00
__mocks__ Formatting for test classes. 2023-11-10 17:21:20 -05:00
controllers Biome Linting Issues 2024-02-05 19:03:26 -05:00
generators Formatting Change - Space is now given around object properties. 2023-11-13 12:38:16 -05:00
helpers Formatting Change - Space is now given around object properties. 2023-11-13 12:38:16 -05:00
services Seperates ragfair pricing into seperate method 2024-04-10 12:23:28 -04:00
utils Reworked LinkedList and Queue 2023-12-21 22:27:19 +00:00
CustomEnvironment.ts Formatting Change - Space is now given around object properties. 2023-11-13 12:38:16 -05:00