Releases: RakuJa/BYBE
Releases · RakuJa/BYBE
v2.4.0
v2.3.0
Refactor
- Revamp build system, to allow cross compile and smooth compile inside other projects (BYBE-Portable);
- Improve logs;
- Revamp swagger, adding more consistent data.
Added
- Custom number of workers and not only actix-web default. This is done in order to lessen the burden on BYBE-Portable;
- Allow custom env location and db path, in order to allow BYBE-Portable custom settings and location
v2.2.0
Refactor
- Template refactor:
- future-proof templates, move away from random quantities and into specific set of quantities for each template;
- scale percentages with the total (ex: 10%, 0%, 0%, 0% of 40 items becomes 100% of 40). when all percentages are 0, return 4 values of 25% each;
- remove curl dependency for swagger build, move to reqwest feature flag.
Fixes
- solve shop swagger pointing at bestiary.
Added
- trait filter on randomize and listing;
- sort traits and sources alphabetically;
- sort items by trait;
- new endpoint to give the user all the data regarding default item shop templates;
- tests for checking correct math of template equippables percentages.
v2.1.0
Added
- quick adventure groups
Minor features
- update libraries, switch to fastrand, security update of sqlx library
Fix
- improve random creature fetching, ensuring at least one creature for each level.
To explain the bug, analyze the previous behaviour:- Generate all the possible combinations of levels for an encounter given the encounter difficulty and range level;
- fetch N (20) random creatures that matched the given filters (one of which were levels);
- remove all the combinations that do not contain the fetched creature levels.
With the adventure group this bug is too evident. Since only one level combination is the requested one, if we have the only combination be (4,2,2,2) and we fetched 20 creature of level 2 and none of level 4 we would throw away the only combination and be left with nothing.
To fix this we assure that at least one creature for each required level gets fetched (for a maximum of -1:26 => 28 + N (20) creature fetched for each random batch). This should also improve the randomness and variety
v2.0.1
v2.0.0
Added
Minor features
- introduce possibility to filter with pathfinder versions
- introduce dice structure
- add total item and creature count for pagination
- allow upper and lower case alternative for encounter difficulty and pathfinder version
- fix ranged/melee bug
Code QOL improvements
- reorganize code structure
- split raw query in sub methods
- add safe guarantees around n of forged items range gen, now it is formally proved that it will not panic and isolated in a method to reduce redundancy
- get avg now is implemented in dice and can handle a weapon with multiple damage sources
v1.3.0
Added
Feature