generic stat #126
Aliases: generic stat
6 verbs · 31 properties · 6 children
Verbs
| Verb | Spec | Flags | Definer | Lines |
|---|---|---|---|---|
total | this none this | rxd | #126 | 13 |
flush | this none this | rxd | #126 | 9 |
description | this none this | rxd | #126 | 10 |
dname | this none this | rxd | #126 | 1 |
can_improve | this none this | rxd | #126 | 0 |
ip_cost_for | this none this | rxd | #126 | 0 |
Properties
| Property | Definer | Flags | Owner | Value |
|---|---|---|---|---|
depends_on | #96 | rc | #361 | <clear> |
level_names | #96 | rc | #361 | <clear> |
abbrev | #96 | rc | #361 | <clear> |
improve_rate | #96 | rc | #361 | 0.8 |
improve_msg | #96 | rc | #361 | <clear> |
encumbrance_penalty | #96 | rc | #361 | <clear> |
defaults_to | #96 | rc | #361 | <clear> |
base | #96 | rc | #361 | <clear> |
learn_cost_mod | #96 | rc | #361 | 1.8 |
best | #96 | rc | #361 | <clear> |
peak_age | #96 | rc | #361 | <clear> |
dropoff_age | #96 | rc | #361 | 10 |
daily_gain_who | #96 | rc | #361 | <clear> |
daily_gain_data | #96 | rc | #361 | <clear> |
private_improve | #96 | rc | #361 | <clear> |
min_refresh | #96 | rc | #361 | <clear> |
cache_hit | #96 | rc | #361 | <clear> |
cache_miss | #96 | rc | #361 | <clear> |
min_time_between_ip | #96 | rc | #361 | 3600 |
worlds_best_msg | #96 | rc | #361 | <clear> |
teachers | #96 | rc | #361 | <clear> |
aliases | #1 | rc | #361 | {"generic stat"} |
description | #1 | rc | #361 | <clear> |
object_size | #1 | r | #29 | {2811, 1298433815} |
hidden_verbs | #1 | rc | #361 | <clear> |
phelp_msg | #1 | rc | #361 | <clear> |
weight | #1 | rc | #361 | <clear> |
owner_verbs | #1 | rc | #361 | <clear> |
plural_name | #1 | rc | #361 | <clear> |
client_image | #1 | rc | #361 | <clear> |
listening | #1 | rc | #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
Source
total
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
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
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
Referenced by
none
Source
1return this.name;
can_improve
Referenced by
none
Source
No program (verb defined but unprogrammed).
ip_cost_for
Referenced by
none
Source
No program (verb defined but unprogrammed).