chore: simplify

This commit is contained in:
cha0s 2019-05-30 09:11:29 -05:00
parent d11c6a6c72
commit ea1473d3af

View File

@ -28,21 +28,16 @@ export function wateringCanJSON() {
}, },
tool: { tool: {
params: { params: {
condition: buildCondition( // Has to be dirt.
'or', condition: buildCondition('is', [
[ 6,
// Has to be dirt. buildInvoke(
buildCondition('is', [ ['user', 'layer', 'tileAt'],
6, [
buildInvoke( buildTraversal(['target']),
['user', 'layer', 'tileAt'], ],
[ ),
buildTraversal(['target']), ]),
],
),
]),
],
),
actions: { actions: {
type: 'actions', type: 'actions',
traversals: [ traversals: [