mirror of
https://github.com/islehorse/HISP.git
synced 2025-04-24 05:35:51 +12:00
Add Isle Card Trading Game (?)
This commit is contained in:
parent
bea24a59a5
commit
13c049e3ff
8 changed files with 219 additions and 37 deletions
|
@ -53,20 +53,8 @@ namespace HISP.Game.Events
|
|||
{
|
||||
ThrownCounter[] winnerCounter = getWinners();
|
||||
resetEvent();
|
||||
// Remove from all online players
|
||||
foreach(GameClient connectedClient in GameServer.ConnectedClients)
|
||||
{
|
||||
if(connectedClient.LoggedIn)
|
||||
if(connectedClient.LoggedinUser.Inventory.HasItemId(Item.WaterBalloon))
|
||||
{
|
||||
InventoryItem invItm = connectedClient.LoggedinUser.Inventory.GetItemByItemId(Item.WaterBalloon);
|
||||
foreach (ItemInstance itm in invItm.ItemInstances.ToArray())
|
||||
connectedClient.LoggedinUser.Inventory.Remove(itm);
|
||||
}
|
||||
}
|
||||
DroppedItems.DeleteAllItemsWithId(Item.WaterBalloon); // Delete all dropped items
|
||||
Database.DeleteAllItemsFromUsers(Item.WaterBalloon); // Delete from offline players
|
||||
|
||||
GameServer.RemoveAllItemsOfIdInTheGame(Item.WaterBalloon);
|
||||
|
||||
// Build event over message
|
||||
string winMsg = Messages.EventEndWaterBalloonGame;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue