Sign in to follow this  
martixy

How item restrictions to force powers are handled

Recommended Posts

With the help of Cortisol over on the discord, we did some sleuthing as to how force powers being restricted by armors work.

spells.2da has 2 columns called "requireitemmask" and "forbiditemmask" (these names are hopefully self-explanatory)

These are 16-wide bitfields.

Some testing confirmed that the 7 least significant bits (right-most) correspond in order from MSB > LSB to:

LightSaber, AC9, AC8, AC7, AC6, AC5, AC4 class armors

or more specifically they correspond to the following itemtypes in baseitems.2da

Bit	itemtype
0	31
1	32
2	33
3	34
4	35
5	36
6	39,40,41

 

I did not find any 2da that creates this mapping. Might be hardcoded in the engine.

Have not tested other bits. They may or may not function.

Testing that would require pairing every remaining bit with every item type found in baseitems. That's 9*itemtypes (minus the ones we already know about). If someone wants to bother with that be my guest (tho the work could probably efficiently be subdivided if people decide to bother).

  • Like 2

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this