humus-old/server/fixtures/flower-barrel.entity.js

60 lines
1.2 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: {},
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: {
vulnerabilities: {
[AFFINITY_FIRE]: 2,
[AFFINITY_NONE]: 0,
},
},
},
},
};
}