CleverRaven/Cataclysm-DDA — pull request #7020 by BevapDin (2014-04-01 19:38:36+00:00)
Title: More iuse to json [WIP]

This is the next part of the iuse-to-json conversion.

It extends the `iuse_transform` class to make some checks before the transformations (fire charges, available charges in the item).

The transform json entries have a message entry (which is not yet translated) for the actual transformation and for the case the above checks fails. This allows avoiding the default "The rebreather's batties are dead." (it uses filters, not batteries). You might also add your own clever line there.

There are more `iuse::*_off` functions that can be exported to json without any further coding.

TODO:
- alternative actions
- folding vehicles
- each turn actions (+sound, +charges check)
- explosions