From 99aaf242016f02b2aa0f65469e3f79139424e4d4 Mon Sep 17 00:00:00 2001 From: athrxx Date: Sun, 30 Oct 2011 00:51:39 +0200 Subject: KYRA: fix monster hp in LoL --- engines/kyra/script_lol.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'engines') diff --git a/engines/kyra/script_lol.cpp b/engines/kyra/script_lol.cpp index c0a99f9cb3..91fada9e2a 100644 --- a/engines/kyra/script_lol.cpp +++ b/engines/kyra/script_lol.cpp @@ -842,7 +842,7 @@ int LoLEngine::olol_initMonster(EMCState *script) { l->direction = l->facing << 1; l->hitPoints = (l->properties->hitPoints * _monsterModifiers[_monsterDifficulty]) >> 8; - if (_currentLevel == 12 && l->type == 2) + if (_currentLevel != 12 || l->type != 2) l->hitPoints = (l->hitPoints * (rollDice(1, 128) + 192)) >> 8; l->numDistAttacks = l->properties->numDistAttacks; @@ -859,7 +859,7 @@ int LoLEngine::olol_initMonster(EMCState *script) { l->destDirection = l->direction; for (int ii = 0; ii < 4; ii++) - l->equipmentShapes[ii] = stackPos(7 + ii); + l->equipmentShapes[ii] = stackPos(7 + ii) & 0xff; checkSceneUpdateNeed(l->block); return i; -- cgit v1.2.3