aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJaromir Wysoglad2019-06-10 07:53:09 +0200
committerThierry Crozat2019-07-28 15:09:14 +0100
commit2d4b37233d3aa0bb8ca170f8f8c0358c2e78c405 (patch)
tree77d1c758085fa086a55d4073b0ab9ffb1bcc202c
parent933233d7bfcb3bb04bda5f02deeb4423d3cb7e07 (diff)
downloadscummvm-rg350-2d4b37233d3aa0bb8ca170f8f8c0358c2e78c405.tar.gz
scummvm-rg350-2d4b37233d3aa0bb8ca170f8f8c0358c2e78c405.tar.bz2
scummvm-rg350-2d4b37233d3aa0bb8ca170f8f8c0358c2e78c405.zip
SUPERNOVA2: Add Formula2N room
-rw-r--r--engines/supernova2/rooms.cpp11
1 files changed, 10 insertions, 1 deletions
diff --git a/engines/supernova2/rooms.cpp b/engines/supernova2/rooms.cpp
index dc68553ad0..bd4c59c364 100644
--- a/engines/supernova2/rooms.cpp
+++ b/engines/supernova2/rooms.cpp
@@ -2947,9 +2947,14 @@ Formula2N::Formula2N(Supernova2Engine *vm, GameManager *gm) {
_vm = vm;
_gm = gm;
- _fileNumber = 6;
+ _fileNumber = 13;
_id = FORMULA2_N;
_shown[0] = kShownTrue;
+ _shown[6] = kShownTrue;
+
+ _objectState[0] = Object(_id, kStringRight, kStringDefaultDescription, G_RIGHT, EXIT, 8, 8, 0, PYR_ENTRANCE, 14);
+ _objectState[1] = Object(_id, kStringLeft, kStringDefaultDescription, G_LEFT, EXIT, 7, 7, 0, PYR_ENTRANCE, 10);
+ _objectState[2] = Object(_id, kStringInscription, kStringInscriptionDescription, NULLOBJECT, NULLTYPE, 3, 3, 0);
}
void Formula2N::onEntrance() {
@@ -2960,6 +2965,10 @@ void Formula2N::animation() {
}
bool Formula2N::interact(Action verb, Object &obj1, Object &obj2) {
+ if (!_gm->move(verb, obj1))
+ return false;
+ _gm->passageConstruction();
+ _gm->_newRoom = true;
return true;
}