~hristoast/tes3mp-uniqueitems

7bd7f8279bea9f5f069ecb22fbfb108a9b4d966b — Hristos N. Triantafillou 3 months ago 1e0791d master
Be atomic

... or at least try to.  This will be really great when used with
psql.
1 files changed, 2 insertions(+), 0 deletions(-)

M main.lua
M main.lua => main.lua +2 -0
@@ 155,6 155,7 @@ local function handleDupeUnique(pid, itemName, playerHas)

   player:LoadInventory()
   player:LoadEquipment()
   player:QuicksaveToDrive()
   gameMsg(pid, UniqueItems.config.dupeItemMsg)
end



@@ 189,6 190,7 @@ local function onlyOne(pid, itemName)
      player.data.inventory[itemInvIndex].count = 1
      player:LoadInventory()
      player:LoadEquipment()
      -- TODO: When psql support is added, use QuicksaveToDrive() here
   end
end