Skip to content
Snippets Groups Projects
Commit afcb6709 authored by dg's avatar dg
Browse files

Ammo counter added to the left pane

git-svn-id: http://svn.net-core.org/repos/t-engine4@2158 51575b47-30f0-44d4-a5cc-537603b46e54
parent b361e70f
No related branches found
No related tags found
No related merge requests found
......@@ -156,6 +156,11 @@ function _M:display()
s:erase(176 / 2, 196 / 2, 222 / 2, 255, self.bars_x, h, self.bars_w * math.min(1, math.log(1 + player:getParadox() / 100)), self.font_h)
self:mouseTooltip(self.TOOLTIP_PARADOX, s:drawColorStringBlended(self.font, ("#LIGHT_STEEL_BLUE#Paradox: #ffffff#%d"):format(player:getParadox()), 0, h, 255, 255, 255)) h = h + self.font_h
end
local ammo = player:getInven("QUIVER")[1]
if ammo then
self:mouseTooltip(self.TOOLTIP_COMBAT_AMMO, s:drawColorStringBlended(self.font, ("#ANTIQUE_WHITE#Ammo: #ffffff#%d"):format(ammo:getNumber()), 0, h, 255, 255, 255)) h = h + self.font_h
end
if savefile_pipe.saving then
h = h + self.font_h
s:erase(0x68 / 6, 0x72 / 6, 0x00 / 6, 255, self.bars_x, h, self.bars_w, self.font_h)
......
......@@ -151,6 +151,11 @@ The lower it is the faster your attacks are.
TOOLTIP_COMBAT_RANGE = [[#GOLD#Firing range#LAST#
The maximun distance your weapon can reach.
]]
TOOLTIP_COMBAT_AMMO = [[#GOLD#Ammo remaining#LAST#
This is the amount of ammo you have left.
Bows and sling have a "basic" infinite ammo so you can fire even when this reaches 0.
Alchemists use gems to throw bombs, they require ammo.
]]
-------------------------------------------------------------
-- Defense
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment