chore: dependencies

This commit is contained in:
cha0s 2021-02-04 22:48:41 -06:00
parent 816f6e32a5
commit 6cbf4093d3
6 changed files with 35 additions and 10 deletions

View File

@ -61,6 +61,12 @@ export default (latus) => class Vulnerable extends Trait {
}; };
} }
static dependencies() {
return [
'Emitter',
];
}
static describeParams() { static describeParams() {
return { return {
modifiers: { modifiers: {
@ -142,11 +148,6 @@ export default (latus) => class Vulnerable extends Trait {
}, },
}, },
}, },
Existent: {
state: {
name: 'Harm particle',
},
},
Layered: {}, Layered: {},
Listed: {}, Listed: {},
Positioned: {}, Positioned: {},
@ -185,7 +186,6 @@ export default (latus) => class Vulnerable extends Trait {
ttl: 0.5, ttl: 0.5,
}, },
}, },
Existent: {},
Layered: {}, Layered: {},
Listed: {}, Listed: {},
Perishable: { Perishable: {

View File

@ -12,6 +12,15 @@ export default () => class Controllable extends Trait {
this._movementVector = [0, 0]; this._movementVector = [0, 0];
} }
static dependencies() {
return [
'Animated',
'Mobile',
'Receptacle',
'Wielder',
];
}
set inputStream(inputStream) { set inputStream(inputStream) {
for (let i = 0; i < inputStream.length; i++) { for (let i = 0; i < inputStream.length; i++) {
const {action, value} = inputStream[i]; const {action, value} = inputStream[i];

View File

@ -34,6 +34,12 @@ export default () => class Lootable extends decorate(Trait) {
}; };
} }
static dependencies() {
return [
'Emitter',
];
}
static describeParams() { static describeParams() {
return { return {
table: { table: {

View File

@ -32,6 +32,12 @@ export default (latus) => class Plant extends decorate(Trait) {
}; };
} }
static dependencies() {
return [
'Pictured',
];
}
static describeParams() { static describeParams() {
return { return {
growthCondition: { growthCondition: {

View File

@ -32,6 +32,12 @@ export default (latus) => class Receptacle extends decorate(Trait) {
}; };
} }
static dependencies() {
return [
'Audible',
];
}
static describeParams() { static describeParams() {
return { return {
slots: { slots: {
@ -192,10 +198,8 @@ export default (latus) => class Receptacle extends decorate(Trait) {
other.list.removeEntity(other); other.list.removeEntity(other);
} }
this.entity.addItemToSlot(other); this.entity.addItemToSlot(other);
if (this.entity.is('Audible')) {
this.entity.playSound('yoink'); this.entity.playSound('yoink');
} }
}
}; };
} }
return listeners; return listeners;

View File

@ -23,7 +23,7 @@ export default (latus) => class Wielder extends decorate(Trait) {
static dependencies() { static dependencies() {
return [ return [
'receptacle', 'Receptacle',
]; ];
} }