Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Check if player has requirements to equip items #356

Merged
merged 3 commits into from
Oct 6, 2021

Conversation

RedSparr0w
Copy link
Contributor

Checks if the player has the level/quest requirements to equip items.

Wasn't sure how you'd prefer it be implemented, So I created 2 different methods:
canEquipItem returns a boolean.
missingItemEquipRequirements returns an array of strings with the missing requirements.

image

@SchauweM SchauweM linked an issue Oct 6, 2021 that may be closed by this pull request
@SchauweM SchauweM added enhancement Enhancement to an existing feature game engine Updates involving the main game engine or game logic labels Oct 6, 2021
@SchauweM SchauweM merged commit 6335a09 into runejs:develop Oct 6, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Enhancement to an existing feature game engine Updates involving the main game engine or game logic
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[ENGINE] Item requirements
2 participants