DarkEnergyProcessor / NPPS4

Null-Pointer Private Server 4: Comprehensive SIF1 Private Server Implementation
zlib License
32 stars 4 forks source link

Fix exception for bad unit number #31

Closed DatCaldo closed 1 month ago

DatCaldo commented 1 month ago

Instead of raising an error, simply print a warning and skip the out of bounds number

MikuAuahDark commented 1 month ago

After digging through School Idol Tomodachi API, I think I have a better solution to solve this. SIT API has game_id field when querying card info, which directly translates to unit_id in the in-game database.

MikuAuahDark commented 1 month ago

The proper fix should be in 01ad332f56cbd950cb55c48a56758a7291fe82f1.