2019-05-21 03:10:07 -05:00
|
|
|
import {buildInvoke, buildTraversal} from '@avocado/behavior';
|
|
|
|
|
2019-05-26 12:00:35 -05:00
|
|
|
import {AFFINITY_FIRE} from '../../common/combat/constants';
|
|
|
|
import {AFFINITY_NONE} from '../../common/combat/constants';
|
|
|
|
|
2019-05-21 03:10:07 -05:00
|
|
|
// A flower barrel.
|
|
|
|
export function flowerBarrelJSON() {
|
|
|
|
return {
|
|
|
|
traits: {
|
|
|
|
alive: {
|
|
|
|
state: {
|
|
|
|
maxLife: 1000,
|
|
|
|
life: 1000,
|
|
|
|
},
|
|
|
|
},
|
2019-10-02 00:38:09 -05:00
|
|
|
collider: {
|
|
|
|
params: {
|
|
|
|
collidesWithGroups: [
|
|
|
|
'default',
|
|
|
|
'environmental',
|
|
|
|
],
|
|
|
|
},
|
|
|
|
},
|
2019-05-21 03:10:07 -05:00
|
|
|
emitter: {},
|
|
|
|
existent: {
|
|
|
|
state: {
|
|
|
|
name: 'Flower Barrel',
|
|
|
|
},
|
|
|
|
},
|
|
|
|
layered: {},
|
|
|
|
listed: {},
|
|
|
|
physical: {},
|
|
|
|
pictured: {
|
|
|
|
params: {
|
|
|
|
images: {
|
|
|
|
initial: {
|
|
|
|
offset: [0, -8],
|
|
|
|
size: [32, 32], // Derive?
|
|
|
|
uri: '/flower-barrel.png',
|
|
|
|
},
|
|
|
|
}
|
|
|
|
},
|
|
|
|
},
|
|
|
|
positioned: {},
|
|
|
|
roomed: {},
|
|
|
|
shaped: {
|
|
|
|
params: {
|
|
|
|
shape: {
|
|
|
|
type: 'rectangle',
|
|
|
|
position: [0, 0],
|
|
|
|
size: [20, 10],
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
visible: {},
|
2019-05-26 12:00:35 -05:00
|
|
|
vulnerable: {
|
|
|
|
params: {
|
2019-11-24 06:14:43 -06:00
|
|
|
modifiers: {
|
2019-05-26 12:00:35 -05:00
|
|
|
[AFFINITY_FIRE]: 2,
|
|
|
|
[AFFINITY_NONE]: 0,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
2019-05-21 03:10:07 -05:00
|
|
|
},
|
|
|
|
};
|
|
|
|
}
|