/* ScummVM - Graphic Adventure Engine * * ScummVM is the legal property of its developers, whose names * are too numerous to list here. Please refer to the COPYRIGHT * file distributed with this source distribution. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program. If not, see feet_x > 360 && hotspot->feet_x < 515 && hotspot->feet_y > 265 && hotspot->feet_y < 293) { player_hotspot_walk_override(hotspot->feet_x, 294, 11); } } } void Room310::parser() { _G(kernel).trigger_mode = KT_DAEMON; Mine::parser(); if (!_G(player).command_ready) return; if (_G(walker).wilbur_said(SAID)) { // Already handled } else if (player_said("GEAR", "PROBE") || player_said("TAKE", "PROBE")) { term_message("truffles in mine %d truffles ran away %d", _G(flags)[kTrufflesInMine], _G(flags)[kTrufflesRanAway]); if (_G(flags)[kTrufflesInMine] == 1 && !_G(flags)[kTrufflesRanAway]) { term_message("Wilbur pissed off truffles!"); player_set_commands_allowed(false); _trufflesShould = 14; } } else if (player_said("LOOK AT", "TRUFFLES")) { _G(wilbur_should) = 5; kernel_trigger_dispatch_now(kCHANGE_WILBUR_ANIMATION); } else { return; } _G(player).command_ready = false; } } // namespace Rooms } // namespace Burger } // namespace M4