Skip to content

Commit

Permalink
improve: readability of depot message
Browse files Browse the repository at this point in the history
  • Loading branch information
omarcopires committed Feb 12, 2025
1 parent b84c7a0 commit 3d0f596
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion data/libs/functions/player.lua
Original file line number Diff line number Diff line change
Expand Up @@ -870,7 +870,10 @@ function Player.checkAndSendDepotMessage(self)
depotItems = depotItems + self:getDepotChest(id, true):getItemHoldingCount()
end

self:sendTextMessage(MESSAGE_STATUS, string.format("Your depot contains %d item%s Your supply stash contains %d item%s", depotItems, depotItems ~= 1 and "s." or ".", self:getStashCount(), self:getStashCount() ~= 1 and "s." or "."))
local depotMessage = string.format("Your depot contains %d item%s", depotItems, depotItems ~= 1 and "s." or ".")
local stashMessage = string.format("Your supply stash contains %d item%s", self:getStashCount(), self:getStashCount() ~= 1 and "s." or ".")

self:sendTextMessage(MESSAGE_STATUS, string.format("%s %s", depotMessage, stashMessage))
self:setSpecialContainersAvailable(true, true, true)
return true
end
Expand Down

0 comments on commit 3d0f596

Please sign in to comment.