KongMD-Steam / QuestionableEthicsEnhanced

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

Machining Table's 'Do Until you have' bill causes never-ending item crafting #52

Closed KongMD-Steam closed 5 years ago

KongMD-Steam commented 5 years ago

Describe the bug The 'Do Until you have' bill in the Machining Table is counting an entire stack of Genome Sequencer and Brain Template items as having '1' of the item, instead counting all items in the stack. This can cause never-ending item crafting, which is a significant problem.

Expected behavior A clear and concise description of what you expected to happen.

To Reproduce Steps to reproduce the behavior:

  1. Start a new game
  2. Debug finish all research.
  3. Spawn a Machining Table and debug create 500 Steel and 200 Components
  4. Queue up the 'Make genome sequencer' bill with 'Do until you have 2' as the filter
  5. Set a stockpile for the item
  6. Observe that after the second is made, it is hauled to the stockpile, and the count in the GUI remains at '1 of 2' (see screenshot)
  7. Repeat Steps 4-6 with the 'Make brain scanner' bill. Same issue occurs.

Screenshots MachiningTableBillBug

Additional context Thanks to 'Sea Hitler' on Steam for reporting this bug!