chore: dependencies
This commit is contained in:
parent
816f6e32a5
commit
6cbf4093d3
|
@ -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: {
|
||||||
|
|
|
@ -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];
|
||||||
|
|
|
@ -34,6 +34,12 @@ export default () => class Lootable extends decorate(Trait) {
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static dependencies() {
|
||||||
|
return [
|
||||||
|
'Emitter',
|
||||||
|
];
|
||||||
|
}
|
||||||
|
|
||||||
static describeParams() {
|
static describeParams() {
|
||||||
return {
|
return {
|
||||||
table: {
|
table: {
|
||||||
|
|
|
@ -32,6 +32,12 @@ export default (latus) => class Plant extends decorate(Trait) {
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static dependencies() {
|
||||||
|
return [
|
||||||
|
'Pictured',
|
||||||
|
];
|
||||||
|
}
|
||||||
|
|
||||||
static describeParams() {
|
static describeParams() {
|
||||||
return {
|
return {
|
||||||
growthCondition: {
|
growthCondition: {
|
||||||
|
|
|
@ -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,9 +198,7 @@ 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');
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
@ -23,7 +23,7 @@ export default (latus) => class Wielder extends decorate(Trait) {
|
||||||
|
|
||||||
static dependencies() {
|
static dependencies() {
|
||||||
return [
|
return [
|
||||||
'receptacle',
|
'Receptacle',
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user