[Package Index | Mudlib Index | Effect Index]

File /obj/handlers/change_skills.c

Handles updating the skill systems to new levels when the skill tree is changed.

See also:
/std/living/skills.c

Written by Deutha

Includes

This class includes the following files /include/obj_parser.h, /include/cmds/teach.h, /include/login_handler.h, /include/cmds/options.h, /include/combat.h, /include/tune.h, /include/player_handler.h, /include/playtesters.h, /include/player.h, /include/language.h and /include/skills.h

Method index

Public Functions

These are functions that everyone can access.

change_language_skills
void change_language_skills(object thing,
                            int lev)

Changes the skill array up to the new tree involving the languages.

Parameters:
thing - the object to upgrade
lev - the level we are changing up to.


change_skills
void change_skills(object thing)

Update the skills from the original skills system to the beta skills system.

Parameters:
thing - the person to update


change_skills_epsilon
void change_skills_epsilon(object thing)

Update the skills from the original skills system to the beta skills system.

Parameters:
thing - the person to update


change_skills_eta
void change_skills_eta(object thing)
change_skills_theta
void change_skills_theta(object thing)
change_skills_zeta
void change_skills_zeta(object thing)

Change everyones skill levels (downwards).

Parameters:
thing - the person to update


chomp
string chomp(string str)
entering
void entering(string name,
              string type)

Called by the login handler, checks to see if an upgrade is neede.

Parameters:
name - the name of the player logging in
type - the type of the login

See also:
/obj/handlers/login_handler.c


fixup_stats
void fixup_stats(object thing)
new_skill_value
int new_skill_value(int sk)

Calulate the new skill value for the skills version zeta
query_minimum_skill_xp
int query_minimum_skill_xp(int lvl)

Figure out thge minimum amount of xp that could have been used to get the skill level. This assumes a leaf skill This appears to be the xp equation. Using it anyway...

Parameters:
lvl - the level to get to

Returns:
the skill cost in xp


query_version
string query_version()

The current version of the skill tree.

Returns:
the version of the skill system


recalc_parents
mapping recalc_parents(mapping skills,
                       string skill)