new Regen
This commit is contained in:
@@ -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){
|
||||||
|
|||||||
Reference in New Issue
Block a user