From f17df6a08a407d2d1f8888a0f1378f8999e4c01b Mon Sep 17 00:00:00 2001 From: bsarsgard Date: Sun, 18 Jul 2021 17:41:45 -0400 Subject: [PATCH] Add stats to info window (for future use) --- media/lua/client/4_UI/SurvivorInfoWindow.lua | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/media/lua/client/4_UI/SurvivorInfoWindow.lua b/media/lua/client/4_UI/SurvivorInfoWindow.lua index bb5dbdf..907a987 100644 --- a/media/lua/client/4_UI/SurvivorInfoWindow.lua +++ b/media/lua/client/4_UI/SurvivorInfoWindow.lua @@ -86,9 +86,13 @@ function SurvivorInfoWindow:Load(ASuperSurvivor) newText = newText .. getText("Tooltip_food_Hunger")..": " .. tostring(math.floor((player:getStats():getHunger()*100))) .. "\n" newText = newText .. getText("Tooltip_food_Thirst")..": " .. tostring(math.floor((player:getStats():getThirst()*100))) .. "\n" - newText = newText .. "Filth: " .. tostring(math.floor(ASuperSurvivor:getFilth()*100)) .. "\n" + newText = newText .. "Morale: " .. tostring(math.floor(player:getStats():getMorale()*100)) .. "\n" + newText = newText .. "Sanity: " .. tostring(math.floor(player:getStats():getSanity()*100)) .. "\n" newText = newText .. "Boredom: " .. tostring(math.floor(player:getStats():getBoredom()*100)) .. "\n" + newText = newText .. "IdleBoredom: " .. tostring(math.floor(player:getStats():getIdleboredom()*100)) .. "\n" + newText = newText .. "Unhappiness: " .. tostring(math.floor(player:getBodyDamage():getUnhappynessLevel()*100)) .. "\n" newText = newText .. "Wetness: " .. tostring(math.floor(player:getBodyDamage():getWetness()*100)) .. "\n" + newText = newText .. "Filth: " .. tostring(math.floor(ASuperSurvivor:getFilth()*100)) .. "\n" newText = newText .. "\n" @@ -129,6 +133,7 @@ function SurvivorInfoWindow:Load(ASuperSurvivor) newText = newText .. getText("ContextMenu_SD_SurvivorID")..": " .. tostring(ASuperSurvivor:getID()) .. "\n" newText = newText .. getText("ContextMenu_SD_GroupID")..": " .. tostring(ASuperSurvivor:getGroupID()) .. "\n" newText = newText .. getText("ContextMenu_SD_GroupRole")..": " .. tostring(ASuperSurvivor:getGroupRole()) .. "\n" + newText = newText .. "AI mode: " .. tostring(ASuperSurvivor:getAIMode()) .. "\n" self:setText(newText)