Commit graph

29 commits

Author SHA1 Message Date
Antonio Martinez
eb90dcd047 Fix debugitemodds displaying wrong odds 2025-09-23 06:53:02 -04:00
Antonio Martinez
aab374e9ef WIP: Speed Assist 2025-08-23 03:00:33 -04:00
Antonio Martinez
5dc72e9886 Restore PreFilItemRoulette by moving hooks outside of reelbuilder 2025-07-05 16:16:26 -04:00
JugadorXEI
bf278f4fcc Expose K_ScaleItemDistance and K_ItemOddsScale to Lua 2025-07-04 15:58:02 -04:00
JugadorXEI
501c85a7b1 Expose K_CalculateRouletteSpeed to Lua 2025-07-04 15:52:37 -04:00
JugadorXEI
a6c34c4ff2 Expose K_ForcedSPB and K_DenyShieldOdds to Lua 2025-07-04 15:51:05 -04:00
Antonio Martinez
f32eefb9b5 Internal fuckup the third 2025-07-04 15:48:10 -04:00
JugadorXEI
5a62e902a0 Expose K_GetItemRouletteDistance, K_FindUseodds and K_CreateAndShuffleItemReel to Lua 2025-07-04 15:44:49 -04:00
Antonio Martinez
4694430292 Internal merge lua roulette fixup hell 2025-07-04 15:43:16 -04:00
JugadorXEI
a4a6c349b4 Expose K_KartGetItemResult to Lua 2025-07-04 15:25:55 -04:00
JugadorXEI
a6f228ec29 Expose K_AddItemToReel and K_PushToRouletteItemList to Lua 2025-07-04 15:20:05 -04:00
Eidolon
cb7f437e60 Merge public master 2025-02-13 15:48:11 -06:00
Eidolon
a4d304a1f5 Update copyright years to 2025 2025-02-13 15:32:26 -06:00
Antonio Martinez
5d19bfcb91 Dynamic Roulette: mega cleanup, mini fixes 2024-08-21 02:28:31 -07:00
Antonio Martinez
9e90cb80dd Restore some Battle stuff 2024-08-20 23:28:27 -07:00
Sally Coolatta
7dfa597c7d SRB2 -> DRRR copyright in src, acs, android folder
Be consistent with toaster's recent changes to copyright
2024-04-05 02:08:23 -04:00
Sally Coolatta
0b22e8eb00 Fix visuals on roulette latency compensation
- Latency is based on D0 instead of D2.
- Confirm offset is now adjusted for latency, so it should feel more correct when stopping it.
- Slot machine offset is properly set up to use the slot machine offset instead of the item roulette offset.
2023-11-22 18:50:13 -05:00
James R
e75204a899 Replace instances of itemRoulette.active = false with K_StopRoulette
Properly clear ringbox state so it doesn't override egg
transfer item HUD.
2023-08-11 19:21:59 -07:00
AJ Martinez
0a6bac0dcc Ringbox: HUD, transform time define, ring-box-only, scaling rewards 2023-06-26 17:36:41 -07:00
AJ Martinez
41540ed9e5 WIP: Ring Box 2023-06-14 23:32:31 -07:00
Sally Coolatta
69181e4ff2 Bots: Fix a couple bugs with item priority
- Fix Ring Debt priorities being used even when not at 0 rings
- Fix extra item results not being considered for priorities.
2023-05-15 06:51:13 -04:00
Sally Coolatta
d367bacc39 Bots: Decide what item they want without using RNG
Makes Lv.1 a lot less aggressive, and Lv.MAX slightly more aggressive. But the main advantage is simply that they are deterministic again and I can  :D
2023-05-15 03:05:28 -04:00
Eidolon
be021baa02 Add extern "C" in C++ to all headers 2022-12-30 19:26:16 -06:00
Sally Coolatta
05413eeb2d Add proper comments for each function
(I think this is the only code style I want to actively enforce :p)
2022-12-15 16:19:06 -05:00
Sally Coolatta
6554c8bfb1 Improve scope handling of the roulette
All of the player_t references are now full-const instead of const pointer after a certain point. This is because I've made two mistakes so far of modifying the player with this, when it's supposed to be safe to call for HUD as well.

Also uses this split to add a more efficient way to prevent multi-Shrink/SPB.

Also handles NULL player better, for the sake of Battle's K_CreatePaperItem.
2022-12-15 02:13:46 -05:00
Sally Coolatta
ffe9d5cd1d Properly support small splitscreen itembox 2022-12-15 01:41:34 -05:00
Sally Coolatta
f7e53ec811 Cleanup lots of the older roulette code
- Most of it now requires a reference to itemroulette_t, rather than copying all of the variables over.
- Increased the effect of Frantic Items, as the old scaling was made extremely low because  item distance was exponential back then.
- A lot of variables are pre-calculated in itemroulette_t instead of redoing the calculations every time (player count, first place's dist, etc)
- Make most of these functions only accessible by k_roulette.c
- Even when single items get forced into your roulette, the Super Ring Debt effect can happen
- Make the game support setting single items from other gametypes (Pogo Spring-only races work now)
- Fix some item distances not accounting for scale
- Prevent multiple of certain items from rolling at once; Shrinks (not a big deal) and SPBs (OH GOD NO)
2022-12-15 01:23:23 -05:00
Sally Coolatta
202c505664 Implement roulette visuals 2022-12-12 02:18:18 -05:00
Sally Coolatta
a481e4b34b Deterministic roulette
The roulette contains NO (non-seeded) RNG anymore. You manually stop it at any time.

Still needs the visual of the items scrolling, to make it not blind.
2022-12-11 23:58:11 -05:00