Cursed Artifact #177

Parent #5Owner #2Flags read, fertileSource QuestCore.db

Aliases: Cursed Artifact

1 verbs · 20 properties · 0 children

Verbs

VerbSpecFlagsDefinerLines
get take touchthis none nonerxd#1778

Properties

PropertyDefinerFlagsOwnerValue
damage#177rc#21.5
drop_failed_msg#5rc#2<clear>
drop_succeeded_msg#5rc#2<clear>
odrop_failed_msg#5rc#2<clear>
odrop_succeeded_msg#5rc#2<clear>
otake_succeeded_msg#5rc#2<clear>
otake_failed_msg#5rc#2<clear>
take_succeeded_msg#5rc#2<clear>
take_failed_msg#5rc#2<clear>
value_base#102r#2<clear>
damage_base#102r#2<clear>
x_loc#102r#36<clear>
y_loc#102r#36<clear>
ansi_title#102r#36<clear>
obvious#102r#36<clear>
build_help#102rc#2<clear>
key#1c#20
aliases#1rc#2{"Cursed Artifact"}
description#1rc#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#1r#36{0, 0}

Ancestry

Ancestors (nearest first): #5 generic thing#102 subthing#1 Root Class

Children: none

Call graph

calls n177_0 #177:get n6_18 #6:tell n177_0->n6_18 n102_4 #102:title n177_0->n102_4

Source

get take touch

Spec this none noneFlags rxdOwner #2Definer #177

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