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

fix

git-svn-id: http://svn.net-core.org/repos/t-engine4@6265 51575b47-30f0-44d4-a5cc-537603b46e54
parent 9ca60ba3
No related branches found
No related tags found
No related merge requests found
......@@ -442,7 +442,11 @@ function _M:archeryShoot(targets, talent, tg, params)
end
function _M:archeryDefaultProjectileVisual(weapon, ammo)
return {display=' ', particle="arrow", particle_args={tile="shockbolt/"..(ammo.proj_image or weapon.proj_image):gsub("%.png$", "")}}
if (ammo and ammo.proj_image) or (weapon and weapon.proj_image) then
return {display=' ', particle="arrow", particle_args={tile="shockbolt/"..(ammo.proj_image or weapon.proj_image):gsub("%.png$", "")}}
else
return {display='/'}
end
end
--- Check if the actor has a bow or sling and corresponding ammo
......
......@@ -532,6 +532,7 @@ newEntity{
rarity = 350,
desc = [[The Blood of Life! It can let a living being resurrect in case of an untimely demise. But only once!]],
cost = 1000,
special = true,
use_simple = { name = "quaff the Blood of Life to grant an extra life", use = function(self, who)
game.logSeen(who, "%s quaffs the %s!", who.name:capitalize(), self:getName())
......
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