chore: ded

This commit is contained in:
cha0s 2022-03-20 18:57:32 -05:00
parent 6d525c806c
commit afdff00821
6 changed files with 0 additions and 95 deletions

View File

@ -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();

View File

@ -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 {

View File

@ -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) {

View File

@ -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;
} }

View File

@ -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': {

View File

@ -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 {