From cd8cb1acb3953f7b2e8899a234119a47357b3a78 Mon Sep 17 00:00:00 2001 From: TheManii Date: Wed, 6 Apr 2016 16:28:24 -0700 Subject: [PATCH] Made give/removecurrency consistant with help description --- FFXIVClassic Map Server/CommandProcessor.cs | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/FFXIVClassic Map Server/CommandProcessor.cs b/FFXIVClassic Map Server/CommandProcessor.cs index c48e57c5..2bc8453c 100644 --- a/FFXIVClassic Map Server/CommandProcessor.cs +++ b/FFXIVClassic Map Server/CommandProcessor.cs @@ -26,6 +26,10 @@ namespace FFXIVClassic_Lobby_Server private static WorldManager mWorldManager = Server.getWorldManager(); private static Dictionary gamedataItems = Server.getItemGamedataList(); + // For the moment, this is the only predefined item + // TODO: make a list/enum in the future so that items can be given by name, instead of by id + const UInt32 ITEM_GIL = 1000001; + public CommandProcessor(Dictionary playerList) { mConnectedPlayerList = playerList; @@ -606,7 +610,7 @@ namespace FFXIVClassic_Lobby_Server try { if (split.Length == 2) - giveCurrency(client, UInt32.Parse(split[1]), 1); + giveCurrency(client, ITEM_GIL, Int32.Parse(split[1])); else if (split.Length == 3) giveCurrency(client, UInt32.Parse(split[1]), Int32.Parse(split[2])); } @@ -623,7 +627,7 @@ namespace FFXIVClassic_Lobby_Server try { if (split.Length == 2) - removeCurrency(client, UInt32.Parse(split[1]), 1); + removeCurrency(client, ITEM_GIL, Int32.Parse(split[1])); else if (split.Length == 3) removeCurrency(client, UInt32.Parse(split[1]), Int32.Parse(split[2])); return true;