SCI: QFG4: Revenant money-randomness is broken
|Reported by:||sluicebox||Owned by:||sluicebox|
|Cc:||Game:||Quest for Glory 4|
Searching the body of a revenant always awards 15 kopeks instead of the intended 15 to 40. Affects all versions.
The game's script is missing the first parameter to kRandom, so instead of requesting a random number between 0 and 25 and adding 15, the random number generator is reseeded to 25 (which we don't support) and 15 is always used.
To reproduce with attached save from CD version, search the body and then check inventory. This save starts with 30 kopeks and you always end up with 45.