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

Add NPC Role selection #173

Merged
merged 6 commits into from
Nov 27, 2024

Conversation

Azurelol
Copy link
Collaborator

Adds another property for NPCs that I believe will greatly improve usability in scenarios where GMs wish to design plug-n-play adversaries that can easily scale up and down.

  • The default role is Custom, in which case no updates are applied whenever an NPC changes level
  • With any other role, an NPC's Attributes and Bonuses are updated based on their level and role. (So for example a Brute would have a higher might die from the start and keep scaling through the level breakpoints)

I believe I followed the established conventions for defining the role property onto the npc data model; as for the implementation and role table (what is used to query which attributes and bonuses are to be applied) I went for a simple approach which is entirely self contained and can be later refactored if need be.

A remaining sub-task to be done after is to restore an NPC's resources after level/role changes, but that is a minor QOL.

image

@spyrella spyrella merged commit 966b442 into League-of-Fabulous-Developers:dev Nov 27, 2024
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