mirror of
https://bitbucket.org/Ioncannon/project-meteor-server.git
synced 2025-05-20 08:26:59 -04:00
More inventory fixing after I broke it. Added preliminary final trade code. Moved recalc stats to the end of equipcommand, not on every modification of the referred item package.
This commit is contained in:
@@ -69,6 +69,8 @@ function onEventStarted(player, actor, triggerName, equippedItem, param1, param2
|
||||
end
|
||||
end
|
||||
|
||||
player.CalculateBaseStats(); --player.RecalculateStats();
|
||||
|
||||
player:EndEvent();
|
||||
end
|
||||
|
||||
|
@@ -55,7 +55,7 @@ function onEventStarted(player, actor, triggerName)
|
||||
--Check if both accepted the trade
|
||||
if (player:IsTradeAccepted() and player:GetOtherTrader():IsTradeAccepted()) then
|
||||
callClientFunction(player, "delegateCommand", GetStaticActor("TradeExecuteCommand"), "processTradeCommandCloseTray");
|
||||
GetWorldManager():SwapTradedItems(player, player:GetOtherTrader());
|
||||
GetWorldManager():CompleteTrade(player, player:GetOtherTrader());
|
||||
break;
|
||||
end
|
||||
|
||||
|
Reference in New Issue
Block a user