feat(hs): announce statue spawn coordinates as yellow center message to event players

This commit is contained in:
Acentech Dev
2026-07-21 13:25:02 +03:00
parent d41d46f24f
commit ae68e15f77

View File

@@ -712,6 +712,16 @@ public class HeykelSavasiContext : MiniGameContext
await this._mapInitializer.InitializeSpawnAsync(spawnIndexBase + 1 + i, this.Map, guardSpawnArea, this).ConfigureAwait(false); await this._mapInitializer.InitializeSpawnAsync(spawnIndexBase + 1 + i, this.Map, guardSpawnArea, this).ConfigureAwait(false);
} }
// Statues spawn at random spots, so announce the new statue's coordinates to every event
// player as a yellow center (GoldenCenter) message — only players inside the event see it.
var teamName = defender == HeykelSavasiTeam.Red ? "KIRMIZI" : "MAVI";
var coordMessage = $"{teamName} HEYKEL belirdi! Koordinat: {pos.X} , {pos.Y}";
foreach (var announcePlayer in this.PlayersOf(HeykelSavasiTeam.Red).Concat(this.PlayersOf(HeykelSavasiTeam.Blue)).ToList())
{
await announcePlayer.InvokeViewPlugInAsync<MUnique.OpenMU.GameLogic.Views.IShowMessagePlugIn>(
p => p.ShowMessageAsync(coordMessage, MUnique.OpenMU.Interfaces.MessageType.GoldenCenter)).ConfigureAwait(false);
}
} }
catch (Exception ex) catch (Exception ex)
{ {