fredi-68 / luswca

Remember to put full project title here
GNU General Public License v3.0
0 stars 0 forks source link

Clothing items of newly created minifigures don't carry over #41

Closed fredi-68 closed 5 years ago

fredi-68 commented 6 years ago

This is because the character creation message uses an index into the list of available clothing options, when we need a LOT instead. We need to setup a mapping of decal index and color to LOT, then add the respective items to the character inventory on creation and mark them as equipped.

fredi-68 commented 5 years ago

Implemented the mapping and I believe it actually works, however, without hacking into the inventory and manually adding the item directly it is impossible to put them on at the start since object IDs cannot be allocated due to not having a zone instance on the char server. Need to either provide a pseudo ID or change the way IDs are handled by the char server

fredi-68 commented 5 years ago

Made a makeshift system that creates the item IDs using a simple offset. Since we only ever deal with 2 IDs at max at the same time and IDs are redistributed on world load anyways this doesn't break anything. I also changed the mapping to use information about color and style from the ItemComponent table because the other implementation didn't work. Have been able to confirm this during initial testing, although it remains to be seen if all color/style combinations are covered and correct