mirror of
https://bitbucket.org/Ioncannon/project-meteor-server.git
synced 2025-06-08 13:34:38 +02:00
Reworked the inventory system so that each inventory type is contained in it's own "Inventory" object. Also, fixed the Inventory packets being all malformed.
This commit is contained in:
parent
df2ac1fb32
commit
69b34fdce7
10 changed files with 187 additions and 223 deletions
|
@ -16,6 +16,7 @@ using FFXIVClassic_Map_Server.packets.send;
|
|||
using FFXIVClassic_Map_Server.dataobjects.chara;
|
||||
using FFXIVClassic_Map_Server.Actors;
|
||||
using FFXIVClassic_Map_Server.lua;
|
||||
using FFXIVClassic_Map_Server.actors.chara.player;
|
||||
|
||||
namespace FFXIVClassic_Lobby_Server
|
||||
{
|
||||
|
@ -411,14 +412,14 @@ namespace FFXIVClassic_Lobby_Server
|
|||
if (client != null)
|
||||
{
|
||||
Player p = client.getActor();
|
||||
p.addItem(itemId, 0, 1, 1);
|
||||
p.inventories[Inventory.NORMAL].addItem(itemId, 0, 1, 1);
|
||||
}
|
||||
else
|
||||
{
|
||||
foreach (KeyValuePair<uint, ConnectedPlayer> entry in mConnectedPlayerList)
|
||||
{
|
||||
Player p = entry.Value.getActor();
|
||||
p.addItem(itemId, 0, 1, 1);
|
||||
p.inventories[Inventory.NORMAL].addItem(itemId, 0, 1, 1);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue