OpenMW
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Functions
anonymous_namespace{npc.cpp} Namespace Reference

Functions

int is_even (double d)
 
int round_ieee_754 (double d)
 
void autoCalculateAttributes (const ESM::NPC *npc, MWMechanics::CreatureStats &creatureStats)
 
void autoCalculateSkills (const ESM::NPC *npc, MWMechanics::NpcStats &npcStats, const MWWorld::Ptr &ptr)
 autoCalculateSkills More...
 

Function Documentation

void anonymous_namespace{npc.cpp}::autoCalculateAttributes ( const ESM::NPC npc,
MWMechanics::CreatureStats creatureStats 
)

Here is the call graph for this function:

Here is the caller graph for this function:

void anonymous_namespace{npc.cpp}::autoCalculateSkills ( const ESM::NPC npc,
MWMechanics::NpcStats npcStats,
const MWWorld::Ptr ptr 
)

autoCalculateSkills

Skills are calculated with following formulae ( http://www.uesp.net/wiki/Morrowind:NPCs#Skills ):

Skills: (Level - 1) × (Majority Multiplier + Specialization Multiplier)

    The Majority Multiplier is 1.0 for a Major or Minor Skill, or 0.1 for a Miscellaneous Skill.

    The Specialization Multiplier is 0.5 for a Skill in the same Specialization as the class,
    zero for other Skills.

and by adding class, race, specialization bonus.

Here is the call graph for this function:

Here is the caller graph for this function:

int anonymous_namespace{npc.cpp}::is_even ( double  d)

Here is the caller graph for this function:

int anonymous_namespace{npc.cpp}::round_ieee_754 ( double  d)

Here is the call graph for this function:

Here is the caller graph for this function: