generic drug container #347

Parent #5Owner #361Flags read, fertileSource hellcore/hellcore.db

Aliases: generic drug container

7 verbs · 35 properties · 1 children

Verbs

VerbSpecFlagsDefinerLines
set_dosesthis none thisrxd#3476
set_max_dosesthis none thisrxd#3476
set_drugthis none thisrxd#3476
burn_upthis none thisrxd#34714
can_globthis none thisrxd#3474
cooked_bloodthis none thisrxd#3475
tree_tagthis none thisrxd#3476

Properties

PropertyDefinerFlagsOwnerValue
max_doses#347rc#36110
doses#347r#3610
drug#347rc#361#-1
full_msg#347rc#361"%DT is already full."
no_engrave#347rc#3611
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{"generic drug container"}
description#1rc#361"Something that looks like it might be used to store a drug."
object_size#1r#29{3999, 1298433815}
hidden_verbs#1rc#361<clear>
phelp_msg#1rc#361
list of 3{"Delicious drugs! Use 'em, abuse 'em, just don't lose 'em. Some give you nice bonuses. Some give you serious problems. Some do both! Which is which? Who cares!", "", "PRO TIP: Drug use is wrong and offends Christ."}
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): #5 generic thing#1 root

Children: #198 generic pill

Call graph

calls n347_3 #347:burn_up n1_46 #1:room n347_3->n1_46 n103_2 #103:junk n347_3->n103_2 n347_4 #347:can_glob n5_21 #5:can_glob n347_4->n5_21 n347_6 #347:tree_tag n5_18 #5:tree_tag n347_6->n5_18 n20_59 #20:name_and_number n347_6->n20_59

Source

set_doses

Spec this none thisFlags rxdOwner #361Definer #347

Referenced by

none

Source

1value = args[1];
2if (typeof(value) == NUM)
3this.doses = value;
4else
5return E_INVARG;
6endif

set_max_doses

Spec this none thisFlags rxdOwner #361Definer #347

Referenced by

none

Source

1value = args[1];
2if (typeof(value) == NUM)
3this.max_doses = value;
4else
5return E_INVARG;
6endif

set_drug

Spec this none thisFlags rxdOwner #361Definer #347

Referenced by

none

Source

1value = args[1];
2if (typeof(value) == OBJ)
3this.drug = value;
4else
5return E_INVARG;
6endif

burn_up

Spec this none thisFlags rxdOwner #361Definer #347

Referenced by

none

Source

1if (this.drug.vaporizable)
2where = this:room();
3chance = this.doses * 2;
4if (where.outdoor)
5chance = chance / 2;
6endif
7if (random(100) <= chance)
8where:announce_all("A cloud of ", this.drug.name, " fumes wafts out from the fire.");
9for x in (where:occupants($living))
10x:ingest(this.drug, 1, $drug_vectors.inhalation);
11endfor
12endif
13endif
14$rpg:junk(this);

can_glob

Spec this none thisFlags rxdOwner #361Definer #347

Referenced by

none

Source

1if (this.doses != parent(this).doses)
2return 0;
3endif
4return pass(@args);

cooked_blood

Spec this none thisFlags rxdOwner #361Definer #347

Referenced by

none

Source

1if (valid(this.drug))
2return {{this.drug, time(), this.doses}};
3else
4return {};
5endif

tree_tag

Spec this none thisFlags rxdOwner #361Definer #347

Referenced by

Source

1r = pass(@args);
2if (valid(this.drug))
3r = tostr(r, " ", $su:nn(this.drug));
4endif
5r = tostr(r, " doses: ", this.doses, "/", this.max_doses);
6return r;