More reliable stamina calculation

by separately handling immediate one-time cost and cost over time.
This commit is contained in:
gentlespoon
2022-05-07 05:00:50 -07:00
committed by Melledy
parent eb4dabe162
commit 090b00556b
6 changed files with 269 additions and 247 deletions

View File

@@ -1152,7 +1152,7 @@ public class Player {
public void onLogout() {
// stop stamina calculation
getMovementManager().resetTimer();
getMovementManager().stopSustainedStaminaHandler();
// force to leave the dungeon
if (getScene().getSceneType() == SceneType.SCENE_DUNGEON) {