github issue #1201 - Forcefighting webs

Issue reported by Umbire:  suggestion to always destroy adjacent webs
via 'F'<dir> if wielding Sting or Fire Brand.

Sting already did that; this adds Fire Brand.

This also augments the #untrap command when wielding either of those,
or any other blade.  And rephrases successful untrap message
"You remove {the or your} {bear trap or webbing} from Fido." to
"You extract Fido from {the or your} {bear trap or web}." since the
trap remains intact.

Forcefight and #untrap against webs ought to be reconciled to remove
[some of] their differences and/or share code.  But not by me...

Closes #1201
This commit is contained in:
PatR
2024-01-21 11:58:44 -08:00
parent 81b45f92c8
commit 13ff565a67
4 changed files with 54 additions and 22 deletions

View File

@@ -144,6 +144,7 @@ extern boolean confers_luck(struct obj *) NONNULLPTRS;
extern boolean arti_reflects(struct obj *);
extern boolean shade_glare(struct obj *) NONNULLPTRS;
extern boolean restrict_name(struct obj *, const char *) NONNULLPTRS;
extern boolean attacks(int, struct obj *);
extern boolean defends(int, struct obj *);
extern boolean defends_when_carried(int, struct obj *);
extern boolean protects(struct obj *, boolean);