![]() |
blocked on some minor development.
I was trying to get my hand back in to coding for angband.
I am trying to implement this: http://angband.oook.cz/forum/showpos...5&postcount=16 but i am blocked by this: https://github.com/angband/angband/issues/4260 Note: see my final comment on what confuses me: why does each element_info record have an associated bitflag??? Nick, can you explain how element_info is actually used, so i can finish this? It is a pretty easy problem otherwise. |
The bitflag field is for recording how the item itself reacts to the element - so it can contain the EL_INFO_HATES flag if the element can destroy it, or the EL_INFO_IGNORE flag if the element can't destroy it. The HATES flag is assigned to object bases (tvals), and then the IGNORE flag can be applied to exceptions.
|
thanks much. Adding a comment to this effect. Also: if the object gets a random resist, shouldn't it also get set to
obj-init.c:356,362 Code:
obj_info[effect].flags |= EL_INFO_RESIST | EL_INFO_RANDOM; Code:
obj_info[effect].flags |= EL_INFO_RANDOM; |
Quote:
|
Sure, but as written, the object can get destroyed by an element if it has a random resist, but not if it has a default resist. Or that is what it looks like.
|
Quote:
|
All times are GMT +1. The time now is 07:01. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2021, vBulletin Solutions Inc.