Skip to content

Commit 88f15eb

Browse files
committed
Noop check: pentari
1 parent 9c4f9fa commit 88f15eb

File tree

3 files changed

+20
-12
lines changed

3 files changed

+20
-12
lines changed

frotz/src/games/pentari.c

Lines changed: 9 additions & 9 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
@@ -38,7 +38,7 @@ char* pentari_clean_observation(char* obs) {
3838
char* pch;
3939
pch = strchr(obs, '>');
4040
if (pch != NULL) {
41-
*(pch-2) = '\0';
41+
*(pch) = '\0';
4242
}
4343
return obs+1;
4444
}
@@ -98,11 +98,11 @@ int pentari_ignore_attr_clr(zword obj_num, zword attr_idx) {
9898
}
9999

100100
void pentari_clean_world_objs(zobject* objs) {
101-
int i;
102-
char mask;
103-
mask = ~(1 << 7);
104-
// Clear attr 24
105-
for (i=1; i<=pentari_get_num_world_objs(); ++i) {
106-
objs[i].attr[3] &= mask;
107-
}
101+
for (int i=1; i<=pentari_get_num_world_objs(); ++i) {
102+
clear_attr(&objs[i], 25);
103+
}
104+
105+
objs[103].parent = 0;
106+
clear_prop(&objs[103], 51);
107+
clear_prop(&objs[103], 52);
108108
}

jericho/game_info.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -343,7 +343,7 @@
343343
"name": "pentari",
344344
"rom": "pentari.z5",
345345
"seed" : 0,
346-
"walkthrough" : "north/north/in/city/east/covert/south/smash seal/north/north/north/south/east/get in floor/up/north/open towel/north/south/south/west/west/put sword down/take dagger/north/take chest/south/east/put all down/south/south/north/north/take chest/put all down/north/enter/take scroll/get up/south/fwoosh/take emerald/put dagger in chest/west/take sword/hit elf/take emerald/put all on box/l",
346+
"walkthrough" : "north/north/in/city/east/covert/south/smash seal/north/north/north/south/east/get in floor/up/north/open towel/north/south/south/west/west/put sword down/take dagger/north/take chest/south/east/put all down/south/south/north/north/take chest/put all down/north/enter/take scroll/get up/south/fwoosh/take emerald/z/west/take sword/hit elf/take emerald/put all on box/l",
347347
"grammar" : "awake/awaken/wake;awake/awaken/wake up;bother/curses/darn/drat;brief/normal;carry/hold/take inventory;city;covert;damn/fuck/shit/sod;defiant;die/q/quit;dive/swim;exit/out/outside/stand;full/fullscore;full/fullscore score;fwoosh;get out/off/up;hear/listen;help;hop/jump/skip;i/inv/inventory;i/inv/inventory tall;i/inv/inventory wide;in/inside/cross/enter;info;l/look;leave/go/run/walk;long/verbose;luminus;nap/sleep;no;noscript/unscript;notify off;notify on;nouns/pronouns;objects;places;pray;restart;restore;save;score;script/transcrip;script/transcrip off;script/transcrip on;short/superbrie;sing;smell/sniff;sorry;stand up;think;verify;version;wait/z;wave;y/yes;adjust/set OBJ;attach/fasten/fix/tie OBJ;awake/awaken/wake OBJ;awake/awaken/wake OBJ up;awake/awaken/wake up OBJ;blow OBJ;bother/curses/darn/drat OBJ;burn/light OBJ;buy/purchase OBJ;carry/hold/take off OBJ;chase/follow/pursue/trail OBJ;chase/follow/pursue/trail after OBJ;chop/cut/prune/slice OBJ;clean/dust/polish/rub/scrub/shine/sweep/wipe OBJ;clear/move/press/push/shift OBJ;climb/scale OBJ;climb/scale up/over OBJ;close/cover/shut OBJ;close/cover/shut up OBJ;cross/enter/go/run/walk OBJ;damn/fuck/shit/sod OBJ;dig OBJ;discard/drop/throw OBJ;disrobe/doff/shed/remove OBJ;don/wear OBJ;drag/pull OBJ;drink/sip/swallow OBJ;eat OBJ;embrace/hug/kiss OBJ;empty OBJ;empty OBJ out;empty out OBJ;feel/fondle/grope/touch OBJ;fill OBJ;fold OBJ;get in/into/on/onto OBJ;get off OBJ;get/carry/hold/take OBJ;hear/listen OBJ;hear/listen to OBJ;hop/jump/skip over OBJ;l/look at OBJ;l/look inside/in/into/through OBJ;l/look under OBJ;leave OBJ;leave/go/run/walk into/in/inside/through OBJ;lie/sit on top of OBJ;lie/sit on/in/inside OBJ;open/uncover/undo/unwrap OBJ;peel OBJ;peel off OBJ;pick OBJ up;pick up OBJ;put OBJ down;put down OBJ;put on OBJ;read/check/describe/examine/watch/x OBJ;rotate/screw/turn/twist/unscrew OBJ;search OBJ;shatter/attack/break/crack/destroy/fight/hit/kill/murder/punch/smash/thump/torture/wreck OBJ;smell/sniff OBJ;squash/squeeze OBJ;stand on OBJ;swing OBJ;swing on OBJ;switch OBJ;switch/rotate/screw/turn/twist/unscrew OBJ off;switch/rotate/screw/turn/twist/unscrew OBJ on;switch/rotate/screw/turn/twist/unscrew on OBJ;switch/rotate/screw/turn/twist/unscrew/close/cover/shut off OBJ;taste OBJ;unfold OBJ;wave OBJ;adjust/set OBJ to OBJ;attach/fasten/fix/tie OBJ to OBJ;burn/light OBJ with OBJ;carry/hold/take OBJ off OBJ;clear/move/press/push/shift OBJ OBJ;clear/move/press/push/shift/transfer OBJ to OBJ;consult OBJ about OBJ;consult OBJ on OBJ;dig OBJ with OBJ;discard/drop/throw OBJ at/against/on/onto OBJ;discard/drop/throw OBJ in/into/down OBJ;discard/drop/throw/put OBJ on/onto OBJ;display/present/show OBJ OBJ;display/present/show OBJ to OBJ;empty OBJ to/into/on/onto OBJ;feed/give/offer/pay OBJ OBJ;feed/give/offer/pay OBJ to OBJ;feed/give/offer/pay over OBJ to OBJ;insert OBJ in/into OBJ;l/look up OBJ in OBJ;lock OBJ with OBJ;put OBJ in/inside/into OBJ;read OBJ in OBJ;read about OBJ in OBJ;remove/get/carry/hold/take OBJ from OBJ;unlock/open/uncover/undo/unwrap OBJ with OBJ;",
348348
"max_word_length" : 9
349349
}

tools/test_games.py

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -479,7 +479,13 @@
479479
41, # You get caugth with celery in your hands.
480480
47, # Abbey take the knife from your hands.
481481
],
482-
}
482+
},
483+
"pentari.z5": {
484+
"*": [
485+
44, # Dark Elf gets you.
486+
48, # Victory.
487+
]
488+
},
483489
}
484490

485491
SKIP_CHECK_STATE = {
@@ -901,7 +907,9 @@
901907
30: "z", # Waiting for Abbey to leave the room.
902908
31: "z", # Waiting for Abbey to leave the room.
903909
},
904-
"pentari.z5": {},
910+
"pentari.z5": {
911+
"z": [42],
912+
},
905913
"planetfall.z3": {
906914
216: "eat brown goo", # Not needed to complete the game.
907915
},

0 commit comments

Comments
 (0)