Autoquiver fix

Implement a patch which <Someone> posted on the newsgroup back in September:
"If I had my druthers, daggers would be chosen over other
weapons if there's no missiles or suitable ammo available, and weapons
not designed for throwing wouldn't be chosen at all."
This commit is contained in:
kmhugo
2002-01-19 05:34:34 +00:00
parent 5e9505078f
commit d25f67cd0d
+5 -1
View File
@@ -246,8 +246,12 @@ autoquiver()
} else if (is_missile(otmp)) { } else if (is_missile(otmp)) {
/* Missile (dart, shuriken, etc.) */ /* Missile (dart, shuriken, etc.) */
omissile = otmp; omissile = otmp;
} else if (otmp->oclass == WEAPON_CLASS && !is_launcher(otmp)) { } else if (otmp->oclass == WEAPON_CLASS && throwing_weapon(otmp)) {
/* Ordinary weapon */ /* Ordinary weapon */
if (objects[otmp->otyp].oc_skill == P_DAGGER
&& !omissile)
omissile = otmp;
else
omisc = otmp; omisc = otmp;
} }
} }