AlbinoRhino
Active member
It appears that retrieve_item() will unequip gear that is currently in use as part of its retrieval process.
If multiples of the same accessory are equipped, retrieve_item() will unequip the correct amount and return true. However, if two of the same weapon are equipped, retrieve_item() will unequip them both and return false. Tested the accessories with 2 natty blue ascots equipped (of which I have 2 available) and also with 2 Stick-Knife of Loathing equipped (which I also have 2).
This can be re-produced by equipping 2 Stick-Knives and using the cli command:
ash retrieve_item(available_amount($item[Stick-Knife of Loathing]), $item[Stick-Knife of Loathing]);
(assuming only 2 Stick-Knives are available, of course.)
This gives (in the cli) :
> ash retrieve_item(available_amount($item[Stick-Knife of Loathing]), $item[Stick-Knife of Loathing]);
Taking off Stick-Knife of Loathing...
Equipment changed.
You need 1 more Stick-Knife of Loathing to continue.
Returned: false
Both knives will be unequipped and put into inventory, as expected, however.
If multiples of the same accessory are equipped, retrieve_item() will unequip the correct amount and return true. However, if two of the same weapon are equipped, retrieve_item() will unequip them both and return false. Tested the accessories with 2 natty blue ascots equipped (of which I have 2 available) and also with 2 Stick-Knife of Loathing equipped (which I also have 2).
This can be re-produced by equipping 2 Stick-Knives and using the cli command:
ash retrieve_item(available_amount($item[Stick-Knife of Loathing]), $item[Stick-Knife of Loathing]);
(assuming only 2 Stick-Knives are available, of course.)
This gives (in the cli) :
> ash retrieve_item(available_amount($item[Stick-Knife of Loathing]), $item[Stick-Knife of Loathing]);
Taking off Stick-Knife of Loathing...
Equipment changed.
You need 1 more Stick-Knife of Loathing to continue.
Returned: false
Both knives will be unequipped and put into inventory, as expected, however.