mirror of
https://github.com/OpenDiablo2/OpenDiablo2
synced 2024-11-18 02:16:23 -05:00
Apply NPC speed from monsats (#551)
This commit is contained in:
parent
60e6fcb7ac
commit
af0fb11a54
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user