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

Added beginner-friendly methods for ItemType #3807

Merged
1 commit merged into from
Nov 28, 2021
Merged

Added beginner-friendly methods for ItemType #3807

1 commit merged into from
Nov 28, 2021

Conversation

Zbizu
Copy link
Contributor

@Zbizu Zbizu commented Nov 28, 2021

Pull Request Prelude

Changes Proposed

Make equipment checks more pleasant to code

New methods:

itemType:isHelmet()
itemType:isArmor()
itemType:isLegs()
itemType:isBoots()
itemType:isWeapon()
itemType:isBow()
itemType:isWand()
itemType:isShield()
itemType:isBackpack()
itemType:isNecklace()
itemType:isRing()
itemType:isAmmo()
itemType:isTrinket()

it just feels more natural to write checks in scripts using these methods

it just feels more natural to write checks in scripts using these methods
@ghost ghost merged commit 2ce3c63 into otland:master Nov 28, 2021
@Zbizu Zbizu deleted the patch-3 branch November 29, 2021 00:21
This pull request was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants