Skip to content

Added Quick Regen#1170

Open
tylerreese543-lab wants to merge 3 commits intosmartcmd:mainfrom
tylerreese543-lab:saturation-regeneration
Open

Added Quick Regen#1170
tylerreese543-lab wants to merge 3 commits intosmartcmd:mainfrom
tylerreese543-lab:saturation-regeneration

Conversation

@tylerreese543-lab
Copy link

Description

Added quick regeneration to the player code. A certain level of hunger/saturation are required for quickRegen to be enabled.

Changes

Previous Behavior

Did not heal according to saturation.

Root Cause

No code healed the player based on quick regen.

New Behavior

Now quick regen works.

Fix Implementation

Added new code in the player::aiStep to query saturation levels and subtract them in each heal. Operates on the same 3 saturation:half heart ratio as in modern LCE.

AI Use Disclosure

Related Issues

  • Fixes #[issue-number]
  • Related to #[issue-number]

tylerreese543-lab and others added 3 commits March 11, 2026 20:36
Just realized you need full hunger for quick regen (oops)
co-author helped me match the code to the Java decomp. Works perfectly in parity with Java.

Co-Authored-By: Alexandra-Myers <78748498+alexandra-myers@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant