![]() |
#1 |
Prophet
Join Date: Apr 2007
Location: Seattle, WA
Posts: 5,985
Donated: $40
![]() |
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. |
![]() |
![]() |
![]() |
#2 |
Vanilla maintainer
Join Date: Apr 2007
Location: Canberra, Australia
Age: 55
Posts: 8,657
Donated: $60
![]() |
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.
__________________
One for the Dark Lord on his dark throne In the Land of Mordor where the Shadows lie. |
![]() |
![]() |
![]() |
#3 |
Prophet
Join Date: Apr 2007
Location: Seattle, WA
Posts: 5,985
Donated: $40
![]() |
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; |
![]() |
![]() |
![]() |
#4 | |
Vanilla maintainer
Join Date: Apr 2007
Location: Canberra, Australia
Age: 55
Posts: 8,657
Donated: $60
![]() |
Quote:
__________________
One for the Dark Lord on his dark throne In the Land of Mordor where the Shadows lie. |
|
![]() |
![]() |
![]() |
#5 |
Prophet
Join Date: Apr 2007
Location: Seattle, WA
Posts: 5,985
Donated: $40
![]() |
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.
|
![]() |
![]() |
![]() |
#6 | |
Vanilla maintainer
Join Date: Apr 2007
Location: Canberra, Australia
Age: 55
Posts: 8,657
Donated: $60
![]() |
Quote:
__________________
One for the Dark Lord on his dark throne In the Land of Mordor where the Shadows lie. |
|
![]() |
![]() |
![]() |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Thread Tools | |
Display Modes | |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Development lull | Nick | Vanilla | 4 | August 27, 2018 22:35 |
MUD development | Whelk | Idle chatter | 11 | January 9, 2011 02:03 |
Is development *too* active? | the Invisible Stalker | Vanilla | 14 | December 26, 2010 18:47 |
Development forum | camlost | Oook! | 5 | February 22, 2009 22:06 |
[FA] FAangband development | Nick | Variants | 174 | May 30, 2008 03:02 |