new Regen

This commit is contained in:
2025-02-13 21:37:22 -06:00
parent b79c827d81
commit b5fbc8478d
+3 -2
View File
@@ -1006,7 +1006,7 @@ public class PlayerCombatStats {
if(mod <= 0) if(mod <= 0)
mod = 0; mod = 0;
if(mod == 0){ if(mod == 0){
healthConsume(pc, (int) (deltaTime * 0.6f * 2.5f)); healthConsume(pc, (int) (consumed * 2.5f));
}else { }else {
while (!worked) { while (!worked) {
worked = pc.stamina.compareAndSet(current,mod); worked = pc.stamina.compareAndSet(current,mod);
@@ -1020,7 +1020,8 @@ public class PlayerCombatStats {
float current = pc.health.get(); float current = pc.health.get();
float mod = current - amount; float mod = current - amount;
if(mod <= 0){ if(mod <= 0){
pc.killCharacter("water"); if (pc.isAlive.compareAndSet(true, false))
pc.killCharacter("Water");
return; return;
} }
while(!worked){ while(!worked){