{ "profile": { "does_damage": 0, "has_spikes": 1, "has_magick": 2, "is_complete": 3 }, "actions": [ { "name": "pierce_type", "cost": 1000, "needs": { "is_complete": false, "has_spikes": true }, "effects": { "does_damage": true } }, { "name": "magick_type", "cost": 0, "needs": { "is_complete": false, "has_magick": true }, "effects": { "does_damage": true } }, { "name": "combined", "cost": 0, "needs": { "does_damage": true }, "effects": { "is_complete": true } } ], "states": { "initial": { "does_damage": false, "is_complete": false, "has_spikes": false, "has_magick": false }, "final": { "does_damage": true, "is_complete": true } }, "scripts": { "actions": ["pierce_type", "magick_type", "combined"] } }