diff --git a/src/DiIiS-NA/D3-GameServer/GSSystem/ActorSystem/Monster.cs b/src/DiIiS-NA/D3-GameServer/GSSystem/ActorSystem/Monster.cs index 59e7373..73208bb 100644 --- a/src/DiIiS-NA/D3-GameServer/GSSystem/ActorSystem/Monster.cs +++ b/src/DiIiS-NA/D3-GameServer/GSSystem/ActorSystem/Monster.cs @@ -71,7 +71,7 @@ namespace DiIiS_NA.GameServer.GSSystem.ActorSystem //WalkSpeed /= 2f; Brain = new MonsterBrain(this); - Attributes[GameAttributes.Attacks_Per_Second] = 1.2f; + Attributes[GameAttributes.Attacks_Per_Second] = GameModsConfig.Instance.Monster.AttacksPerSecond;// 1.2f; UpdateStats(); } @@ -190,7 +190,6 @@ namespace DiIiS_NA.GameServer.GSSystem.ActorSystem int count = player.World.Game.Players.Count; if (count > 0 && _adjustedPlayers != count) { - // TODO: add modifiers for difficulty settings? Attributes[GameAttributes.Damage_Weapon_Min, 0] = _nativeDmg * (1f + (0.05f * (count - 1) * player.World.Game.Difficulty)); Attributes[GameAttributes.Hitpoints_Max] = _nativeHp * (1f + ((0.75f + (0.1f * player.World.Game.Difficulty)) * (count - 1))); Attributes[GameAttributes.Hitpoints_Cur] = Attributes[GameAttributes.Hitpoints_Max_Total]; diff --git a/src/DiIiS-NA/D3-GameServer/GameModsConfig.cs b/src/DiIiS-NA/D3-GameServer/GameModsConfig.cs index 5863cd2..90cf18e 100644 --- a/src/DiIiS-NA/D3-GameServer/GameModsConfig.cs +++ b/src/DiIiS-NA/D3-GameServer/GameModsConfig.cs @@ -52,6 +52,14 @@ public class HealthDamageMultiplier public float DamageMultiplier { get; set; } = 1; } +public class MonsterConfig +{ + public float AttacksPerSecond { get; set; } = 1.2f; + + public float HealthMultiplier { get; set; } = 1; + public float DamageMultiplier { get; set; } = 1; +} + public class QuestConfig { public bool AutoSave { get; set; } = false; @@ -98,7 +106,7 @@ public class GameModsConfig { public RateConfig Rate { get; set; } = new(); public HealthConfig Health { get; set; } = new(); - public HealthDamageMultiplier Monster { get; set; } = new(); + public MonsterConfig Monster { get; set; } = new(); public HealthDamageMultiplier Boss { get; set; } = new(); public QuestConfig Quest { get; set; } = new(); public PlayerConfig Player { get; set; } = new();