generic stat #126

Parent #96Owner #361Flags read, fertileSource hellcore/hellcore.db

Aliases: generic stat

6 verbs · 31 properties · 6 children

Verbs

VerbSpecFlagsDefinerLines
totalthis none thisrxd#12613
flushthis none thisrxd#1269
descriptionthis none thisrxd#12610
dnamethis none thisrxd#1261
can_improvethis none thisrxd#1260
ip_cost_forthis none thisrxd#1260

Properties

PropertyDefinerFlagsOwnerValue
depends_on#96rc#361<clear>
level_names#96rc#361<clear>
abbrev#96rc#361<clear>
improve_rate#96rc#3610.8
improve_msg#96rc#361<clear>
encumbrance_penalty#96rc#361<clear>
defaults_to#96rc#361<clear>
base#96rc#361<clear>
learn_cost_mod#96rc#3611.8
best#96rc#361<clear>
peak_age#96rc#361<clear>
dropoff_age#96rc#36110
daily_gain_who#96rc#361<clear>
daily_gain_data#96rc#361<clear>
private_improve#96rc#361<clear>
min_refresh#96rc#361<clear>
cache_hit#96rc#361<clear>
cache_miss#96rc#361<clear>
min_time_between_ip#96rc#3613600
worlds_best_msg#96rc#361<clear>
teachers#96rc#361<clear>
aliases#1rc#361{"generic stat"}
description#1rc#361<clear>
object_size#1r#29{2811, 1298433815}
hidden_verbs#1rc#361<clear>
phelp_msg#1rc#361<clear>
weight#1rc#361<clear>
owner_verbs#1rc#361<clear>
plural_name#1rc#361<clear>
client_image#1rc#361<clear>
listening#1rc#361<clear>

Ancestry

Ancestors (nearest first): #96 generic skill#1 root

Children: #228 reflexes, #276 cool, #288 brawn, #303 brains, #319 endurance, #323 senses

Call graph

calls n126_0 #126:total n96_30 #96:ip n126_0->n96_30 n126_2 #126:description n96_29 #96:description n126_2->n96_29 n45_23 #45:leaves n126_2->n45_23 n1_39 #1:dnamec n126_2->n1_39 n20_6 #20:english_list n126_2->n20_6

Source

total

Spec this none thisFlags rxdOwner #361Definer #126

Referenced by

none

Source

1":total(OBJ player)";
2"Calculate total skill level for player, taking dependent skills and status effects into account.";
3who = args[1];
4if ((time() - `who.skills[this.name][4] ! E_RANGE => 0') < this.min_refresh)
5this.cache_hit = this.cache_hit + 1;
6return `who.skills[this.name][3] ! E_RANGE => 0';
7endif
8raw = `who.skills[this.name][1] ! E_RANGE => 0';
9total = raw;
10ip = this:ip(who);
11who.skills[this.name] = {raw, ip, total, time()};
12this.cache_miss = this.cache_miss + 1;
13return total;

flush

Spec this none thisFlags rxdOwner #361Definer #126

Referenced by

none

Source

1who = args[1];
2if (this.name in keys(who.skills))
3who.skills[this.name][4] = 0;
4endif
5for x in ($skills.all)
6if (this in x.depends_on)
7x:flush(who);
8endif
9endfor

description

Spec this none thisFlags rxdOwner #361Definer #126

Referenced by

none

Source

1r = pass(@args);
2r = (typeof(r) == LIST) ? r | {r};
3skills = {};
4for x in ($ou:leaves($skill))
5if (this in x.depends_on)
6skills = {@skills, x};
7endif
8endfor
9s = ((((this:dnamec() + " affects the skills ") + $ansi.bold_on) + $su:english_list($lu:map_prop(skills, "name"))) + $ansi.bold_off) + ".";
10return {@r, "", s};

dname

Spec this none thisFlags rxdOwner #361Definer #126

Referenced by

none

Source

1return this.name;

can_improve

Spec this none thisFlags rxdOwner #361Definer #126

Referenced by

none

Source

No program (verb defined but unprogrammed).

ip_cost_for

Spec this none thisFlags rxdOwner #361Definer #126

Referenced by

none

Source

No program (verb defined but unprogrammed).