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:
+5
-1
@@ -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;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user