Skip to content

Commit

Permalink
Transmit max attack speed
Browse files Browse the repository at this point in the history
  • Loading branch information
sven-n committed Oct 18, 2024
1 parent 1ad5937 commit 02f3e11
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ public async ValueTask UpdateCharacterStatsAsync()
return;
}

var maxAttackSpeed = this._player.GameContext.Configuration.Attributes.FirstOrDefault(a => a == Stats.AttackSpeed)?.MaximumValue ?? 200;
await connection.SendCharacterInformationExtendedAsync(
this._player.Position.X,
this._player.Position.Y,
Expand Down Expand Up @@ -66,7 +67,7 @@ await connection.SendCharacterInformationExtendedAsync(
this._player.SelectedCharacter.GetMaximumFruitPoints(),
(ushort)this._player.Attributes[Stats.AttackSpeed],
(ushort)this._player.Attributes[Stats.MagicSpeed],
200, // todo: This is the maximum attack speed, make configurable.
(ushort)maxAttackSpeed,
(byte)this._player.SelectedCharacter.InventoryExtensions)
.ConfigureAwait(false);

Expand Down

0 comments on commit 02f3e11

Please sign in to comment.