Files
nethack/include
PatR a6ff7210be fix #H8215 - monster intrinsics from worn gear
Fixes #177

The monst struct has 'mintrinsics' field which attempts to handle
both mon->data->mresists and extrinsics supplied by worn armor, but
polymorph/shape-change was clobbering the extrinsics side of things.
Potentially fixing that by changing newcham() to use set_mon_data(...,1)
instead of (...,0) solved that but exposed two other bugs.  Intrinsics
from the old form carried over to the new form along with extrinsics
from worn armor, and update_mon_intrinsics() for armor being destroyed
or dropped only worked as intended if the armor->owornmask was cleared
beforehand--some places were clearing it after, so extrinsics from worn
gear could persist even after that gear was gone.

So, fixing the set_mon_data() call in newcham() was a no go.  This
fixes update_mon_intrinsics() and adopts the suggested code from
github pull request #177 to have mon->mintrinsics only handle worn
gear instead of trying to overload innate intrinsics with that.  This
is a superset of that; the flag argument to set_mon_data() is gone
and mon->mintrinsics has been renamed mon->mextrinsics.  (The routine
update_mon_intrinsics() ought to be renamed too, but I didn't do that.)
2019-02-18 13:17:14 -08:00
..
2018-11-11 10:29:52 -05:00
2018-09-10 21:13:10 +03:00
2015-05-25 09:21:31 +09:00
2015-05-25 09:21:31 +09:00
2016-10-10 16:18:20 +03:00
2015-05-25 09:21:31 +09:00
2015-05-25 09:21:15 +09:00
2018-11-27 07:38:03 +02:00
2015-10-17 13:15:46 +03:00
2018-04-25 15:00:13 -04:00
2019-01-28 10:02:08 +01:00
2018-04-25 15:00:13 -04:00
2018-04-25 15:00:13 -04:00
2015-05-25 09:21:31 +09:00
2015-05-25 09:21:31 +09:00
2015-05-25 09:21:31 +09:00
2018-04-25 15:00:13 -04:00
2018-12-10 09:00:50 -05:00
2018-12-15 19:31:42 -05:00
2015-05-25 09:21:15 +09:00
2019-02-04 16:46:04 -08:00
2019-01-28 10:02:08 +01:00
2018-04-25 15:00:13 -04:00
2018-04-25 16:54:50 -04:00
2015-05-25 09:21:15 +09:00
2018-04-25 15:00:13 -04:00
2018-04-25 15:00:13 -04:00
2015-10-17 13:15:46 +03:00
2015-11-17 02:26:17 -08:00
2018-04-25 15:00:13 -04:00
2018-04-25 16:54:50 -04:00
2019-01-13 17:19:39 -08:00
2018-04-25 15:00:13 -04:00
2018-04-25 16:54:50 -04:00
2018-04-25 15:00:13 -04:00
2015-05-25 09:21:31 +09:00
2015-05-25 09:21:31 +09:00
2019-01-13 17:19:39 -08:00
2015-05-25 09:21:31 +09:00
2019-01-28 09:44:35 -05:00
2018-04-25 15:00:13 -04:00
2019-01-11 17:18:48 -08:00
2019-01-01 11:48:30 -05:00
2018-10-20 23:14:33 -04:00
2019-01-14 17:10:46 -08:00
2015-05-25 09:21:31 +09:00
2015-05-25 09:21:31 +09:00
2015-11-17 02:26:17 -08:00
2017-10-10 21:47:35 +03:00
2015-05-25 09:21:31 +09:00
2015-05-25 09:21:31 +09:00
2015-10-17 18:47:31 +03:00
2019-01-11 17:18:48 -08:00
2019-01-11 17:18:48 -08:00
2018-12-15 19:27:08 -08:00
2015-05-25 09:21:31 +09:00
2019-02-15 14:10:09 -08:00
2018-04-25 15:00:13 -04:00
2018-04-25 16:54:50 -04:00
2018-04-25 15:00:13 -04:00
2018-12-19 17:52:49 -08:00
2019-01-11 17:18:48 -08:00
2015-05-25 09:21:31 +09:00
2015-05-25 09:21:31 +09:00
2019-02-09 15:30:53 -08:00
2015-05-25 09:21:31 +09:00
2019-02-04 16:46:04 -08:00
2019-02-04 16:46:04 -08:00
2019-02-04 16:46:04 -08:00
2015-05-25 09:21:31 +09:00
2015-05-25 09:21:31 +09:00
2019-01-14 17:10:46 -08:00