|
I've been working on adding all the SWSH encounters to the API, and now that it's complete I'm moving towards adding Legends Arceus. However, starting in this game, Bulbapedia no longer reports encounter rate percentages and Serebii only lists percentages for PLA. Additionally, the encounter rates from Serebii for PLA seem to be user-derived with two-digit precision floating point percentages along with the corresponding alpha encounter rate. The API can't currently handle floating point encounter rates, and there won't even be any rates going forward, so I'm curious what people think. How should we handle encounters in games which have no simple encounter rate % (PLA, SV, PLZA)? My current thoughts are to make the |
Replies: 1 comment 1 reply
|
Hi! That might be the only feasible way I think. Rendering I'd say we could even skip the rates for PLA if you think the values in Bulbapedia aren't 100% real. About the floating point precision, the less intrusive way to document it would be to rount the value to an integer, but that would make the info not reliable. Else a change in the schema that would affect all the other rates as well. Possibily breaking many applications if we add a Adding a test is a great way to enforce consistency, I actually wouln'd have thought about it and just render the field nullable. Adding the test is a good point! |
Hi! That might be the only feasible way I think. Rendering
nullable the rate field. Probably the rates are there in the game but a decompilation maybe is needed to find the values, that's why maybe Bulbapedia and the other sites still don't report the values.I'd say we could even skip the rates for PLA if you think the values in Bulbapedia aren't 100% real. About the floating point precision, the less intrusive way to document it would be to rount the value to an integer, but that would make the info not reliable. Else a change in the schema that would affect all the other rates as well. Possibily breaking many applications if we add a
.0suffix to the currently available rates.Adding a…