Jump to content
  • 0

Re consistency in the order of objects within object arrays


Gairnulf

Question

I've found examples among objects in attacks.gamedatabundle where the objects within a "Components" array are put in different order between attacks' objects. For example:

 

Carnage_AOEPrimary:

 

Components: [{46}{9}{12}]

That's AttackBaseComponent, then AttackAOEComponent (9 properties), and finally AttackRangedComponent (12 properties).

 

And then in other objects we have:

Components: [{46},{12},{9}]

For example, the nearby Barbaric_Yell_AOE is like that.

 

It will help me a lot if you can keep these consistent across all attacks of a given type. Because when writing my editor, I use stuff like

this.attackForm.setControl('EngagementRadius', this.attack.Components[1].EngagementRadius); 
And if this Components[1] means one object in one attack, and another object in another attack... I have to make checks every time whether I'm in the right object, which shouldn't be necessary.

 

Just a friendly request.

A Custom Editor for Deadfire's Data:
eFoHp9V.png

Link to comment
Share on other sites

1 answer to this question

Recommended Posts

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...