Skip to content

Commit

Permalink
NWN2: Load level ability stat
Browse files Browse the repository at this point in the history
  • Loading branch information
rjshae authored and DrMcCoy committed Feb 2, 2019
1 parent ac9847b commit 35509ba
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/engines/nwn2/creature.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -592,6 +592,13 @@ void Creature::loadLevelStats(const Aurora::GFF3Struct &gff,
levelStats.back().hitDice = cLevelStats.getUint("LvlStatHitDie");
levelStats.back().classID = cLevelStats.getUint("LvlStatClass");
levelStats.back().skillPoints = cLevelStats.getUint("SkillPoints");

// Ability to increase
if (cLevelStats.hasField("LvlStatAbility")) {
levelStats.back().ability = cLevelStats.getUint("LvlStatAbility");
} else {
levelStats.back().ability = kAbilityMAX; // Set to an invalid ability
}
}
}

Expand Down

0 comments on commit 35509ba

Please sign in to comment.