Browse Source

updated regen system

lakebane
FatBoy-DOTC 7 days ago
parent
commit
4330bb3ecd
  1. 2
      src/engine/objects/PlayerCharacter.java
  2. 4
      src/engine/server/world/WorldServer.java

2
src/engine/objects/PlayerCharacter.java

@ -5849,6 +5849,8 @@ public class PlayerCharacter extends AbstractCharacter { @@ -5849,6 +5849,8 @@ public class PlayerCharacter extends AbstractCharacter {
boolean workedMana = false;
boolean workedStamina = false;
ChatManager.chatSystemInfo(this,"Recovering Mana: " + manaRegen);
float old, mod;
while (!workedHealth || !workedMana || !workedStamina) {
if (!this.isAlive() || !this.isActive())

4
src/engine/server/world/WorldServer.java

@ -517,8 +517,8 @@ public class WorldServer { @@ -517,8 +517,8 @@ public class WorldServer {
Logger.info("Starting Bane Thread");
BaneThread.startBaneThread();
//Logger.info("Starting Player Update Thread");
//UpdateThread.startUpdateThread();
Logger.info("Starting Player Regen Thread");
UpdateThread.startUpdateThread();
printThreads();

Loading…
Cancel
Save