Browse Source

Serialize current stats

combat-2
MagicBot 8 months ago
parent
commit
713a52f705
  1. 13
      src/engine/objects/Mob.java

13
src/engine/objects/Mob.java

@ -202,17 +202,18 @@ public class Mob extends AbstractIntelligenceAgent implements Delayed { @@ -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 { @@ -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();

Loading…
Cancel
Save