Skip to content

Commit 93cff3f

Browse files
committed
Noop check: omniquest
1 parent 39b6f8d commit 93cff3f

File tree

2 files changed

+22
-15
lines changed

2 files changed

+22
-15
lines changed

frotz/src/games/omniquest.c

Lines changed: 9 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/*
1+
/*
22
Copyright (C) 2018 Microsoft Corporation
33
44
This program is free software; you can redistribute it and/or
@@ -24,12 +24,12 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
2424

2525
// Omniquest: http://ifdb.tads.org/viewgame?id=mygqz9tzxqvryead
2626

27-
const zword omniquest_special_ram_addrs[1] = {
28-
2123 // Keep track of whether you've given sushi to samurai; Also 2135.
27+
const zword omniquest_special_ram_addrs[0] = {
28+
// 2123 // Keep track of whether you've given sushi to samurai; Also 2135.
2929
};
3030

3131
zword* omniquest_ram_addrs(int *n) {
32-
*n = 1;
32+
*n = 0;
3333
return omniquest_special_ram_addrs;
3434
}
3535

@@ -100,11 +100,9 @@ int omniquest_ignore_attr_clr(zword obj_num, zword attr_idx) {
100100
}
101101

102102
void omniquest_clean_world_objs(zobject* objs) {
103-
int i;
104-
char mask;
105-
mask = ~(1 << 7);
106-
// Clear attr 24
107-
for (i=1; i<=omniquest_get_num_world_objs(); ++i) {
108-
objs[i].attr[3] &= mask;
109-
}
103+
for (int i=1; i<=omniquest_get_num_world_objs(); ++i) {
104+
clear_attr(&objs[i], 24);
105+
clear_attr(&objs[i], 25);
106+
}
107+
clear_prop(&objs[138], 40); // (long_time)
110108
}

tools/test_games.py

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -465,9 +465,13 @@
465465
*range(179, 189+1), # Water in the bowls boil away (strange vision).
466466
]
467467
},
468-
"night.z5": {
469-
470-
},
468+
"night.z5": {},
469+
"omniquest.z5": {
470+
"ignore_commands": [
471+
"examine tree", # snorkel hanging from the tree. You take it.
472+
"examine boot", # boot further reveals a crystal, which you take.
473+
]
474+
}
471475
}
472476

473477
SKIP_CHECK_STATE = {
@@ -876,7 +880,12 @@
876880
"x sign",
877881
]
878882
},
879-
"omniquest.z5": {},
883+
"omniquest.z5": {
884+
"noop": [
885+
"read scroll",
886+
"x cage",
887+
]
888+
},
880889
"partyfoul.z8": {
881890
"z": [53, 54], # Ending sequence.
882891
},

0 commit comments

Comments
 (0)