feat(hs): announce statue spawn coordinates as yellow center message to event players
This commit is contained in:
@@ -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)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user