Skip to content

vBot support "Mage" vocation#76

Merged
divinity76 merged 1 commit intoOTAcademy:masterfrom
divinity76:mage-vocation
Jan 20, 2026
Merged

vBot support "Mage" vocation#76
divinity76 merged 1 commit intoOTAcademy:masterfrom
divinity76:mage-vocation

Conversation

@divinity76
Copy link
Copy Markdown
Collaborator

several OT servers merge MS/ED vocation into a Mage vocation having the best features of both MS and ED.

Without this fix, on those servers, vBot would constantly error out with Error: (...) concatenat voc: a nil value

I tried submitting this upstream, but it seems vBot upstream is unmaintained: Vithrax/vBot#17

several OT servers merge MS/ED vocation into a Mage vocation having the best features of both MS and ED.

Without this fix, on those servers, vBot would constantly error out with Error: (...) concatenat voc: a nil value

I tried submitting this upstream, but it seems vBot upstream is unmaintained: Vithrax/vBot#17
@divinity76 divinity76 changed the title support "Mage" vocation vBot support "Mage" vocation Jan 10, 2026
@divinity76 divinity76 requested a review from Copilot January 20, 2026 00:02
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR adds support for the "Mage" vocation in vBot, which is used by some OT servers that merge the MS (Sorcerer) and ED (Druid) vocations. The change also optimizes the code by caching the lowercased text to avoid repeated calls to text:lower().

Changes:

  • Added detection for "mage" vocation and mapped it to "MS"
  • Introduced lowerText variable to cache text:lower() for better performance
  • Updated all vocation checks to use the cached lowerText variable

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@divinity76 divinity76 merged commit 996ced4 into OTAcademy:master Jan 20, 2026
6 checks passed
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