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() {
return {
modifiers: {
@ -142,11 +148,6 @@ export default (latus) => class Vulnerable extends Trait {
},
},
},
Existent: {
state: {
name: 'Harm particle',
},
},
Layered: {},
Listed: {},
Positioned: {},
@ -185,7 +186,6 @@ export default (latus) => class Vulnerable extends Trait {
ttl: 0.5,
},
},
Existent: {},
Layered: {},
Listed: {},
Perishable: {

View File

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

View File

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

View File

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

View File

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