1
1
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:
Ziemas 2020-07-07 03:32:39 +02:00 committed by GitHub
parent 60e6fcb7ac
commit af0fb11a54
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -60,6 +60,7 @@ func CreateNPC(x, y int, monstat *d2datadict.MonStatsRecord, direction int) *NPC
composite.SetMode("NU", result.monstatEx.BaseWeaponClass) composite.SetMode("NU", result.monstatEx.BaseWeaponClass)
composite.Equip(equipment) composite.Equip(equipment)
result.SetSpeed(float64(monstat.SpeedBase))
result.mapEntity.directioner = result.rotate result.mapEntity.directioner = result.rotate
if result.monstatRecord != nil && result.monstatRecord.IsInteractable { if result.monstatRecord != nil && result.monstatRecord.IsInteractable {