Skip to content

Added cantrips and blessings to activatable prereqs - #173

Merged
elyukai merged 14 commits into
mainfrom
feature/prereq-cantrip
Sep 12, 2026
Merged

elyukai merged 14 commits into
mainfrom
feature/prereq-cantrip

Conversation

@Lector

@Lector Lector commented Jun 23, 2026

Copy link
Copy Markdown
Collaborator

Closes #172

@Lector
Lector requested a review from elyukai as a code owner June 23, 2026 19:21

@elyukai elyukai left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Das kannst du so einfach leider nicht implementieren. Was da drin steht hat Einfluss auf die gesamte Wahrnehmung in Optolith, was ein Activatable ist. Ein Activatable ist quasi definiert als Vorteile, Nachteile und Sonderfertigkeiten. Segnungen und Zaubertricks zählen da nicht so direkt zu, da sie keine weiteren Optionen wie Stufen und Auswahlmöglichkeiten haben. Daher wäre es denke ich sinnvoller, dafür einen neuen Voraussetzungstyp einzuführen. Ich habe Cantrips und Blessings beim Charakter-Schema als TinyActivatable zusammengefasst, das könnte man hier analog dazu machen.

Daher kommt auch ein Fehler bei den Cache-Buildern, da die dann ein Handling für die neuen Activatable-Entities erwarten.

@Lector

Lector commented Jun 24, 2026

Copy link
Copy Markdown
Collaborator Author

Ich habe jetzt Cantrips and Blessing unter GeneralPrerequisites eingefügt. Sie haben also mit Activatable nichts mehr zu tun. Dennnoch bekomme ich noch irgendeinen Fehler den ich nicht ganz verstehe.

Comment thread src/types/_IdentifierGroup.ts Outdated
comment: "Requires a specific blessing.",
type: () =>
DB.Object({
blessing: DB.Required({

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Typischerweise wird der Key, der den Eintrag definiert, id genannt. Zumindest bei den anderen Voraussetzungen.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Du kannst aber trotzdem einen Display Name für die Property verwenden, wenn er im Editor anders heißen soll.

Comment thread src/types/prerequisites/single/BlessingPrerequisite.ts Outdated
Lector added 3 commits June 25, 2026 13:26
…n _IdentifierGroup.ts

Removed this Prereqs from SpecialAbilities in _IdentifierGroup.ts
Renamed identifying key to id in this 2 Prereqs
@Lector

Lector commented Jun 25, 2026

Copy link
Copy Markdown
Collaborator Author

Die Punkte sind umgesetzt. Es scheint aber noch Probleme mit dem cache zu geben. Da bräuchte ich ein par Hinweise was ich da noch anpassen muss.

@elyukai

elyukai commented Jun 27, 2026

Copy link
Copy Markdown
Member

Also du hast die IdentifierGroups angepasst und auch die neue hinzugefügt, aber noch nicht die Voraussetzungen selbst angepasst.

@Lector

Lector commented Jun 27, 2026

Copy link
Copy Markdown
Collaborator Author

Alles klar. Sollte jetzt passen.

@elyukai

elyukai commented Jun 27, 2026

Copy link
Copy Markdown
Member

Du hast einmal BlessingPrerequisite und einmal CantripPrerequisite. Beide funktionieren genau gleich, nur mit anderen IDs. Ich würde das analog zu anderen Voraussetzungen machen und daraus eine kombinierte Voraussetzung TinyActivatablePrerequisite machen, wo man dann in der Voraussetzung wählt, welche Entity und welche Instanz gewünscht ist. Bei ActivatablePrerequisite wählt man ja auch erst die Entity und dann die Instanz, aber es ist alles in einem einzelnen Voraussetzungstyp.

@Lector

Lector commented Jun 29, 2026

Copy link
Copy Markdown
Collaborator Author

Ist umgesetzt.

@elyukai elyukai left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Ein paar kleine Änderungswünsche hab ich noch. 🙈

DB.Object({
id: DB.Required({
comment: "The required item.",
type: DB.IncludeIdentifierType(TinyActivatableCategory),

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Hier kannst du einfach direkt TinyActivatableIdentifier verwenden und brauchst TinyActivatableCategory nicht extra.

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

Den TinyActivatableIdentifier gibts nicht. Auch nicht in _Identifier.ts. Soll ich den anlegen oder passts so?

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Du hast den in _IdentifierGroup.ts angelegt. 🙈

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Das wird mir hier in der PR jedenfalls so angezeigt.

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

Ja ... war schon ne Weile her

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Alles gut 🙌🏻

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

Jetzt sollte es passen

Comment thread src/types/prerequisites/PrerequisiteGroups.ts Outdated
Comment thread src/types/prerequisites/single/CantripPrerequisite.ts Outdated
Comment thread src/types/prerequisites/single/BlessingPrerequisite.ts Outdated

@elyukai elyukai left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Danke!!

@elyukai
elyukai merged commit a06284c into main Sep 12, 2026
2 checks passed
@elyukai
elyukai deleted the feature/prereq-cantrip branch September 12, 2026 20:15
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.

Magical special ability - prereq - cantrip

2 participants