Houmgaor
6ccbc24a4a
fix(gacha): prevent infinite loop in getRandomEntries
...
Add guards for edge cases:
- Empty entries with rolls > 0
- Zero or negative rolls
- Zero total weight in non-box mode
- Box mode with more rolls than available entries
Previously these cases caused infinite loops or panics.
2026-02-05 08:51:09 +01:00
wish
a042cef5b1
fix possible infinite loop in gacha rolls
2023-03-30 23:32:10 +11:00
wish
40d5c67902
merge shop enumeration fixes from feature/diva
2023-03-12 22:05:42 +11:00
wish
e811dd1274
initial time fix
2023-03-04 21:43:10 +11:00
wish
a47303bec2
remove unused code
2023-02-18 18:05:51 +11:00
wish
a7aa0f1c33
separate out gacha function code
2023-02-18 18:05:33 +11:00
wish
66b13c8f58
rearrange gacha functions
2023-02-18 17:20:54 +11:00
wish
9b866967b8
add stepup and box gacha rewards to storage
2023-02-18 15:58:38 +11:00
wish
dfe4998649
implement box gacha
2023-02-18 15:57:17 +11:00
wish
7d5ec5a67e
correctly enumerate box gacha
2023-02-18 14:55:45 +11:00
wish
0fcacc24a0
implement stepup gacha, fix unfulfilled rewards
2023-02-18 12:36:17 +11:00
wish
c3306de2ee
fix gacha rewards overflowing
2023-02-18 10:43:47 +11:00
wish
8e6fa5e349
fix gacha reward handling
2023-02-17 00:22:58 +11:00
wish
036c4adba1
fix gacha koban my mission exchange
2023-02-15 23:31:14 +11:00
wish
e73d4a03f4
fix gacha rolling and add guaranteed rewards
2023-02-15 23:30:42 +11:00
wish
e1986cb58b
create transactGacha function
2023-02-15 00:22:28 +11:00
wish
403b5f1c7f
add support for multiple rolls
2023-02-15 00:13:43 +11:00
wish
9805991c95
track gacha coin spending correctly
2023-02-13 23:41:01 +11:00
wish
452404e48c
fix gacha enumeration recommendation tag
2023-02-13 23:40:17 +11:00
wish
7d4559b589
variable changes
2023-01-15 21:36:50 +11:00
wish
e1df9fca04
fix p2w currency enumeration
2023-01-15 20:42:17 +11:00
wish
341276c0ff
implement normal gacha functionality
2023-01-15 19:55:08 +11:00
wish
3913316310
code cleanup
2022-11-26 08:37:33 +11:00
wish
d21ecf2b31
shop enumeration pass 2
2022-11-21 11:42:19 +11:00
wish
9103debe99
shop enumeration first pass
2022-11-21 09:27:29 +11:00
wish
2570dda066
revert road shop changes
2022-08-04 10:34:22 +10:00
wish
2c0e7a5267
repository cleanup
2022-07-29 03:25:23 +10:00