[Scummvm-git-logs] scummvm master -> 32361224650d56d31b28b1468d73d0c1c49f12c5

bonki bonki at users.noreply.github.com
Fri Feb 9 22:02:11 CET 2018


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:
3236122465 TUCKER: Make the glue a "unary usage" object


Commit: 32361224650d56d31b28b1468d73d0c1c49f12c5
    https://github.com/scummvm/scummvm/commit/32361224650d56d31b28b1468d73d0c1c49f12c5
Author: Adrian Frühwirth (bonki at users.noreply.github.com)
Date: 2018-02-09T21:59:35+01:00

Commit Message:
TUCKER: Make the glue a "unary usage" object

Workaround for Trac#5511.

Changed paths:
    engines/tucker/tucker.cpp


diff --git a/engines/tucker/tucker.cpp b/engines/tucker/tucker.cpp
index 18752a0..06c7368 100644
--- a/engines/tucker/tucker.cpp
+++ b/engines/tucker/tucker.cpp
@@ -3756,9 +3756,23 @@ void TuckerEngine::setActionForInventoryObject() {
 		return;
 	}
 	// Items with unary usage i.e. "Use X", rather than "Use X on Y"
-	if ((_partNum == 3 && (_actionObj1Num == 6 || _actionObj1Num == 3 || _actionObj1Num == 17 || _actionObj1Num == 33)) ||
-		(_partNum == 2 && _actionObj1Num == 19) ||
-		(_partNum == 3 && (_actionObj1Num == 42 && _selectedObjectNum == 18)) ) {
+	if (
+		(_partNum == 3 && (_actionObj1Num == 6 || _actionObj1Num == 3 || _actionObj1Num == 17 || _actionObj1Num == 33)) ||
+		// WORKAROUND Trac#5511.
+		// Object 18 is the glue you are supposed to use on the museum floor in part
+		// three. However, there is no hotspot for you to use the glue on, you are
+		// supposed to blindly click on the floor to trigger the correct action,
+		// which many players (myself included) find very confusing and inconsistent.
+		// The next line turns the glue into a unary usage object which means that
+		// it's enough to be inside the museum and use the glue.
+		// While this makes the puzzle slightly easier, this is consistent with other
+		// similar puzzles/items (for example the peg/manhole puzzle).
+		// As a possible future TODO we could inject a hotspot for the floor or the
+		// curator on-the-fly, but this would need to take the language into account.
+		(_partNum == 3 &&  _actionObj1Num == 18) ||
+		(_partNum == 2 &&  _actionObj1Num == 19) ||
+		(_partNum == 3 && (_actionObj1Num == 42  && _selectedObjectNum == 18))
+	) {
 		_actionVerbLocked = false;
 		_actionRequiresTwoObjects = false;
 		_locationMaskCounter = 1;





More information about the Scummvm-git-logs mailing list