Skip to content

Commit

Permalink
Update src/engine/world/actor/player/player.ts
Browse files Browse the repository at this point in the history
Co-authored-by: Danial <[email protected]>
  • Loading branch information
Promises and RedSparr0w authored Oct 9, 2021
1 parent 88902c1 commit bd197dc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/engine/world/actor/player/player.ts
Original file line number Diff line number Diff line change
Expand Up @@ -878,7 +878,7 @@ export class Player extends Actor {
.map(([quest]) => `You must progress further in the ${quest.replace(/^([a-z]+:)/gm, '').replace(/_/g, ' ')} quest to equip this item.`)
);

return { equipable: true, missingRequirements: missingRequirements };
return { equipable: missingRequirements.length === 0, missingRequirements: missingRequirements };
}

public equipItem(itemId: number, itemSlot: number, slot: EquipmentSlot | number): boolean {
Expand Down

0 comments on commit bd197dc

Please sign in to comment.