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

Archery low ammo reminder does not identify ammo

git-svn-id: http://svn.net-core.org/repos/t-engine4@2157 51575b47-30f0-44d4-a5cc-537603b46e54
parent ae468f95
No related branches found
No related tags found
No related merge requests found
......@@ -297,7 +297,7 @@ function _M:syncOnline(module)
end
function _M:newProfile(Login, Name, Password, Email)
print("[ONLINE PROFILE] profile options ", Login, Email, Name, Password)
print("[ONLINE PROFILE] profile options ", Login, Email, Name)
local data = self:rpc{action="NewProfile2", login=Login, email=Email, name=Name, pass=Password}
if not data then print("[ONLINE PROFILE] could not create") return end
print("[ONLINE PROFILE] profile id ", data.id)
......@@ -307,7 +307,7 @@ end
function _M:performlogin(login, pass, name, email)
self.login=login
self.pass=pass
print("[ONLINE PROFILE] attempting log in ", self.login, self.pass)
print("[ONLINE PROFILE] attempting log in ", self.login)
self:tryAuth()
if (profile.auth) then
self.generic.online = { login=login, pass=pass,name=name or "", email=email or "" }
......
......@@ -365,7 +365,7 @@ function _M:getTextualDesc()
desc:add(("Allows you to breathe in: %s."):format(table.concat(ts, ',')), true)
end
if w.combat_critical_power then desc:add(("Increases critical damage modifier: +%d%%."):format(w.combat_critical_power), true) end
if w.combat_critical_power then desc:add(("Increases critical damage modifier: +%0.2f%%."):format(w.combat_critical_power), true) end
if w.disarm_bonus then desc:add(("Increases trap disarming bonus: %d."):format(w.disarm_bonus), true) end
if w.inc_stealth then desc:add(("Increases stealth bonus: %d."):format(w.inc_stealth), true) end
......
......@@ -106,7 +106,7 @@ function _M:archeryAcquireTargets(tg, params)
if sound then game:playSoundNear(targets[1], sound) end
if not ammo.infinite and (ammo:getNumber() < 10 or ammo:getNumber() == 50 or ammo:getNumber() == 40 or ammo:getNumber() == 25) then
game.logPlayer(self, "You only have %d %s left!", ammo:getNumber(), ammo.name)
game.logPlayer(self, "You only have %s left!", ammo:getName{do_color=true})
end
return targets
......
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