persea-old/fixtures/watering-can.entity.json
2020-06-20 01:36:41 -05:00

134 lines
3.0 KiB
JSON

{
"traits": {
"behaved": {
"params": {
"contextTypeHints": {
"item": "entity",
"target": "vector",
"wielder": "entity"
}
}
},
"existent": {},
"item": {
"params": {
"itemActions": {
"type": "actions",
"traversals": [
{
"type": "traversal",
"steps": [
{
"type": "key",
"key": "item"
},
{
"type": "key",
"key": "useTool"
},
{
"type": "invoke",
"args": []
}
]
}
]
},
"slotImageUris": {
"default": "/watering-can.png"
}
}
},
"tool": {
"params": {
"condition": {
"type": "condition",
"operator": "is",
"operands": [
{
"type": "literal",
"value": 6
},
{
"type": "traversal",
"steps": [
{
"type": "key",
"key": "wielder"
},
{
"type": "key",
"key": "layer"
},
{
"type": "key",
"key": "tileAt"
},
{
"type": "invoke",
"args": [
{
"type": "traversal",
"steps": [
{
"type": "key",
"key": "target"
}
]
}
]
}
]
}
]
},
"actions": {
"type": "actions",
"traversals": [
{
"type": "traversal",
"steps": [
{
"type": "key",
"key": "wielder"
},
{
"type": "key",
"key": "layer"
},
{
"type": "key",
"key": "setTileAt"
},
{
"type": "invoke",
"args": [
{
"type": "traversal",
"steps": [
{
"type": "key",
"key": "target"
}
]
},
{
"type": "literal",
"value": 7
}
]
}
]
}
]
},
"target": {
"type": "projection",
"distance": 1,
"length": 1,
"width": 1
}
}
}
}
}