Skip to content

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