File tree Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Original file line number Diff line number Diff line change 36
36
; string. e.g. User types "EXAMINE" we run "examine_function"
37
37
;
38
38
; * All object-specific functions have a _fn suffix.
39
- ; e.g. Custom code runs when you "GET RUG" is get_rug_fn
39
+ ; e.g. Custom code runs when you "TAKE RUG" is take_rug_fn
40
40
;
41
41
; If you're using Emacs, or similar editor, you should be able to fold
42
42
; or collapse sections of the code via the markers "; {" and "; }"
@@ -2379,14 +2379,22 @@ examine_rug_fn:
2379
2379
2380
2380
; The rug must be in your possession, just show the extended
2381
2381
; description.
2382
+ just_show_rug_details:
2382
2383
ld e, (IX+ITEM_TABLE_EXT_DESCRIPTION_OFFSET)
2383
2384
ld d, (IX+ITEM_TABLE_EXT_DESCRIPTION_OFFSET+1)
2384
2385
call bios_output_string
2385
2386
2386
2387
ret
2387
2388
2388
2389
rug_on_ground:
2390
+ ;; If we're in the ground-floor we can show more details
2391
+ ;; if we're not we'll just show the overview
2392
+ ld hl, CURRENT_LOCATION
2393
+ ld a,(hl)
2394
+ cp 2
2395
+ jr nz, just_show_rug_details
2389
2396
2397
+ ;; We're in the ground floor so we can do the reveal
2390
2398
ld de, rug_detail_msg
2391
2399
call bios_output_string
2392
2400
call make_trapdoor_visible
You can’t perform that action at this time.
0 commit comments