Cursed Artifact #177
Aliases: Cursed Artifact
1 verbs · 20 properties · 0 children
Verbs
| Verb | Spec | Flags | Definer | Lines |
|---|---|---|---|---|
get take touch | this none none | rxd | #177 | 8 |
Properties
| Property | Definer | Flags | Owner | Value |
|---|---|---|---|---|
damage | #177 | rc | #2 | 1.5 |
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 | {"Cursed Artifact"} |
description | #1 | rc | #2 | "[green]This is a black orb from which no light emanates, though dots of red and white can be seen occasionally cascading from it.[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
get take touch
Referenced by
none
Source
1player:tell("The ", this:title(), " harms you greatly when you try to touch it!"); 2player.location:tell("The ", this:title(), " harms ", player:title(), " greatly when ", player.ps, " tries to touch it!"); 3player:tell("You take [red]", floatstr(this.damage, 2), "[normal] damage!"); 4phealth = tofloat(player.stats_current[2][4]) - tofloat(this.damage); 5player.stats_current[2][4] = phealth; 6if (player.stats_current[2][4] <= 0.0) 7player:die(); 8endif