diff options
author | Nicholas Feinberg <pleasingfung@gmail.com> | 2014-06-13 20:40:08 -0700 |
---|---|---|
committer | Nicholas Feinberg <pleasingfung@gmail.com> | 2014-06-13 20:40:08 -0700 |
commit | 64ebc5910fabcb5ad9e9b1813df24c2ff9cb71c6 (patch) | |
tree | 9f0a0e6f2e9b8153ba2f6b7fac5bbd6485009c2d /crawl-ref/source/mon-ench.cc | |
parent | d68dae0310a964cbd288c926be2c870d753994b0 (diff) | |
download | crawl-ref-64ebc5910fabcb5ad9e9b1813df24c2ff9cb71c6.tar.gz crawl-ref-64ebc5910fabcb5ad9e9b1813df24c2ff9cb71c6.zip |
Tidy up some web/net behaviour
Monsters should now try to escape from Arachne's
ensnare immediately (on whatever incredibly rare
occasions that is relevant), and shouldn't try to
break out of net traps on the turn they get netted.
This technically breaks save compat with the old
newly_webbed prop, but in a harmless way.
Diffstat (limited to 'crawl-ref/source/mon-ench.cc')
-rw-r--r-- | crawl-ref/source/mon-ench.cc | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/crawl-ref/source/mon-ench.cc b/crawl-ref/source/mon-ench.cc index cff49f711e..d75b3afb8a 100644 --- a/crawl-ref/source/mon-ench.cc +++ b/crawl-ref/source/mon-ench.cc @@ -679,6 +679,9 @@ void monster::remove_enchantment_effect(const mon_enchant &me, bool quiet) { free_stationary_net(net); + if (props.exists(NEWLY_TRAPPED_KEY)) + props.erase(NEWLY_TRAPPED_KEY); + if (!quiet) simple_monster_message(this, " breaks free."); } |