Skip to content
Snippets Groups Projects
Commit 21f53016 authored by DarkGod's avatar DarkGod
Browse files

paranoiiaaaa

and bugfix !!!
parent d413b018
No related branches found
No related tags found
No related merge requests found
......@@ -4233,6 +4233,7 @@ newEntity{ base = "BASE_SHOT", --Thanks Grayswandir!
special_on_hit = {desc="50% chance to reload 1 ammo", on_kill=1, fct=function(combat, who, target)
if not rng.percent(50) then return end
local ammo = who:hasAmmo()
if not ammo then return end
ammo.combat.shots_left = util.bound(ammo.combat.shots_left + 1, 0, ammo.combat.capacity)
end},
},
......
......@@ -330,6 +330,7 @@ newTalent{
return true
end,
callbackOnActBase = function(self, t)
if not self.unseenForce then return end
local targets = {}
local grids = core.fov.circle_grids(self.x, self.y, 5, true)
for x, yy in pairs(grids) do
......
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