Skip to content
GitLab
    • GitLab: the DevOps platform
    • Explore GitLab
    • Install GitLab
    • How GitLab compares
    • Get started
    • GitLab docs
    • GitLab Learn
  • Pricing
  • Talk to an expert
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
    • Switch to GitLab Next
    Projects Groups Topics Snippets
  • Register
  • Sign in
  • N NCGDMW-Lua
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributor statistics
    • Graph
    • Compare revisions
    • Locked files
  • Issues 11
    • Issues 11
    • List
    • Boards
    • Service Desk
    • Milestones
    • Iterations
    • Requirements
  • Merge requests 1
    • Merge requests 1
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Artifacts
    • Schedules
    • Test cases
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Container Registry
    • Terraform modules
    • Model experiments
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Code review
    • Insights
    • Issue
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • Modding-OpenMW
  • NCGDMW-Lua
  • Issues
  • #2
Closed
Open
Issue created Apr 02, 2022 by karelm@karelm753

Health does not increase with STR/END/WIL

Health is correctly calculated only after initialization of NCGDMW, subsequent changes of STR/END/WIL does nothing.

My character stats:

Level END STR WIL HP
1 39 38 35 66
10 44 43 39 66
21 50 52 46 66

I think the cause is that healthAttributes is not preserved between saves and therefore recalculate in doHealth() is never true.

When I add the following code at the beginning of doHealth(), everything works.

for _, attr in ipairs({'strength','endurance','willpower'}) do
  if not healthAttributes[attr] then
    healthAttributes[attr] = Player.stats.attributes[attr]
  end
end

(OpenMW git changeset 964f288c138867a3e772dc1bee84afe6fb88ae92)

Assignee
Assign to
Time tracking