KongMD-Steam / QuestionableEthicsEnhanced

The source code of the Questionable Ethics Enhanced mod for RimWorld.
MIT License
12 stars 7 forks source link

Brain scan templates stack and newer template data is lost #46

Closed KongMD-Steam closed 5 years ago

KongMD-Steam commented 5 years ago

Describe the bug When you do a brain scan on a pawn and later on, when he has better stats, do a second brain scan, both will get put in a single stack in the stockpile. Data from the second template will be wiped out when the game decides to stack it with the first template.

Expected behavior Brain scan templates should only stack when the skills & passions are exactly the same.

To Reproduce Steps to reproduce the behavior:

  1. Take a brain scan of a colonist
  2. Put the resulting brain scan Template A in a single tile stockpile for templates
  3. Debug set the pawn's skills to 20
  4. Scan brain again to make Template B and prioritize hauling it to a stockpile
  5. Observe the stack increases by 1, and all data from Template B vanishes into the either. The stack of templates still has the skills from Template A in the item description.

Additional context Thanks to Iskander for reporting the bug in the Steam workshop.