Originally posted by Magnate
Obviously the name is expected to reflect what the item does, but it's not necessarily intrinsic. The mods and other data are specified in separate fields; I could change the 'type' to "Beauty", or "the Movie Star" or whatever, and it would have no effect on the stats of the item itself. That's why it's part of the nameInfo struct, and not put in as a data value.
Essentially, 'Charisma' is not a categorical type, it's a naming artifact. You could add it to the [charisma] category if you wanted to be able to group it with things like potions of charisma, for all items that affect charisma, while at the same time changing the name 'type' to "Paris Hilton". In other words, the name is not the same thing as the effect.
EG:
"Amulet of Charisma", +2 to CHR
"Amulet of Paris Hilton", +2 to CHR
Both could be in the [charisma] category, but that's a separate aspect.
I'd welcome a different name for that field, but there were no comments when I was musing about it earlier.
Originally posted by Magnate
I moved that into the affix_meta, though, because there still needs to be an ordering within each subsection (eg: material before make when in the baseAdjective position). I can see that that would break naming with the above example, though.
Yeah, that needs to be rethought.
Ok, we can have each affix specify its affixType and its position (modAdj, baseAdj, suffix). However we still need some means of ordering within that position. Perhaps a positionWeight value? The lower the weight value, the closer it is to the item it's modifying?
Code:
Affix Position Weight Elven baseAdj 1 Leather baseAdj 2 of Elvenkind suffix 1 Resist Cold suffix 5 Strength suffix 3 Blessed modAdj 1
Code:
1 mod 2 1 base 1 3 5 Blessed [] Leather Elven Boots of Elvenkind, Strength and Resist Cold
Potentially confusing. Have to play with it a bit. Maybe name it modifierDistance or something, instead of weight.
Originally posted by Magnate
In this case, subtype refers to the primary category that was added for the item in question. Since categories are sets, they have no intrinsic order, so I needed some way to pull that out of the original record (which is a simple list) and hold onto it. I repurposed the subtype field for that.
The nameInfo 'type' is a little confusing due to the name. It's used for identifying specifically named variants.. actually, that might be a nice way to name it: 'variantName', instead of 'type'. I like it.
.
Leave a comment: