[Scummvm-git-logs] scummvm master -> e6659e379ad25c638c8318ca761ace137416e742

neuromancer noreply at scummvm.org
Sat May 7 10:01:10 UTC 2022


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:
e6659e379a HYPNO: decrease the energy over time in level c6 in spider


Commit: e6659e379ad25c638c8318ca761ace137416e742
    https://github.com/scummvm/scummvm/commit/e6659e379ad25c638c8318ca761ace137416e742
Author: neuromancer (gustavo.grieco at gmail.com)
Date: 2022-05-07T12:01:35+02:00

Commit Message:
HYPNO: decrease the energy over time in level c6 in spider

Changed paths:
    engines/hypno/spider/arcade.cpp


diff --git a/engines/hypno/spider/arcade.cpp b/engines/hypno/spider/arcade.cpp
index 044d4b653cc..342197884ff 100644
--- a/engines/hypno/spider/arcade.cpp
+++ b/engines/hypno/spider/arcade.cpp
@@ -281,6 +281,15 @@ void SpiderEngine::drawPlayer() {
 			}
 		}
 	} else if (_arcadeMode == "YE" || _arcadeMode == "YF") {
+		if (_arcadeMode == "YF") {
+			int fraction = _background->decoder->getFrameCount() / (_maxHealth / 2);
+			if (_background->decoder->getCurFrame() % fraction == 0)
+				_health = MAX(1, _health - 1);
+
+			if (checkArcadeObjectives())
+				_skipLevel = true;
+		}
+
 		Common::Point mousePos = g_system->getEventManager()->getMousePos();
 		uint32 idx = mousePos.x / (_screenW / 5);
 		_playerFrameIdx = oIndexYE[idx];




More information about the Scummvm-git-logs mailing list