Compare commits

...

4 Commits

Author SHA1 Message Date
Anna a0a8ea43cd
chore(client): bump version to 1.2.1 2023-10-13 02:21:39 -04:00
Anna 52128a0209
fix(client): clamp the sending frequency 2023-10-13 02:21:01 -04:00
Anna 9120e6c2e2
chore: bump version to 1.2.0 2023-10-12 01:24:35 -04:00
Anna cf895585ee
feat: update to version 3 2023-10-12 01:24:29 -04:00
2 changed files with 4 additions and 3 deletions

View File

@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<Version>1.1.0</Version>
<Version>1.2.1</Version>
<TargetFramework>net7.0-windows</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>

View File

@ -60,7 +60,8 @@ public sealed class Plugin : IDalamudPlugin {
}
private void FrameworkUpdate(IFramework framework) {
if (this.Stopwatch.Elapsed < TimeSpan.FromSeconds(this.Config.UpdateFrequency) || this.ClientState.LocalPlayer is not { } localPlayer) {
var freq = Math.Max(1, Math.Min(60, this.Config.UpdateFrequency));
if (this.Stopwatch.Elapsed < TimeSpan.FromSeconds(freq) || this.ClientState.LocalPlayer is not { } localPlayer) {
return;
}
@ -111,7 +112,7 @@ public sealed class Plugin : IDalamudPlugin {
// shuffle so first player isn't always local player
players.Shuffle();
var update = new Update(2, territory, localPlayer.CurrentWorld.Id, players);
var update = new Update(3, territory, localPlayer.CurrentWorld.Id, players);
var msgpack = MessagePackSerializer.Serialize(update, MessagePackSerializerOptions.Standard);
using var mem = new MemoryStream();