This commit is contained in:
lifestorm
2024-08-05 18:40:29 +03:00
parent 9f505a0646
commit c6d9b6f580
8044 changed files with 1853472 additions and 21 deletions

View File

@@ -0,0 +1,23 @@
--[[
| This file was obtained through the combined efforts
| of Madbluntz & Plymouth Antiquarian Society.
|
| Credits: lifestorm, Gregory Wayne Rossel JR.,
| Maloy, DrPepper10 @ RIP, Atle!
|
| Visit for more: https://plymouth.thetwilightzone.ru/
--]]
function PLUGIN:PopulateCharacterInfo(client, character, tooltip)
local visibileItems = client:GetNetVar("visibleItems", {})
for itemName, _ in pairs(visibileItems) do
itemName = L(itemName)
local row = tooltip:AddRow("visibileItem_" .. itemName)
row:SetBackgroundColor(color_white)
row:SetText("They are carrying " .. (itemName[#itemName]:lower() == "s" and "" or itemName:match("^[aeiouAEIOU]") and "an " or "a ") .. itemName .. ".")
row:SizeToContents()
end
end