Closed ghost closed 6 years ago
fix for walk speed
add to monster.cs
if (monsterData.Level.Normal >= 0 && monsterData.Level.Normal < monsterLevels.MonsterLevel.Count) { this.Brain = new MonsterBrain(this); this.Attributes[GameAttribute.Level] = monsterData.Level.Normal; this.Attributes[GameAttribute.Hitpoints_Max] = monsterLevels.MonsterLevel[monsterData.Level.Normal].F0; this.Attributes[GameAttribute.Hitpoints_Cur] = this.Attributes[GameAttribute.Hitpoints_Max_Total]; this.Attributes[GameAttribute.Attacks_Per_Second] = 1.0f; this.Attributes[GameAttribute.Damage_Weapon_Min, 0] = 5f; this.Attributes[GameAttribute.Damage_Weapon_Delta, 0] = 5f; this.Attributes[GameAttribute.Walking_Rate] = 1.0f; // TODO: this is probably multiplied by something this.WalkSpeed = 0.4f * monsterData.Floats[129]; // TODO: this is probably multiplied by something } }
Damage_Weapon is probably too multiplied by something. Attack speed would be 1.4f..
fix for walk speed
add to monster.cs
if (monsterData.Level.Normal >= 0 && monsterData.Level.Normal < monsterLevels.MonsterLevel.Count) { this.Brain = new MonsterBrain(this); this.Attributes[GameAttribute.Level] = monsterData.Level.Normal; this.Attributes[GameAttribute.Hitpoints_Max] = monsterLevels.MonsterLevel[monsterData.Level.Normal].F0; this.Attributes[GameAttribute.Hitpoints_Cur] = this.Attributes[GameAttribute.Hitpoints_Max_Total]; this.Attributes[GameAttribute.Attacks_Per_Second] = 1.0f; this.Attributes[GameAttribute.Damage_Weapon_Min, 0] = 5f; this.Attributes[GameAttribute.Damage_Weapon_Delta, 0] = 5f; this.Attributes[GameAttribute.Walking_Rate] = 1.0f; // TODO: this is probably multiplied by something this.WalkSpeed = 0.4f * monsterData.Floats[129]; // TODO: this is probably multiplied by something } }