From 713a52f705495f0211780e4242914be80f9ab114 Mon Sep 17 00:00:00 2001 From: MagicBot Date: Tue, 2 Apr 2024 13:09:24 -0400 Subject: [PATCH] Serialize current stats --- src/engine/objects/Mob.java | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/src/engine/objects/Mob.java b/src/engine/objects/Mob.java index 2e36b35d..6949a7a3 100644 --- a/src/engine/objects/Mob.java +++ b/src/engine/objects/Mob.java @@ -202,17 +202,18 @@ public class Mob extends AbstractIntelligenceAgent implements Delayed { writer.putInt(mob.currentID); //Send Stats + writer.putInt(5); writer.putInt(0x8AC3C0E6); //Str - writer.putInt(0); + writer.putInt(mob.statStrCurrent); writer.putInt(0xACB82E33); //Dex - writer.putInt(0); + writer.putInt(mob.statDexCurrent); writer.putInt(0xB15DC77E); //Con - writer.putInt(0); + writer.putInt(mob.statConCurrent); writer.putInt(0xE07B3336); //Int - writer.putInt(0); + writer.putInt(mob.statIntCurrent); writer.putInt(0xFF665EC3); //Spi - writer.putInt(0); + writer.putInt(mob.statSpiCurrent); writer.putString(mob.firstName); @@ -703,7 +704,7 @@ public class Mob extends AbstractIntelligenceAgent implements Delayed { float strVal = this.mobBase.getMobBaseStats().getBaseStr(); float dexVal = this.mobBase.getMobBaseStats().getBaseDex(); - float conVal = 0; // I believe this will desync the Mobs Health if we call it. + float conVal = this.mobBase.getMobBaseStats().getBaseCon(); float intVal = this.mobBase.getMobBaseStats().getBaseInt(); float spiVal = this.mobBase.getMobBaseStats().getBaseSpi();