Take mob scale from the race rune instead of static_npc_mobbase.scale
The client builds a mob's scale from its race rune SCALEFACTOR (ArcCharacter_BuildCharFromRune 0x458160) and overwrites the three floats the server sends, so the DB column (always 1) never had a visible effect. MobBase now holds rune_scale_factor (1,1,1 when absent) and the mob message sends it. No client-visible change. The column drop is sql/3.7-mobbase-scale-drop.sql, to run after this build is deployed. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
236bddc93b
commit
3a1450286f
2 files changed
+9
-6
No files matched your search
@@ -227,9 +227,9 @@ public class Mob extends AbstractIntelligenceAgent implements Delayed {
|
||||
writer.putInt(mob.currentID);
|
||||
|
||||
if (mob.mobBase != null) {
|
||||
writer.putFloat(mob.mobBase.getScale());
|
||||
writer.putFloat(mob.mobBase.getScale());
|
||||
writer.putFloat(mob.mobBase.getScale());
|
||||
writer.putFloat(mob.mobBase.getScale().x);
|
||||
writer.putFloat(mob.mobBase.getScale().y);
|
||||
writer.putFloat(mob.mobBase.getScale().z);
|
||||
} else {
|
||||
writer.putFloat(1.0f);
|
||||
writer.putFloat(1.0f);
|
||||
|
||||
Reference in new issue
Block a user