mirror of
https://github.com/HarbourMasters/Shipwright.git
synced 2025-07-31 12:00:25 -07:00
Rando - Fix ice traps & get item logic (#2210)
* Fix ice traps & get item logic * Fix shop keepers & more draw logic cleanup
This commit is contained in:
parent
6f7361e1a4
commit
a1a6c07549
7 changed files with 90 additions and 42 deletions
|
@ -400,9 +400,7 @@ void GetItem_Draw(PlayState* play, s16 drawId) {
|
|||
* Uses the Custom Draw Function if it exists, or just calls `GetItem_Draw`
|
||||
*/
|
||||
void GetItemEntry_Draw(PlayState* play, GetItemEntry getItemEntry) {
|
||||
// RANDOTODO: Make this more flexible for easier toggling of individual item recolors in the future.
|
||||
if (getItemEntry.drawFunc != NULL &&
|
||||
(CVar_GetS32("gRandoMatchKeyColors", 0) || getItemEntry.getItemId == RG_DOUBLE_DEFENSE)) {
|
||||
if (getItemEntry.drawFunc != NULL) {
|
||||
getItemEntry.drawFunc(play, &getItemEntry);
|
||||
} else {
|
||||
GetItem_Draw(play, getItemEntry.gid);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue