Index: binaries/data/mods/public/gui/session/menu.js =================================================================== --- binaries/data/mods/public/gui/session/menu.js +++ binaries/data/mods/public/gui/session/menu.js @@ -1247,10 +1247,15 @@ function formatTributeTooltip(playerID, resourceCode, amount) { - return sprintf(translate("Tribute %(resourceAmount)s %(resourceType)s to %(playerName)s. Shift-click to tribute %(greaterAmount)s."), { + return sprintf(translate("Tribute %(resourceAmount)s %(resourceType)s to %(playerName)s. Shift-click to tribute %(greaterAmount)s.%(stock)s"), { "resourceAmount": amount, "resourceType": resourceNameWithinSentence(resourceCode), "playerName": colorizePlayernameByID(playerID), - "greaterAmount": amount < 500 ? 500 : amount + 500 + "greaterAmount": amount < 500 ? 500 : amount + 500, + "stock": g_Players[playerID].team == g_Players[g_ViewedPlayer].team ? sprintf( + translate("\n%(type)s Stock: %(stock)s"), { + "stock": Math.round(GetSimState().players[playerID].resourceCounts[resourceCode]), + "type": resourceNameWithinSentence(resourceCode) }) + : "" }); }