67 lines
1.3 KiB
JavaScript
67 lines
1.3 KiB
JavaScript
import {buildInvoke, buildTraversal} from '@avocado/behavior';
|
|
|
|
import {AFFINITY_FIRE} from '../../common/combat/constants';
|
|
import {AFFINITY_NONE} from '../../common/combat/constants';
|
|
|
|
// A flower barrel.
|
|
export function flowerBarrelJSON() {
|
|
return {
|
|
traits: {
|
|
alive: {
|
|
state: {
|
|
maxLife: 1000,
|
|
life: 1000,
|
|
},
|
|
},
|
|
collider: {
|
|
params: {
|
|
collidesWithGroups: [
|
|
'default',
|
|
'environmental',
|
|
],
|
|
},
|
|
},
|
|
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: {},
|
|
vulnerable: {
|
|
params: {
|
|
modifiers: {
|
|
[AFFINITY_FIRE]: 2,
|
|
[AFFINITY_NONE]: 0,
|
|
},
|
|
},
|
|
},
|
|
},
|
|
};
|
|
}
|