stashed items #178
Aliases: stashed items
3 verbs · 64 properties · 0 children
Verbs
| Verb | Spec | Flags | Definer | Lines |
|---|---|---|---|---|
acceptable | this none this | rxd | #178 | 10 |
exitfunc | this none this | rxd | #178 | 26 |
location_for | this none this | rxd | #178 | 18 |
Properties
| Property | Definer | Flags | Owner | Value |
|---|---|---|---|---|
do_not_ever_recycle_me | #178 | rc | #361 | 1 |
locations | #178 | rc | #361 | {} |
capacity | #54 | rc | #361 | -1 |
weight_reduction | #54 | rc | #361 | <clear> |
opaque | #54 | rc | #361 | <clear> |
dark | #54 | rc | #361 | <clear> |
close_msg | #54 | rc | #361 | <clear> |
open_msg | #54 | rc | #361 | <clear> |
remove_msg | #54 | rc | #361 | <clear> |
put_msg | #54 | rc | #361 | <clear> |
empty_msg | #54 | rc | #361 | <clear> |
contents_msg | #54 | rc | #361 | <clear> |
open_fail_msg | #54 | rc | #361 | <clear> |
put_fail_msg | #54 | rc | #361 | <clear> |
closed_msg | #54 | rc | #361 | <clear> |
closable | #54 | rc | #361 | <clear> |
open | #54 | rwc | #361 | <clear> |
get_from_msg | #54 | rc | #361 | <clear> |
max_objects | #54 | rc | #361 | <clear> |
spill_on_break | #54 | rc | #361 | <clear> |
peek_msg | #54 | rc | #361 | <clear> |
clean_start_msg | #54 | rc | #361 | <clear> |
oclean_start_msg | #54 | rc | #361 | <clear> |
clean_finish_msg | #54 | rc | #361 | <clear> |
oclean_finish_msg | #54 | rc | #361 | <clear> |
break_msg | #255 | rc | #361 | <clear> |
repair_difficulty | #255 | rc | #361 | <clear> |
junk_on_break | #255 | rc | #361 | <clear> |
rename_on_break | #255 | rc | #361 | <clear> |
smashable | #255 | rc | #361 | <clear> |
repairable | #255 | rc | #361 | <clear> |
armor | #255 | rc | #361 | <clear> |
held_break_msg | #255 | rc | #361 | <clear> |
oheld_break_msg | #255 | rc | #361 | <clear> |
handed | #5 | rc | #361 | <clear> |
wield_msg | #5 | rc | #361 | <clear> |
unwield_msg | #5 | rc | #361 | <clear> |
size | #5 | rc | #361 | <clear> |
look_place_msg | #5 | rc | #361 | <clear> |
value | #5 | rc | #361 | <clear> |
get_msg | #5 | rc | #361 | <clear> |
drop_msg | #5 | rc | #361 | <clear> |
get_fail_msg | #5 | rc | #361 | <clear> |
junk_ok | #5 | rc | #361 | <clear> |
floats | #5 | rc | #361 | <clear> |
long_name_msg | #5 | rc | #361 | <clear> |
article | #5 | rc | #361 | <clear> |
setup_list | #5 | rc | #361 | <clear> |
health | #5 | rc | #361 | <clear> |
health_max | #5 | rc | #361 | <clear> |
min_skill | #5 | rc | #361 | <clear> |
skill | #5 | rc | #361 | <clear> |
recipe_for | #5 | rc | #361 | <clear> |
carried_msg | #5 | rc | #361 | <clear> |
aliases | #1 | rc | #361 | {"stashed items"} |
description | #1 | rc | #361 | <clear> |
object_size | #1 | r | #29 | {14625, 1298434108} |
hidden_verbs | #1 | rc | #361 | <clear> |
phelp_msg | #1 | rc | #361 | <clear> |
weight | #1 | rc | #361 | <clear> |
owner_verbs | #1 | rc | #361 | <clear> |
plural_name | #1 | rc | #361 | <clear> |
client_image | #1 | rc | #361 | <clear> |
listening | #1 | rc | #361 | <clear> |
Ancestry
Ancestors (nearest first): #54 generic container → #255 generic smashable thing → #5 generic thing → #1 root
Children: none
Call graph
Source
acceptable
Referenced by
none
Source
1if (is_a(what = args[1], $thing)) 2for i in [1..length(this.locations)] 3if (this.locations[i][1] == what) 4this.locations[i][2] == what:room(); 5return 1; 6endif 7endfor 8this.locations = {@this.locations, {what, what:room()}}; 9return 1; 10endif
exitfunc
Referenced by
none
Source
1what = args[1]; 2for i in [1..length(stashed = this.locations)] 3yield; 4{thing, where} = stashed[i]; 5if (thing == what) 6if (is_a(where, $room)) 7for j in [1..length(si = where.search_items)] 8if (si[j][1] == what) 9si = listdelete(si, j); 10break j; 11endif 12endfor 13where.search_items = si; 14for k in [1..length(sil = where.search_items_left)] 15if (sil[k][1] == what) 16sil = listdelete(sil, k); 17break k; 18endif 19endfor 20where.search_items_left = sil; 21endif 22this.locations = listdelete(stashed, i); 23break i; 24endif 25endfor 26return pass(@args);
location_for
Referenced by
none
Source
1{what} = args; 2if (!is_in(what, this)) 3return #-1; 4endif 5where = what; 6while (gamevalid(where)) 7if (where.location == this) 8if (i = $lu:iassoc(where, this.locations, 1)) 9room = this.locations[i][2]; 10if (is_a(room, $room)) 11return room; 12endif 13endif 14break; 15endif 16where = where.location; 17endwhile 18return #-1;