Ok, completed two more commits:
1) Changed 'type' to 'variantName'. May be able to remove it entirely later on, but this at least gives us a more sensical name.
2) Complete rewrite of position handling, to include positionDistance. This actually simplifies the naming code a fair bit.
Affixes should specify a base affixType (optional). If so, it will default to a position and positionDistance as given by that affix type; however the affix itself can override either value. If there's no affixType, and no specified positionDistance, distance will default to 100. Position itself defaults to None, which means it won't show up at all if not specified.
Removed the position value from all affixes in affix.txt that matched the value of the given affixType (ie: remove redundancy).
Aside: Elvenkind is actually listed as an Arcane affixType, so wouldn't have conflicted, but the general intent remains. May want to change them to Make, anyway.
Flavors get inserted as if they were affixes of distance 101.
Working through things, the previous code would probably have broken when dealing with affixes without an affixType.
1) Changed 'type' to 'variantName'. May be able to remove it entirely later on, but this at least gives us a more sensical name.
2) Complete rewrite of position handling, to include positionDistance. This actually simplifies the naming code a fair bit.
Affixes should specify a base affixType (optional). If so, it will default to a position and positionDistance as given by that affix type; however the affix itself can override either value. If there's no affixType, and no specified positionDistance, distance will default to 100. Position itself defaults to None, which means it won't show up at all if not specified.
Removed the position value from all affixes in affix.txt that matched the value of the given affixType (ie: remove redundancy).
Aside: Elvenkind is actually listed as an Arcane affixType, so wouldn't have conflicted, but the general intent remains. May want to change them to Make, anyway.
Flavors get inserted as if they were affixes of distance 101.
Working through things, the previous code would probably have broken when dealing with affixes without an affixType.
Comment