generic powered thing #203
Aliases: generic powered thing, powered thing, thing
9 verbs · 54 properties · 2 children
Verbs
| Verb | Spec | Flags | Definer | Lines |
|---|---|---|---|---|
plug | this in/inside/into none | rxd | #203 | 7 |
unplug | this none none | rxd | #203 | 7 |
is_on | this none this | rxd | #203 | 1 |
tree_tag | this none this | rxd | #203 | 2 |
chill_factor | this none this | rxd | #203 | 3 |
turn_on turn_off _lose_power _gain_power _break _repair_check has_power _plug moveto recycle find_powerplant | this none this | rxd | #203 | 2 |
look_self | this none this | rxd | #203 | 12 |
_repair | this none this | rxd | #203 | 4 |
light_level | this none this | rxd | #203 | 6 |
Properties
| Property | Definer | Flags | Owner | Value |
|---|---|---|---|---|
on | #203 | r | #361 | 0 |
turn_on_msg | #203 | rc | #361 | "%DN turns on %dt." |
turn_off_msg | #203 | rc | #361 | "%DN turns off %dt." |
switched_on | #203 | r | #361 | 1 |
gain_power_msg | #203 | rc | #361 | "%DT suddenly turns on." |
lose_power_msg | #203 | rc | #361 | "%DT suddenly turns off." |
plugin_msg | #203 | rc | #361 | "You plug %dt into an outlet in %dl." |
oplugin_msg | #203 | rc | #361 | "%DN plugs %dt into an outlet in %dl." |
no_power_msg | #203 | rc | #361 | "%DN tries to turn on %dt but it doesn't seem to have any power." |
powered_by | #203 | rc | #361 | #-1 |
unplug_msg | #203 | rc | #361 | "You unplug %dt." |
ounplug_msg | #203 | rc | #361 | "%DN unplugs %dt." |
always_on | #203 | rc | #361 | 0 |
load | #203 | rc | #361 | 1 |
light_level | #203 | rc | #361 | 0 |
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 | 5 |
health_max | #5 | rc | #361 | 5 |
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 powered thing", "powered thing", "thing"} |
description | #1 | rc | #361 | <clear> |
object_size | #1 | r | #29 | {5936, 1298433820} |
hidden_verbs | #1 | rc | #361 | <clear> |
phelp_msg | #1 | rc | #361 | {"This item can be plugged into a wall socket to draw power. You probably won't find wall sockets outdoors, or in ruined areas -- try your apartment (or someone else's)."} |
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): #255 generic smashable thing → #5 generic thing → #1 root
Children: #173 generic hardware, #201 generic room light source
Call graph
Source
plug
Referenced by
none
Source
10; 2"Automatically generated for the powered API."; 3if (length(args) && (args[1] == $implementing_interface.magic_pass_cookie)) 4return pass(@listdelete(args, 1)); 5else 6return $api.powered.implementation:(verb)(this, @args); 7endif
unplug
Referenced by
none
Source
10; 2"Automatically generated for the powered API."; 3if (length(args) && (args[1] == $implementing_interface.magic_pass_cookie)) 4return pass(@listdelete(args, 1)); 5else 6return $api.powered.implementation:(verb)(this, @args); 7endif
is_on
Referenced by
- #203:light_level line 2:
this:is_on
Source
1return (this.on || this.always_on) && this:has_power();
tree_tag
Referenced by
none
Source
1tag = pass(@args); 2return (tag + " ") + tostr($ansi.cyan, $su:right(this.load, -7), $ansi.reset);
chill_factor
Referenced by
none
Source
1if (this.on) 2return pass(@args); 3endif
turn_on turn_off _lose_power _gain_power _break _repair_check has_power _plug moveto recycle find_powerplant
Referenced by
- #173:recycle line 2:
pass( - #201:turn_on line 2:
pass( - #201:turn_off line 2:
pass( - #203:is_on line 1:
this:has_power - #203:_repair line 3:
this:turn_on
Source
1"Automatically generated for the powered API."; 2return $api.powered.implementation:(verb)(this, @args);
look_self
Referenced by
none
Source
1pass(@args); 2if (valid(this.powered_by)) 3if (this.always_on) 4player:tell($su:ps("%S's plugged in.", this)); 5elseif (this.on) 6player:tell($su:ps("%S's plugged in and turned on.", this)); 7else 8player:tell($su:ps("%S's plugged into the wall, but turned off.", this)); 9endif 10else 11player:tell($su:ps("%S's not plugged in or turned on.", this)); 12endif
_repair
Referenced by
none
Source
1pass(@args); 2if ((this.health && (!this.on)) && this.always_on) 3this:turn_on(); 4endif
light_level
Referenced by
none
Source
1"Copied from old flare (#113095):light_level by Chiyo (#143894) Wed Jul 29 02:15:52 2009 CDT"; 2if (this:is_on() && this.light_level) 3return this.light_level; 4else 5return 0; 6endif