humus-old/server/fixtures/tomato-plant.entity.js

77 lines
1.6 KiB
JavaScript
Raw Normal View History

2019-05-30 09:12:17 -05:00
import {buildInvoke, buildTraversal} from '@avocado/behavior';
// A tomato plant.
export function tomatoPlantJSON() {
return {
traits: {
existent: {
state: {
name: 'Tomato plant',
},
},
layered: {},
listed: {},
pictured: {
params: {
images: {
'initial': {
offset: [0, 0],
size: [16, 16],
uri: '/tomato-stage-0.png',
},
'stage-1': {
2019-05-31 15:59:29 -05:00
offset: [0, 3],
2019-05-30 09:12:17 -05:00
size: [16, 16],
uri: '/tomato-stage-1.png',
},
'stage-2': {
2019-05-31 15:59:29 -05:00
offset: [0, 3],
2019-05-30 09:12:17 -05:00
size: [16, 16],
uri: '/tomato-stage-2.png',
},
'stage-3': {
2019-05-31 15:59:29 -05:00
offset: [0, 3],
2019-05-30 09:12:17 -05:00
size: [16, 16],
uri: '/tomato-stage-3.png',
},
'stage-4': {
2019-05-31 15:59:29 -05:00
offset: [0, 3],
2019-05-30 09:12:17 -05:00
size: [16, 16],
uri: '/tomato-stage-4.png',
},
}
},
},
plant: {
params: {
stageSpecs: {
0: {
2019-05-31 15:59:29 -05:00
growAt: 2,
2019-05-30 09:12:17 -05:00
image: 'initial',
},
1: {
2019-05-31 15:59:29 -05:00
growAt: 4,
2019-05-30 09:12:17 -05:00
image: 'stage-1',
},
2: {
2019-05-31 15:59:29 -05:00
growAt: 6,
2019-05-30 09:12:17 -05:00
image: 'stage-2',
},
3: {
2019-05-31 15:59:29 -05:00
growAt: 8,
2019-05-30 09:12:17 -05:00
image: 'stage-3',
},
4: {
image: 'stage-4',
},
}
}
},
positioned: {},
roomed: {},
2019-06-12 22:23:21 -05:00
'tile-entity': {},
2019-05-30 09:12:17 -05:00
visible: {},
},
};
}