B03003 - throwing short swords
<Someone> pointed out a disagreement between the comment and code in throwing_weapon(): comment says daggers & knife can be thrown, but code also allowed short swords. Assuming the comment was correct, changed the code to match.
This commit is contained in:
@@ -821,10 +821,11 @@ throwing_weapon(obj)
|
||||
struct obj *obj;
|
||||
{
|
||||
return (is_missile(obj) || is_spear(obj) ||
|
||||
/* daggers and knife (excludes scalpel) */
|
||||
(is_blade(obj) && (objects[obj->otyp].oc_dir & PIERCE)) ||
|
||||
/* special cases [might want to add AXE] */
|
||||
obj->otyp == WAR_HAMMER || obj->otyp == AKLYS);
|
||||
/* daggers and knife (excludes scalpel) */
|
||||
(is_blade(obj) && !is_sword(obj) &&
|
||||
(objects[obj->otyp].oc_dir & PIERCE)) ||
|
||||
/* special cases [might want to add AXE] */
|
||||
obj->otyp == WAR_HAMMER || obj->otyp == AKLYS);
|
||||
}
|
||||
|
||||
/* the currently thrown object is returning to you (not for boomerangs) */
|
||||
|
||||
Reference in New Issue
Block a user