From af0fb11a5458fa51daa47f258417f600f6ce76af Mon Sep 17 00:00:00 2001 From: Ziemas Date: Tue, 7 Jul 2020 03:32:39 +0200 Subject: [PATCH] Apply NPC speed from monsats (#551) --- d2core/d2map/d2mapentity/npc.go | 1 + 1 file changed, 1 insertion(+) diff --git a/d2core/d2map/d2mapentity/npc.go b/d2core/d2map/d2mapentity/npc.go index 85bc6fb2..6f9d7252 100644 --- a/d2core/d2map/d2mapentity/npc.go +++ b/d2core/d2map/d2mapentity/npc.go @@ -60,6 +60,7 @@ func CreateNPC(x, y int, monstat *d2datadict.MonStatsRecord, direction int) *NPC composite.SetMode("NU", result.monstatEx.BaseWeaponClass) composite.Equip(equipment) + result.SetSpeed(float64(monstat.SpeedBase)) result.mapEntity.directioner = result.rotate if result.monstatRecord != nil && result.monstatRecord.IsInteractable {