generic room light source #201

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

Aliases: generic room light source

6 verbs · 57 properties · 0 children

Verbs

VerbSpecFlagsDefinerLines
activethis none thisrxd#2011
_chargethis none thisrxd#2011
turn_onthis none thisrxd#2012
turn_offthis none thisrxd#2012
turn switchthis at/to anyrxd#20121
look_place_msgthis none thisrxd#2016

Properties

PropertyDefinerFlagsOwnerValue
can_toggle#201rc#3610
look_place_on_msg#201rc#361"The lights are on, illuminating the area."
look_place_off_msg#201rc#361"The lights are off, rendering the area dark."
on#203r#361<clear>
turn_on_msg#203rc#361<clear>
turn_off_msg#203rc#361<clear>
switched_on#203r#361<clear>
gain_power_msg#203rc#361<clear>
lose_power_msg#203rc#361<clear>
plugin_msg#203rc#361<clear>
oplugin_msg#203rc#361<clear>
no_power_msg#203rc#361<clear>
powered_by#203rc#361<clear>
unplug_msg#203rc#361<clear>
ounplug_msg#203rc#361<clear>
always_on#203rc#361<clear>
load#203rc#3612
light_level#203rc#3611
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{"generic room light source"}
description#1rc#361<clear>
object_size#1r#29{3815, 1298434516}
hidden_verbs#1rc#361<clear>
phelp_msg#1rc#361<clear>
weight#1rwc#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): #203 generic powered thing#255 generic smashable thing#5 generic thing#1 root

Children: none

Call graph

calls n201_1 #201:_charge n201_2 #201:turn_on n201_1->n201_2 n1_46 #1:room n201_2->n1_46 n203_5 #203:turn_on n201_2->n203_5 n201_3 #201:turn_off n201_3->n1_46 n201_3->n203_5 n201_4 #201:turn n201_4->n201_2 n201_4->n201_3 n107_43 #107:tell n201_4->n107_43 n1_31 #1:dname n201_4->n1_31 n1_66 #1:announce_action_text n201_4->n1_66 n20_34 #20:pronoun_sub n201_4->n20_34 n201_5 #201:look_place_msg n201_5->n20_34

Source

active

Spec this none thisFlags rxdOwner #361Definer #201

Referenced by

none

Source

1return this.on;

_charge

Spec this none thisFlags rxdOwner #361Definer #201

Referenced by

none

Source

1this:turn_on();

turn_on

Spec this none thisFlags rxdOwner #361Definer #201

Referenced by

Source

1this:room().darkness[2] = 0;
2return pass(@args);

turn_off

Spec this none thisFlags rxdOwner #361Definer #201

Referenced by

Source

1this:room().darkness[2] = 0;
2return pass(@args);

turn switch

Spec this at/to anyFlags rxdOwner #361Definer #201

Referenced by

none

Source

1if (!this.can_toggle)
2player:tell("You can't find a switch for ", this:dname(), ".");
3return;
4endif
5if (iobjstr == "on")
6if (this.on)
7player:tell("It's already on!");
8return;
9endif
10player:aat($su:ps(this.turn_on_msg));
11this:turn_on();
12elseif (iobjstr == "off")
13if (!this.on)
14player:tell("It's already off!");
15return;
16endif
17player:aat($su:ps(this.turn_off_msg));
18this:turn_off();
19else
20player:tell(tostr("Usage: turn ", this.name, " to on|off"));
21endif

look_place_msg

Spec this none thisFlags rxdOwner #361Definer #201

Referenced by

none

Source

1"Copied from generic immovable lighting (#51779):look_place_msg by Aristotle (#349995) Wed May  5 12:49:17 2010 CDT";
2if (this.on)
3return $su:ps(this.look_place_on_msg);
4else
5return $su:ps(this.look_place_off_msg);
6endif