chore: tidy
This commit is contained in:
parent
1a8cefd325
commit
6ff824ace6
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue
Block a user