chore: ded
This commit is contained in:
parent
6d525c806c
commit
afdff00821
|
@ -53,19 +53,6 @@ export default (flecks) => class Vulnerable extends Trait {
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
||||||
static describeParams() {
|
|
||||||
return {
|
|
||||||
modifiers: {
|
|
||||||
type: 'object',
|
|
||||||
label: 'Modifiers',
|
|
||||||
},
|
|
||||||
affinities: {
|
|
||||||
type: 'object',
|
|
||||||
label: 'Types',
|
|
||||||
},
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|
||||||
destroy() {
|
destroy() {
|
||||||
super.destroy();
|
super.destroy();
|
||||||
this.#locks.clear();
|
this.#locks.clear();
|
||||||
|
|
|
@ -39,25 +39,6 @@ export default (flecks) => class Item extends decorate(Trait) {
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
||||||
static children() {
|
|
||||||
return {
|
|
||||||
decrementQuantity: {
|
|
||||||
type: 'void',
|
|
||||||
label: 'Decrement quantity.',
|
|
||||||
args: [
|
|
||||||
{
|
|
||||||
label: 'qty',
|
|
||||||
type: 'number',
|
|
||||||
},
|
|
||||||
],
|
|
||||||
},
|
|
||||||
qty: {
|
|
||||||
type: 'number',
|
|
||||||
label: 'Quantity',
|
|
||||||
},
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|
||||||
methods() {
|
methods() {
|
||||||
return {
|
return {
|
||||||
|
|
||||||
|
|
|
@ -40,24 +40,6 @@ export default () => class Lootable extends decorate(Trait) {
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
||||||
static describeParams() {
|
|
||||||
return {
|
|
||||||
table: {
|
|
||||||
type: 'object',
|
|
||||||
label: 'Loot table',
|
|
||||||
},
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|
||||||
static describeState() {
|
|
||||||
return {
|
|
||||||
lootable: {
|
|
||||||
type: 'bool',
|
|
||||||
label: 'Lootable',
|
|
||||||
},
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|
||||||
emitLoot() {
|
emitLoot() {
|
||||||
const jsons = this.calculateLoot();
|
const jsons = this.calculateLoot();
|
||||||
if (0 === jsons.length) {
|
if (0 === jsons.length) {
|
||||||
|
|
|
@ -22,24 +22,6 @@ export default () => class Magnetic extends decorate(Trait) {
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
static describeParams() {
|
|
||||||
return {
|
|
||||||
isAttractor: {
|
|
||||||
type: 'bool',
|
|
||||||
label: 'Is an attractor',
|
|
||||||
},
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|
||||||
static describeState() {
|
|
||||||
return {
|
|
||||||
attraction: {
|
|
||||||
type: 'number',
|
|
||||||
label: 'Attraction',
|
|
||||||
},
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|
||||||
get isAttracted() {
|
get isAttracted() {
|
||||||
return !this.params.isAttractor;
|
return !this.params.isAttractor;
|
||||||
}
|
}
|
||||||
|
|
|
@ -38,24 +38,6 @@ export default (flecks) => class Receptacle extends decorate(Trait) {
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
||||||
static describeParams() {
|
|
||||||
return {
|
|
||||||
slots: {
|
|
||||||
type: 'object',
|
|
||||||
label: 'Slots',
|
|
||||||
},
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|
||||||
static describeState() {
|
|
||||||
return {
|
|
||||||
slotCount: {
|
|
||||||
type: 'number',
|
|
||||||
label: '# of slots',
|
|
||||||
},
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|
||||||
async acceptPacket(packet) {
|
async acceptPacket(packet) {
|
||||||
switch (packet.constructor.type) {
|
switch (packet.constructor.type) {
|
||||||
case 'TraitUpdateReceptacleItemQty': {
|
case 'TraitUpdateReceptacleItemQty': {
|
||||||
|
|
|
@ -30,15 +30,6 @@ export default () => class Wielder extends decorate(Trait) {
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
||||||
static describeState() {
|
|
||||||
return {
|
|
||||||
activeSlotIndex: {
|
|
||||||
type: 'number',
|
|
||||||
label: 'Active slot index',
|
|
||||||
},
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|
||||||
hooks() {
|
hooks() {
|
||||||
return {
|
return {
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user