diff options
author | athrxx | 2019-11-16 16:01:08 +0100 |
---|---|---|
committer | athrxx | 2019-11-16 16:03:41 +0100 |
commit | 3906d716daf3c634d84b8eff6ede31367516fb3f (patch) | |
tree | 77d9bde04d3c0ed61d82845a394975677a98b65c /engines/kyra/engine | |
parent | 129988d0e946c622fd8319a19666c623850dac6d (diff) | |
download | scummvm-rg350-3906d716daf3c634d84b8eff6ede31367516fb3f.tar.gz scummvm-rg350-3906d716daf3c634d84b8eff6ede31367516fb3f.tar.bz2 scummvm-rg350-3906d716daf3c634d84b8eff6ede31367516fb3f.zip |
KYRA: (EOB1) - fix monster random item chance
(EOB 1 has a higher chance to receive a random item from certain monsters than EOB2 - this fixes that)
Diffstat (limited to 'engines/kyra/engine')
-rw-r--r-- | engines/kyra/engine/sprites_eob.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/kyra/engine/sprites_eob.cpp b/engines/kyra/engine/sprites_eob.cpp index 362c6c85c9..b02d1ccc43 100644 --- a/engines/kyra/engine/sprites_eob.cpp +++ b/engines/kyra/engine/sprites_eob.cpp @@ -176,7 +176,7 @@ void EoBCoreEngine::killMonster(EoBMonsterInPlay *m, bool giveExperience) { int pos = (m->pos == 4) ? rollDice(1, 4, -1) : m->pos; if (m->randItem) { - if (rollDice(1, 10, 0) == 1) + if (rollDice(1, _flags.gameID == GI_EOB1 ? 2 : 10, 0) == 1) setItemPosition((Item *)&_levelBlockProperties[m->block & 0x3FF].drawObjects, m->block, duplicateItem(m->randItem), pos); } |