subthing #102
Aliases: subthing
7 verbs · 11 properties · 4 children
Verbs
| Verb | Spec | Flags | Definer | Lines |
|---|---|---|---|---|
value | this none this | rxd | #102 | 1 |
init_for_core | this none this | rxd | #102 | 7 |
wield | this none none | rxd | #102 | 22 |
ansi_title | this none this | rxd | #102 | 1 |
title | this none this | rxd | #102 | 1 |
help_msg | this none this | rxd | #102 | 9 |
command-list list-com*mands coml*ist comml*ist lc cl | none none none | rd | #102 | 1 |
Properties
| Property | Definer | Flags | Owner | Value |
|---|---|---|---|---|
value_base | #102 | r | #2 | 0.0 |
damage_base | #102 | r | #2 | 0.0 |
x_loc | #102 | r | #36 | 1 |
y_loc | #102 | r | #36 | 1 |
ansi_title | #102 | r | #36 | {} |
obvious | #102 | r | #36 | 1 |
build_help | #102 | rc | #36 | {} |
key | #1 | c | #2 | 0 |
aliases | #1 | rc | #2 | {"subthing"} |
description | #1 | rc | #2 | <clear> |
object_size | #1 | r | #36 | {3995, 1539462952} |
Ancestry
Ancestors (nearest first): #1 Root Class
Children: #5 generic thing, #6 generic player, #94 Generic Gendered Object, #126 Generic Language
Call graph
Source
value
Referenced by
none
Source
1return this.value_base;
init_for_core
Referenced by
- #6:init_for_core line 2:
pass( - #63:init_for_core line 5:
pass( - #88:init_for_core line 2:
pass( - #107:init_for_core line 5:
pass( - #108:init_for_core line 16:
pass( - #128:init_for_core line 17:
pass( - #131:init_for_core line 15:
pass( - #132:init_for_core line 15:
pass( - #137:init_for_core line 11:
pass( - #138:init_for_core line 16:
pass( - #142:init_for_core line 4:
pass(
Source
1if (caller_perms().wizard) 2if (this == $subthing) 3this.value_base = 0.0; 4this.damage_base = 0.0; 5endif 6return pass(@args); 7endif
wield
Referenced by
none
Source
1if ((this in player.contents) || (this in player.location:contents())) 2if (`this.weapon ! E_PROPNF => 0' && valid(`player.wielded ! E_PROPNF')) 3if (player.wielded == this) 4player:notify("You're already wielding that."); 5elseif (((dex = player.stats_current[2][2]) < 3.0) && (random($math_utils:round(dex)) == 1)) 6$you:say_action("%N %<attempts> to wield %t but %<drops> it instead, hurting %r in the process."); 7player:take_hit(this.damage_base * 0.5); 8else 9player.wielded = this; 10this:moveto(player); 11if (this in player.contents) 12$you:say_action("%N %<wields> %t."); 13else 14player:notify("You can't get that."); 15endif 16endif 17else 18player:notify("That would not make a useful weapon."); 19endif 20else 21player:tell("You find no \"", dobjstr, "\" around."); 22endif
ansi_title
Referenced by
- #102:title line 1:
this:ansi_title - #117:wear_msg line 1:
this:ansi_title - #117:wear_msg line 1:
this:ansi_title
Source
1return (x = this.name in $list_utils:slice(this.ansi_title, 1)) ? this.ansi_title[x][2] | this.name;
title
Referenced by
- #3:-* line 9:
player:title - #3:-* line 19:
player:title - #3:-* line 23:
player:title - #3:-* line 25:
player:title - #5:gi*ve line 14:
this:title - #5:gi*ve line 15:
this:title - #5:examine_key line 6:
this:title - #6:titlec line 1:
this:title - #9:mailme line 12:
this:title - #57:@summon line 15:
player:title - #91:capture line 9:
player:title - #91:tell line 10:
player:title - #91:tell line 20:
player:title - #91:_loot line 8:
player:title - #91:_loot line 10:
player:title - #91:@reset line 24:
player:title - #91:_heal_spell line 27:
player:title - #91:_heal_spell line 28:
player:title - #91:_knowledge_spell line 25:
player:title - #91:_knowledge_spell line 26:
player:title - #91:_enchant_spell line 26:
player:title - #91:_enchant_spell line 28:
player:title - #91:_enchant_spell line 36:
player:title - #91:_enchant_spell line 38:
player:title - #91:_enchant_spell line 45:
player:title - #91:_enchant_spell line 47:
player:title - #91:_sleep_spell line 33:
player:title - #91:_escape_spell line 16:
player:title - #91:_escape_spell line 18:
player:title - #91:_escape_spell line 21:
player:title - #91:_power_spell line 22:
player:title - #91:_power_spell line 23:
player:title - #91:_power_spell line 32:
player:title - #91:_speed_spell line 22:
player:title - #91:_speed_spell line 23:
player:title - #91:_speed_spell line 32:
player:title - #91:_fear_spell line 42:
player:title - #91:_missile_spell line 33:
player:title - #91:_missile_spell line 39:
player:title - #91:_pacify_spell line 39:
player:title - #91:_pacify_spell line 40:
player:title - #91:_pacify_spell line 51:
player:title - #91:_death_spell line 31:
player:title - #91:alc*hemize line 32:
player:title - #91:alc*hemize line 38:
player:title - #95:title line 1:
pass( - #95:title line 1:
pass( - #104:who_do_what line 11:
player:title - #104:who_do_what line 22:
player:title - #107:g*et line 6:
player:title - #107:capture line 7:
player:title - #107:_loot line 10:
player:title - #110:ca*st line 27:
player:title - #110:ca*st line 28:
player:title - #111:ca*st line 27:
player:title - #111:ca*st line 28:
player:title - #112:ca*st line 27:
player:title - #112:ca*st line 28:
player:title - #114:title line 2:
pass( - #116:_loot line 13:
player:title - #116:_loot line 15:
player:title - #120:use line 2:
this:title - #120:use line 3:
this:title - #120:use line 9:
this:title - #122:ca*st line 25:
player:title - #122:ca*st line 26:
player:title - #127:title line 2:
pass( - #127:title line 4:
pass( - #133:donate line 11:
player:title - #134:list line 15:
player:title - #136:ca*st line 25:
player:title - #136:ca*st line 26:
player:title - #145:ca*st line 25:
player:title - #145:ca*st line 26:
player:title - #147:ca*st line 26:
player:title - #147:ca*st line 28:
player:title - #147:ca*st line 39:
player:title - #147:ca*st line 41:
player:title - #147:ca*st line 51:
player:title - #147:ca*st line 53:
player:title - #148:ca*st line 26:
player:title - #148:ca*st line 28:
player:title - #148:ca*st line 42:
player:title - #148:ca*st line 44:
player:title - #148:ca*st line 57:
player:title - #148:ca*st line 59:
player:title - #149:ca*st line 26:
player:title - #149:ca*st line 28:
player:title - #149:ca*st line 35:
player:title - #149:ca*st line 37:
player:title - #149:ca*st line 43:
player:title - #149:ca*st line 45:
player:title - #150:ca*st line 33:
player:title - #151:ca*st line 33:
player:title - #152:ca*st line 33:
player:title - #153:ca*st line 31:
player:title - #154:ca*st line 31:
player:title - #155:ca*st line 31:
player:title - #156:ca*st line 33:
player:title - #156:ca*st line 38:
player:title - #157:ca*st line 33:
player:title - #157:ca*st line 38:
player:title - #158:ca*st line 33:
player:title - #158:ca*st line 38:
player:title - #159:ca*st line 16:
player:title - #159:ca*st line 18:
player:title - #159:ca*st line 21:
player:title - #160:ca*st line 16:
player:title - #160:ca*st line 18:
player:title - #160:ca*st line 21:
player:title - #161:ca*st line 16:
player:title - #161:ca*st line 18:
player:title - #161:ca*st line 21:
player:title - #162:ca*st line 42:
player:title - #164:ca*st line 42:
player:title - #165:ca*st line 42:
player:title - #166:ca*st line 22:
player:title - #166:ca*st line 23:
player:title - #166:ca*st line 31:
player:title - #167:ca*st line 22:
player:title - #167:ca*st line 23:
player:title - #167:ca*st line 31:
player:title - #168:ca*st line 22:
player:title - #168:ca*st line 23:
player:title - #168:ca*st line 31:
player:title - #169:ca*st line 22:
player:title - #169:ca*st line 23:
player:title - #169:ca*st line 31:
player:title - #170:ca*st line 22:
player:title - #170:ca*st line 23:
player:title - #170:ca*st line 31:
player:title - #171:ca*st line 22:
player:title - #171:ca*st line 23:
player:title - #171:ca*st line 31:
player:title - #172:ca*st line 35:
player:title - #172:ca*st line 36:
player:title - #172:ca*st line 46:
player:title - #173:ca*st line 35:
player:title - #173:ca*st line 36:
player:title - #173:ca*st line 46:
player:title - #174:ca*st line 35:
player:title - #174:ca*st line 36:
player:title - #174:ca*st line 46:
player:title - #175:touch line 2:
this:title - #175:touch line 3:
player:title - #175:touch line 3:
this:title - #175:touch line 7:
this:title - #175:touch line 8:
player:title - #175:touch line 8:
this:title - #177:get line 1:
this:title - #177:get line 2:
this:title - #177:get line 2:
player:title
Source
1return this.ansi_title ? this:ansi_title() | this.name;
help_msg
Referenced by
- #123:help_msg line 2:
pass(
Source
1msg = {}; 2if (`this.help_msg ! E_PROPNF => 0') 3msg = (typeof(this.help_msg) == LIST) ? {@this.help_msg, "---"} | {this.help_msg, "---"}; 4endif 5if (`this.build_help ! E_PROPNF => 0' && (!(parent(player) in {$rpgamer, $guest}))) 6msg = (typeof(this.build_help) == LIST) ? {@msg, @this.build_help, "---"} | {@msg, this.build_help, "---"}; 7endif 8msg = (`this.help_msg != parent(this).help_msg ! E_PROPNF => 0' || (`this.build_help != parent(this).build_help ! E_PROPNF => 0' && (!(parent(player) in {$rpgamer, $guest})))) ? {@msg, tostr("Try \"help ", parent(this), "\" also.")} | msg; 9return msg || 0;
command-list list-com*mands coml*ist comml*ist lc cl
Referenced by
none
Source
1`this:tell_lines($string_utils:columnize($rpg_help.comlist, 2)) ! E_VERBNF => {""}';