stashed items #178

Parent #54Owner #361Flags readSource hellcore/hellcore.db

Aliases: stashed items

3 verbs · 64 properties · 0 children

Verbs

VerbSpecFlagsDefinerLines
acceptablethis none thisrxd#17810
exitfuncthis none thisrxd#17826
location_forthis none thisrxd#17818

Properties

PropertyDefinerFlagsOwnerValue
do_not_ever_recycle_me#178rc#3611
locations#178rc#361{}
capacity#54rc#361-1
weight_reduction#54rc#361<clear>
opaque#54rc#361<clear>
dark#54rc#361<clear>
close_msg#54rc#361<clear>
open_msg#54rc#361<clear>
remove_msg#54rc#361<clear>
put_msg#54rc#361<clear>
empty_msg#54rc#361<clear>
contents_msg#54rc#361<clear>
open_fail_msg#54rc#361<clear>
put_fail_msg#54rc#361<clear>
closed_msg#54rc#361<clear>
closable#54rc#361<clear>
open#54rwc#361<clear>
get_from_msg#54rc#361<clear>
max_objects#54rc#361<clear>
spill_on_break#54rc#361<clear>
peek_msg#54rc#361<clear>
clean_start_msg#54rc#361<clear>
oclean_start_msg#54rc#361<clear>
clean_finish_msg#54rc#361<clear>
oclean_finish_msg#54rc#361<clear>
break_msg#255rc#361<clear>
repair_difficulty#255rc#361<clear>
junk_on_break#255rc#361<clear>
rename_on_break#255rc#361<clear>
smashable#255rc#361<clear>
repairable#255rc#361<clear>
armor#255rc#361<clear>
held_break_msg#255rc#361<clear>
oheld_break_msg#255rc#361<clear>
handed#5rc#361<clear>
wield_msg#5rc#361<clear>
unwield_msg#5rc#361<clear>
size#5rc#361<clear>
look_place_msg#5rc#361<clear>
value#5rc#361<clear>
get_msg#5rc#361<clear>
drop_msg#5rc#361<clear>
get_fail_msg#5rc#361<clear>
junk_ok#5rc#361<clear>
floats#5rc#361<clear>
long_name_msg#5rc#361<clear>
article#5rc#361<clear>
setup_list#5rc#361<clear>
health#5rc#361<clear>
health_max#5rc#361<clear>
min_skill#5rc#361<clear>
skill#5rc#361<clear>
recipe_for#5rc#361<clear>
carried_msg#5rc#361<clear>
aliases#1rc#361{"stashed items"}
description#1rc#361<clear>
object_size#1r#29{14625, 1298434108}
hidden_verbs#1rc#361<clear>
phelp_msg#1rc#361<clear>
weight#1rc#361<clear>
owner_verbs#1rc#361<clear>
plural_name#1rc#361<clear>
client_image#1rc#361<clear>
listening#1rc#361<clear>

Ancestry

Ancestors (nearest first): #54 generic container#255 generic smashable thing#5 generic thing#1 root

Children: none

Call graph

calls n178_1 #178:exitfunc n54_13 #54:exitfunc n178_1->n54_13 n178_2 #178:location_for n47_18 #47:iassoc n178_2->n47_18

Source

acceptable

Spec this none thisFlags rxdOwner #361Definer #178

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

Spec this none thisFlags rxdOwner #361Definer #178

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

Spec this none thisFlags rxdOwner #361Definer #178

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;