[Scummvm-git-logs] scummvm branch-2-1 -> c28abbce2b4c6a184e30697585c3819e40d9d7fa

athrxx athrxx at scummvm.org
Sat Nov 16 16:06:38 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:
c28abbce2b KYRA: (EOB1) - fix monster random item chance


Commit: c28abbce2b4c6a184e30697585c3819e40d9d7fa
    https://github.com/scummvm/scummvm/commit/c28abbce2b4c6a184e30697585c3819e40d9d7fa
Author: athrxx (athrxx at scummvm.org)
Date: 2019-11-16T16:02:27+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