There seems to be a bug with creating a consumable list, then using .evaluateItem
from it doesn’t consume the item.
Demo:
items
a
b
c
output
$output = [this.getRawListText.split('\n').slice(2).join('\n')]
A: [x = items.consumableList, ''] [x.evaluateItem] [x.evaluateItem] [x.evaluateItem] [x.evaluateItem]<br>
B: [x = items.consumableList, ''] [x] [x] [x] [x]<br>
C: [x = items.consumableList, ''] [x.selectOne] [x.selectOne] [x.selectOne] [x.selectOne]
A
doesn’t workB
andC
Works
I think it is because .evaluateItem
essentially converts the consumable list to text, which will not consume it, although it should do a .selectOne
(a reference post) behind the scenes which should consume from the list, but it is not working.
Oh, wow, good catch! Surprising that bug survived for so long. Should be fixed now. Thanks!
Thanks again!