Healing Orb #175
Aliases: Healing Orb
1 verbs · 20 properties · 0 children
Verbs
| Verb | Spec | Flags | Definer | Lines |
|---|---|---|---|---|
touch | this none none | rxd | #175 | 9 |
Properties
| Property | Definer | Flags | Owner | Value |
|---|---|---|---|---|
healing | #175 | rc | #2 | 4.0 |
drop_failed_msg | #5 | rc | #2 | <clear> |
drop_succeeded_msg | #5 | rc | #2 | <clear> |
odrop_failed_msg | #5 | rc | #2 | <clear> |
odrop_succeeded_msg | #5 | rc | #2 | <clear> |
otake_succeeded_msg | #5 | rc | #2 | <clear> |
otake_failed_msg | #5 | rc | #2 | <clear> |
take_succeeded_msg | #5 | rc | #2 | <clear> |
take_failed_msg | #5 | rc | #2 | <clear> |
value_base | #102 | r | #2 | <clear> |
damage_base | #102 | r | #2 | <clear> |
x_loc | #102 | r | #36 | <clear> |
y_loc | #102 | r | #36 | <clear> |
ansi_title | #102 | r | #36 | <clear> |
obvious | #102 | r | #36 | <clear> |
build_help | #102 | rc | #2 | <clear> |
key | #1 | c | #2 | 0 |
aliases | #1 | rc | #2 | {"Healing Orb"} |
description | #1 | rc | #2 | "[green]This is a gray orb from which no light or mist emanates.[normal]" |
object_size | #1 | r | #36 | {0, 0} |
Ancestry
Ancestors (nearest first): #5 generic thing → #102 subthing → #1 Root Class
Children: none
Call graph
Source
touch
Referenced by
none
Source
1if (player.stats_current[2][4] >= player.stats[2][4]) 2player:tell("You touch the ", this:title(), "... It has no effect. (You are at maximum health.)"); 3player.location:tell(player:title(), " touches the ", this:title(), "... Nothing happens to ", player.po, "."); 4else 5phealth = tofloat(player.stats_current[2][4]) + tofloat(this.healing); 6player.stats_current[2][4] = phealth; 7player:tell("You touch the ", this:title(), "... You receive healing! You gain ", tostr(this.healing), " health!"); 8player.location:tell(player:title(), " touches the ", this:title(), "... ", player.psc, " receives healing!"); 9endif