mirror of
https://github.com/islehorse/HISP.git
synced 2025-04-06 21:25:42 +12:00
implement "view minigames"
This commit is contained in:
parent
4b7313ccdb
commit
dec301d88d
2 changed files with 50 additions and 3 deletions
|
@ -360,7 +360,49 @@ namespace HISP.Game
|
|||
message += Messages.MetaTerminator;
|
||||
return message;
|
||||
}
|
||||
|
||||
public static string BuildMinigamesLibary()
|
||||
{
|
||||
string message = "";
|
||||
message += Messages.MinigameSingleplayer;
|
||||
foreach(World.SpecialTile tile in World.SpecialTiles.OrderBy(o => o.Title))
|
||||
{
|
||||
if(tile.TypeFlag == "1PLAYER")
|
||||
{
|
||||
string mapXy = Messages.FormatMapLocation(tile.X, tile.Y);
|
||||
message += Messages.FormatMinigameEntry(tile.Title, mapXy);
|
||||
}
|
||||
}
|
||||
message += Messages.MinigameTwoplayer;
|
||||
foreach(World.SpecialTile tile in World.SpecialTiles.OrderBy(o => o.Title))
|
||||
{
|
||||
if(tile.TypeFlag == "2PLAYER")
|
||||
{
|
||||
string mapXy = Messages.FormatMapLocation(tile.X, tile.Y);
|
||||
message += Messages.FormatMinigameEntry(tile.Title, mapXy);
|
||||
}
|
||||
}
|
||||
message += Messages.MinigameMultiplayer;
|
||||
foreach(World.SpecialTile tile in World.SpecialTiles.OrderBy(o => o.Title))
|
||||
{
|
||||
if(tile.TypeFlag == "MULTIPLAYER")
|
||||
{
|
||||
string mapXy = Messages.FormatMapLocation(tile.X, tile.Y);
|
||||
message += Messages.FormatMinigameEntry(tile.Title, mapXy);
|
||||
}
|
||||
}
|
||||
message += Messages.MinigameCompetitions;
|
||||
foreach(World.SpecialTile tile in World.SpecialTiles.OrderBy(o => o.Title))
|
||||
{
|
||||
if(tile.TypeFlag == "ARENA")
|
||||
{
|
||||
string mapXy = Messages.FormatMapLocation(tile.X, tile.Y);
|
||||
message += Messages.FormatMinigameEntry(tile.Title, mapXy);
|
||||
}
|
||||
}
|
||||
message += Messages.BackToMap;
|
||||
message += Messages.MetaTerminator;
|
||||
return message;
|
||||
}
|
||||
public static string BuildCompanionLibary()
|
||||
{
|
||||
string message = "";
|
||||
|
|
|
@ -1269,12 +1269,12 @@ namespace HISP.Server
|
|||
sender.SendPacket(metaPacket);
|
||||
}
|
||||
break;
|
||||
case "9": // View Tack
|
||||
case "9": // View Tack (Libary)
|
||||
sender.LoggedinUser.MetaPriority = true;
|
||||
metaPacket = PacketBuilder.CreateMetaPacket(Meta.BuildTackLibary());
|
||||
sender.SendPacket(metaPacket);
|
||||
break;
|
||||
case "10":
|
||||
case "10": // View Companions (Libary)
|
||||
sender.LoggedinUser.MetaPriority = true;
|
||||
metaPacket = PacketBuilder.CreateMetaPacket(Meta.BuildCompanionLibary());
|
||||
sender.SendPacket(metaPacket);
|
||||
|
@ -1289,6 +1289,11 @@ namespace HISP.Server
|
|||
sender.SendPacket(metaPacket);
|
||||
}
|
||||
break;
|
||||
case "12": // View Minigames (Libary)
|
||||
sender.LoggedinUser.MetaPriority = true;
|
||||
metaPacket = PacketBuilder.CreateMetaPacket(Meta.BuildMinigamesLibary());
|
||||
sender.SendPacket(metaPacket);
|
||||
break;
|
||||
case "21": // Private Notes
|
||||
sender.LoggedinUser.MetaPriority = true;
|
||||
metaPacket = PacketBuilder.CreateMetaPacket(Meta.BuildPrivateNotes(sender.LoggedinUser));
|
||||
|
|
Loading…
Add table
Reference in a new issue