Skip to content

Add a LoreQuest subclass of Quest#2283

Merged
manuq merged 1 commit into
mainfrom
wjt/add-a-lorequest-subclass-of-quest
Jun 3, 2026
Merged

Add a LoreQuest subclass of Quest#2283
manuq merged 1 commit into
mainfrom
wjt/add-a-lorequest-subclass-of-quest

Conversation

@wjt
Copy link
Copy Markdown
Member

@wjt wjt commented Jun 3, 2026

There are some properties that only make sense on LoreQuests, and we treat them differently in the game state.

Rather than using _validate_property magic to hide those properties on quests that don't have the is_lore_quest property set, make a subclass, update all quest resources for lorequests to be LoreQuest instances instead, and adjust code that uses these LoreQuest-specific properties.

Arguably the authors/affiliation properties of Quest only make sense for StoryQuests, so perhaps those should have a subclass, but that's one for another day.

There are some properties that only make sense on LoreQuests, and we
treat them differently in the game state.

Rather than using `_validate_property` magic to hide those properties on
quests that don't have the is_lore_quest property set, make a subclass,
update all quest resources for lorequests to be LoreQuest instances
instead, and adjust code that uses these LoreQuest-specific properties.

Arguably the authors/affiliation properties of Quest only make sense for
StoryQuests, so perhaps those should have a subclass, but that's one for
another day.
@wjt wjt requested a review from a team as a code owner June 3, 2026 14:37
Copy link
Copy Markdown
Collaborator

@manuq manuq left a comment

Choose a reason for hiding this comment

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

Good idea, it makes sense.

@github-actions
Copy link
Copy Markdown

github-actions Bot commented Jun 3, 2026

Play this branch at https://play.threadbare.game/branches/endlessm/wjt/add-a-lorequest-subclass-of-quest/.

(This launches the game from the start, not directly at the change(s) in this pull request.)

@manuq manuq merged commit 4bd4a0e into main Jun 3, 2026
7 checks passed
@manuq manuq deleted the wjt/add-a-lorequest-subclass-of-quest branch June 3, 2026 15:27
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