Skip to content

Commit

Permalink
SCUMM HE: Football online mod: Show full bench when drafting (scummvm…
Browse files Browse the repository at this point in the history
…#5235)

* SCUMM HE: Return 38 for roomvar 9 to show full bench online

* SCUMM HE: Move mod impl to o6_getRandomNumberRange

---------

Co-authored-by: shkupfer <shkupfer@ncsu.edu>
  • Loading branch information
shkupfer and shkupfer authored Aug 7, 2023
1 parent 8054f82 commit e0a146f
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions engines/scumm/script_v6.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1468,6 +1468,12 @@ void ScummEngine_v6::o6_getRandomNumberRange() {
rnd = readArray(749, 0, vm.localvar[_currentScript][1]);
}
}
// Mod for Backyard Football online competitive play: allow all 38 backyard kids and pros
// to be drafted in an online game. This controls how many kids are shown in the bleachers
// when drafting. Without this mod, a random selection of between 31 and 35 kids are shown.
if (_game.id == GID_FOOTBALL && readVar(465) == 1 && _currentRoom == 5 && vm.slot[_currentScript].number == 2107) {
rnd = 38;
}
}
#endif
if (VAR_RANDOM_NR != 0xFF)
Expand Down

0 comments on commit e0a146f

Please sign in to comment.