diff options
author | Jude Brown <bookofjude@users.sourceforge.net> | 2009-12-25 11:10:30 +1000 |
---|---|---|
committer | Jude Brown <bookofjude@users.sourceforge.net> | 2009-12-25 11:10:30 +1000 |
commit | 701f0d3bae53d22d476eeec3d85ee02a26623a66 (patch) | |
tree | 9a63eccee1387fda14b480353d20156f8588dc75 /crawl-ref/source/fight.h | |
parent | fe8e010a8490d8ae9ec26f997a78e869039d382f (diff) | |
download | crawl-ref-701f0d3bae53d22d476eeec3d85ee02a26623a66.tar.gz crawl-ref-701f0d3bae53d22d476eeec3d85ee02a26623a66.zip |
Make auto-travel killing toadstools saner.
Use wielded_weapon_check, though in this instance do not print a prompt.
This means that if you have previously been asked about your weapon and
say yes, it will kill toadstools while autoexploring.
This means no more "Really attack while wielding your bow?" prompts, and
it also should obey no-attack/etc inscriptions.
Diffstat (limited to 'crawl-ref/source/fight.h')
-rw-r--r-- | crawl-ref/source/fight.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/crawl-ref/source/fight.h b/crawl-ref/source/fight.h index 70e29f2a02..2bc47bd030 100644 --- a/crawl-ref/source/fight.h +++ b/crawl-ref/source/fight.h @@ -60,6 +60,7 @@ bool monster_attack(monsters* attacker, bool allow_unarmed = true); bool monsters_fight(monsters* attacker, monsters* attacked, bool allow_unarmed = true); +bool wielded_weapon_check(item_def *weapon, bool no_message = false); int calc_your_to_hit(bool random_factor); int calc_heavy_armour_penalty(bool random_factor); |