chore: tidy

This commit is contained in:
cha0s 2024-07-04 15:17:49 -05:00
parent 1a8cefd325
commit 6ff824ace6

View File

@ -3,8 +3,7 @@ import Component from '@/ecs/component.js';
export default class Wielder extends Component {
instanceFromSchema() {
const {ecs} = this;
const Instance = super.instanceFromSchema();
return class WielderInstance extends Instance {
return class WielderInstance extends super.instanceFromSchema() {
activeItem() {
const {Inventory, Wielder} = ecs.get(this.entity);
return Inventory.item(Wielder.activeSlot + 1);