Bug - Fixed Everything is used one-by-one

xKiv

Active member
I just noticed this with snowcones and candy hearts.
Code:
> use 2 green candy heart

You are now in away mode, chat will update more slowly until you say something.

Searching for "green candy heart"...
Search complete.
Purchasing green candy heart (2 @ 988)...
Purchases complete.
Using green candy heart (1 of 2)...
You acquire an effect: Heart of Green (duration: 10 Adventures)
Using green candy heart (2 of 2)...
You acquire an effect: Heart of Green (duration: 10 Adventures)
Finished using 2 green candy heart.

UseItemRequest gets consumptiontype 3 (CONSUME_USE), but multiuse is only possible for CONSUME_MULTIPLE (and INFINITE_USES?).
Since 12898, this is set in UseItemCommand.use (line 154). Before that, UseItemCommand used the version of UseItemRequest that auto-completes consumptiontype as UseItemRequest.getConsumptionType( item ), which takes item properties (like multiusability) in account.
 
Top