Skip to content
Snippets Groups Projects
Commit b8d330c2 authored by Otowa Kotori's avatar Otowa Kotori
Browse files

make ignore_ressources really not use resources

parent e0ec011f
No related branches found
No related tags found
1 merge request!681Misc 1.73 fixes
......@@ -209,7 +209,7 @@ function _M:archeryAcquireTargets(tg, params, force)
end
use_resources = (weapon.use_resources or ammo.combat.use_resources) and table.mergeAdd(table.clone(weapon.use_resources) or {}, ammo.combat.use_resources or {}) or nil
if params.one_shot then -- set up a single shot, using ammo and resources as needed
if use_resources then -- use resources
if not params.ignore_ressources and use_resources then -- use resources
local ok, kind = self:useResources(use_resources)
if not ok then
print("[archeryAcquireTargets runfire] NOT FIRING", realweapon.name, x, y, "due to resource", kind)
......@@ -237,7 +237,7 @@ function _M:archeryAcquireTargets(tg, params, force)
end
for i = 1, params.multishots or 1 do
if use_resources then -- use resources
if not params.ignore_ressources and use_resources then -- use resources
local ok, kind = self:useResources(use_resources)
if not ok then
print("[archeryAcquireTargets runfire] NOT FIRING", realweapon.name, x, y, "due to resource", kind)
......
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