Send mob stats under the right attribute hashes

The mob message paired Dex with the Spirit hash (0xACB82E33), Int with
the Dexterity hash (0xE07B3336) and Spi with the Intelligence hash
(0xFF665EC3); the inline comments were wrong. Verified with
Hasher.SBStringHash. Mob and NPC now use MBServerStatics.STAT_*_ID.
Value change: the client now gets a mob's Dex, Int and Spi in the right
slots. NPCs send 0 for all five, so no change there.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
MagicBotandClaude Opus 5.5 committed 2026-10-24 11:40:06 -04:00
1 parent 3a1450286f
commit 5c58586f89
2 files changed
+10 -10

No files matched your search

+5 -5
View File
@@ -201,15 +201,15 @@ public class Mob extends AbstractIntelligenceAgent implements Delayed {
//Send Stats
writer.putInt(5);
writer.putInt(0x8AC3C0E6); //Str
writer.putInt(MBServerStatics.STAT_STR_ID);
writer.putInt(mob.statStrCurrent);
writer.putInt(0xACB82E33); //Dex
writer.putInt(MBServerStatics.STAT_DEX_ID);
writer.putInt(mob.statDexCurrent);
writer.putInt(0xB15DC77E); //Con
writer.putInt(MBServerStatics.STAT_CON_ID);
writer.putInt(mob.statConCurrent);
writer.putInt(0xE07B3336); //Int
writer.putInt(MBServerStatics.STAT_INT_ID);
writer.putInt(mob.statIntCurrent);
writer.putInt(0xFF665EC3); //Spi
writer.putInt(MBServerStatics.STAT_SPI_ID);
writer.putInt(mob.statSpiCurrent);
+5 -5
View File
@@ -288,15 +288,15 @@ public class NPC extends AbstractCharacter {
//Send Stats
writer.putInt(5);
writer.putInt(0x8AC3C0E6); //Str
writer.putInt(MBServerStatics.STAT_STR_ID);
writer.putInt(0);
writer.putInt(0xACB82E33); //Dex
writer.putInt(MBServerStatics.STAT_DEX_ID);
writer.putInt(0);
writer.putInt(0xB15DC77E); //Con
writer.putInt(MBServerStatics.STAT_CON_ID);
writer.putInt(0);
writer.putInt(0xE07B3336); //Int
writer.putInt(MBServerStatics.STAT_INT_ID);
writer.putInt(0);
writer.putInt(0xFF665EC3); //Spi
writer.putInt(MBServerStatics.STAT_SPI_ID);
writer.putInt(0);
writer.putString(npc.name);