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

Fixed archery

git-svn-id: http://svn.net-core.org/repos/t-engine4@6701 51575b47-30f0-44d4-a5cc-537603b46e54
parent c429d6b5
No related branches found
No related tags found
No related merge requests found
......@@ -549,8 +549,8 @@ function _M:hasArcheryWeapon(type)
return nil, "bad ammo"
end
end
if type and weapon.subtype ~= type then return nil, "bad type" end
if type and offweapon and offweapon.subtype ~= type then return nil, "bad type" end
if type and weapon.archery_kind ~= type then return nil, "bad type" end
if type and offweapon and offweapon.archery_kind ~= type then return nil, "bad type" end
return weapon, ammo, offweapon
end
......
......@@ -30,6 +30,7 @@ newEntity{
rarity = 7,
combat = { talented = "bow", sound = "actions/arrow", sound_miss = "actions/arrow",},
require = { talent = { Talents.T_SHOOT }, },
archery_kind = "bow",
archery = "bow",
proj_image = resolvers.image_material("arrow", "wood"),
desc = [[Longbows are used to shoot arrows at your foes.]],
......
......@@ -28,6 +28,7 @@ newEntity{
encumber = 4,
rarity = 7,
combat = { talented = "sling", sound = "actions/sling", sound_miss = "actions/sling", },
archery_kind = "sling",
archery = "sling",
require = { talent = { Talents.T_SHOOT }, },
proj_image = resolvers.image_material("shot_s", "metal"),
......
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