Open ANickelN opened 8 months ago
This isn't limited to "type": "transform"
, it's a general issue with use_action
: if there is more than a single type
, only the first is detected while the rest are ignored. Combining different type
s work as intended, as long as there is a single one of each.
(I wasn't aware this hasn't been reported before)
(I wasn't aware this hasn't been reported before)
It was reported - see https://github.com/CleverRaven/Cataclysm-DDA/issues/28975 and https://github.com/CleverRaven/Cataclysm-DDA/issues/50277
Describe the bug
For items that have two use_actions, only the first of the actions is applied. As shown in the block below, only the "Turn to high power" transformation will work.
Setting the second action to a "delayed_transform" works as shown below:
Attach save file
N/A
Steps to reproduce
Load the following local mod I use for testing: LocalTesting.zip
Spawn in the "tactical flashlight", reload the battery and attempt to turn off the flashlight from "low" mode. You'll be forced into "high" mode despite the two actions in the JSON.
Expected behavior
The player should be able to choose between the two actions.
Screenshots
No response
Versions and configuration
Additional context
No response