subthing #102
Aliases: subthing
7 verbs · 12 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 | {4303, -1090650497} |
html | #1 | rc | #2 | <clear> |
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') ! ANY => 0') 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:title line 2:
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 - #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 - #109:title line 2:
pass( - #109:title line 3:
pass( - #114:title line 2:
pass( - #116:_loot line 13:
player:title - #116:_loot line 15:
player:title - #120:use line 4:
this:title - #120:use line 5:
this:title - #120:use line 11:
this:title - #127:title line 2:
pass( - #127:title line 4:
pass( - #133:donate line 11:
player:title - #134:list line 15:
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 => {""}';