[Scummvm-git-logs] scummvm master -> 3906d716daf3c634d84b8eff6ede31367516fb3f

athrxx athrxx at scummvm.org
Sat Nov 16 16:05:26 CET 2019


This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .

Summary:
3906d716da KYRA: (EOB1) - fix monster random item chance


Commit: 3906d716daf3c634d84b8eff6ede31367516fb3f
    https://github.com/scummvm/scummvm/commit/3906d716daf3c634d84b8eff6ede31367516fb3f
Author: athrxx (athrxx at scummvm.org)
Date: 2019-11-16T16:03:41+01:00

Commit Message:
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)

Changed paths:
    engines/kyra/engine/sprites_eob.cpp


diff --git a/engines/kyra/engine/sprites_eob.cpp b/engines/kyra/engine/sprites_eob.cpp
index 362c6c8..b02d1cc 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);
 	}
 





More information about the Scummvm-git-logs mailing list