|
OpenMW
|
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... | |
| void anonymous_namespace{npc.cpp}::autoCalculateAttributes | ( | const ESM::NPC * | npc, |
| MWMechanics::CreatureStats & | creatureStats | ||
| ) |
| 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.
| int anonymous_namespace{npc.cpp}::is_even | ( | double | d | ) |
| int anonymous_namespace{npc.cpp}::round_ieee_754 | ( | double | d | ) |
1.8.6