From b87bc18d223ec42d797b3db0b42fa0c257041716 Mon Sep 17 00:00:00 2001 From: David Turner Date: Mon, 20 Dec 2010 18:44:25 +0000 Subject: [PATCH] MOHAWK: Add var getters for Myst Stellar Observatory Date-Time Display. svn-id: r54980 --- engines/mohawk/myst_stacks/myst.cpp | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/engines/mohawk/myst_stacks/myst.cpp b/engines/mohawk/myst_stacks/myst.cpp index 80b83b9ad1e..5a9abeae024 100644 --- a/engines/mohawk/myst_stacks/myst.cpp +++ b/engines/mohawk/myst_stacks/myst.cpp @@ -473,6 +473,23 @@ uint16 MystScriptParser_Myst::getVar(uint16 var) { return myst.observatoryLights; case 72: // Channelwood tree position return myst.treePosition; + case 73: // Stellar Observatory Date - Month + return myst.observatoryMonthSetting; + case 74: // Stellar Observatory Date - Day #1 (Left) + if (myst.observatoryDaySetting / 10 == 0) + return 10; + else + return myst.observatoryDaySetting / 10; + case 75: // Stellar Observatory Date - Day #2 (Right) + return myst.observatoryDaySetting % 10; + case 76: // Stellar Observatory Date - Year #1 (Left) + return (myst.observatoryYearSetting >> 12) & 0x0f; + case 77: // Stellar Observatory Date - Year #2 + return (myst.observatoryYearSetting >> 8) & 0x0f; + case 78: // Stellar Observatory Date - Year #3 + return (myst.observatoryYearSetting >> 4) & 0x0f; + case 79: // Stellar Observatory Date - Year #4 (Right) + return (myst.observatoryYearSetting >> 0) & 0x0f; case 80: // Stellar Observatory Hour #1 - Left ( Number 1 (0) or Blank (10)) if (myst.observatoryTimeSetting % (12 * 60) < (10 * 60)) return 10;