configurable attacks per second

This commit is contained in:
Lucca Faria Ferri 2023-07-26 07:13:28 -07:00
parent 607a46cbfd
commit 536fa101ca
2 changed files with 10 additions and 3 deletions

View File

@ -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];

View File

@ -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();