generic room light source #201
Aliases: generic room light source
6 verbs · 57 properties · 0 children
Verbs
| Verb | Spec | Flags | Definer | Lines |
|---|---|---|---|---|
active | this none this | rxd | #201 | 1 |
_charge | this none this | rxd | #201 | 1 |
turn_on | this none this | rxd | #201 | 2 |
turn_off | this none this | rxd | #201 | 2 |
turn switch | this at/to any | rxd | #201 | 21 |
look_place_msg | this none this | rxd | #201 | 6 |
Properties
| Property | Definer | Flags | Owner | Value |
|---|---|---|---|---|
can_toggle | #201 | rc | #361 | 0 |
look_place_on_msg | #201 | rc | #361 | "The lights are on, illuminating the area." |
look_place_off_msg | #201 | rc | #361 | "The lights are off, rendering the area dark." |
on | #203 | r | #361 | <clear> |
turn_on_msg | #203 | rc | #361 | <clear> |
turn_off_msg | #203 | rc | #361 | <clear> |
switched_on | #203 | r | #361 | <clear> |
gain_power_msg | #203 | rc | #361 | <clear> |
lose_power_msg | #203 | rc | #361 | <clear> |
plugin_msg | #203 | rc | #361 | <clear> |
oplugin_msg | #203 | rc | #361 | <clear> |
no_power_msg | #203 | rc | #361 | <clear> |
powered_by | #203 | rc | #361 | <clear> |
unplug_msg | #203 | rc | #361 | <clear> |
ounplug_msg | #203 | rc | #361 | <clear> |
always_on | #203 | rc | #361 | <clear> |
load | #203 | rc | #361 | 2 |
light_level | #203 | rc | #361 | 1 |
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 | {"generic room light source"} |
description | #1 | rc | #361 | <clear> |
object_size | #1 | r | #29 | {3815, 1298434516} |
hidden_verbs | #1 | rc | #361 | <clear> |
phelp_msg | #1 | rc | #361 | <clear> |
weight | #1 | rwc | #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): #203 generic powered thing → #255 generic smashable thing → #5 generic thing → #1 root
Children: none
Call graph
Source
active
Referenced by
none
Source
1return this.on;
_charge
Referenced by
none
Source
1this:turn_on();
turn_on
Referenced by
- #201:_charge line 1:
this:turn_on - #201:turn line 11:
this:turn_on
Source
1this:room().darkness[2] = 0; 2return pass(@args);
turn_off
Referenced by
- #201:turn line 18:
this:turn_off
Source
1this:room().darkness[2] = 0; 2return pass(@args);
turn switch
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
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