Skip to content

Add monk vocation #45

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions CHANGELOG.rst
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,12 @@ Changelog
Due to this library relying on external content, older versions are not guaranteed to work.
Try to always use the latest version.

.. v6.4.0

6.4.0 (2025-06-14)
==================
- Add Monk vocation.

.. v6.3.0

6.3.0 (2024-04-05)
Expand Down
2 changes: 1 addition & 1 deletion tibiapy/__init__.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
"""Tibia.com parsing and fetching library."""
__version__ = "6.3.0"
__version__ = "6.4.0"
__author__ = "Allan Galarza"
__license__ = "Apache-2.0 License"

Expand Down
7 changes: 7 additions & 0 deletions tibiapy/enums.py
Original file line number Diff line number Diff line change
Expand Up @@ -212,6 +212,7 @@ class AuctionVocationFilter(NumericEnum):
KNIGHT = 3
PALADIN = 4
SORCERER = 5
MONK = 6


class AvailableForumSection(StringEnum):
Expand Down Expand Up @@ -322,6 +323,7 @@ class HighscoresProfession(NumericEnum):
PALADINS = 3
SORCERERS = 4
DRUIDS = 5
MONKS = 6

@classmethod
def from_name(cls, name: str, all_fallback: bool = True) -> Optional[Self]:
Expand Down Expand Up @@ -479,6 +481,7 @@ class SpellVocationFilter(StringEnum):
KNIGHT = "Knight"
PALADIN = "Paladin"
SORCERER = "Sorcerer"
MONK = "Monk"


class ThreadStatus(Flag):
Expand Down Expand Up @@ -555,10 +558,12 @@ class Vocation(StringEnum):
KNIGHT = "Knight"
PALADIN = "Paladin"
SORCERER = "Sorcerer"
MONK = "Monk"
ELDER_DRUID = "Elder Druid"
ELITE_KNIGHT = "Elite Knight"
ROYAL_PALADIN = "Royal Paladin"
MASTER_SORCERER = "Master Sorcerer"
EXALTED_MONK = "Exalted Monk"

@property
def base(self) -> Self:
Expand All @@ -571,6 +576,8 @@ def base(self) -> Self:
return self.PALADIN
if self == self.ELITE_KNIGHT:
return self.KNIGHT
if self == self.EXALTED_MONK:
return self.MONK
return self


Expand Down