WittleWolfie / WW-Blueprint-Core

A library to simplify modifying Pathfinder: Wrath of the Righteous.
MIT License
14 stars 5 forks source link

Unbreak AddLootItemsPackFixed #55

Closed pheonix99 closed 2 years ago

pheonix99 commented 2 years ago

The 1.x version of this took the exact same base paramaters (LootItem item, Value int) and did not need a merge component to not crash the game during build.

.AddComponent(x => { x.m_Item = LootItem; x.m_Count = Count; } Works just fine - AddLootItemsPackFixed should just be a glorified wrapper for that. Please revert.

WittleWolfie commented 2 years ago

Looking into this, it's happening because BPCore incorrectly identified this as a Unique component. In reality it is not, AllowMultiple should check inheritance to generate the correct API.

This is a nasty bug so I'll get a fix out as soon as I can.