Show navigation
Constellations
The table, the activation, the talent levels the third and fifth add, and the Stella Fortuna a wish brings are built, as the constellations page records. What is left is the Constellation tab's press, which the drawn tab is ready for; each constellation's effect, which waits on the character kits; and the Traveler's element sets, which wait on their sources.
Decisions
- Each constellation's effect is written in its character's kit module. A switch is a small module over the kit's shared effects, reading its numbers from the table's
paramList, as a character's own module reads its talents. Each is written from its constellation's description and the wiki's notes on it, the same as the module it joins. - The Traveler's sets come by element. The statue a Traveler resonates with picks the set, and each set's source unlocks it: Archon Quests, Souvenir Shops, Adventure Rank rewards for Anemo, Statue of The Seven levels for Electro, Dendro, Hydro and Cryo, and Natlan's tribe reputation for Pyro, as the wiki lists them. Each comes with the page that builds its source.
- The Constellation tab activates from the character screen. It lists the six with their state and presses the activation. Its look is the character screen's.
- The tab asks before it presses. As the Talents tab does, one function names why the next constellation cannot be activated now (all six active, or no Stella Fortuna held), and
activateConstellationthrows on that same answer, so no refusal is ever caught. - The wish hands its Stella Fortuna over where it adds new characters.
Wish/Screenalready appends a wish's new characters; the same step addsstellaFortunaCountMap's counts to the characters they belong to, so a duplicate's Stella Fortuna reaches its character the moment it is drawn.
How it works
flowchart LR TAB["Constellation tab: press the next"] --> ACT["activateConstellation: one Stella Fortuna spent"] ACT --> ACTIVE["Constellation active"] ACTIVE -->|"a switch"| KIT["The character's kit module reads it"] ACTIVE -->|"third or fifth"| ADD["Its talent's additions, already read"] STATUE["Statue resonated"] -->|"picks the element's set"| ACT
Scope and order
Today: what is built is on the constellations page. Nothing yet reads a constellation's effect, and the Traveler has no set chosen.
This adds, in order:
Copy
packages/genshin-world/src/services/character/getConstellationActivationRefusal.ts
- The Constellation tab's activation, and the wish's Stella Fortuna handed over. The tab is drawn already, so this is its press and its supply.
- The rules. A new
getConstellationActivationRefusal.tsreturns aConstellationActivationRefusal(models/character/ConstellationActivationRefusal.ts:AllActive,NoStellaFortuna) orundefined, andactivateConstellationthrows on that refusal rather than checking for itself. A newaddStellaFortuna.tsbeside it takes the characters and a wish'sstellaFortunaCountMapand returns the characters with each count added to its own.getConstellationActivationRefusal.test.tsasserts both refusals and none, andaddStellaFortuna.test.tsthat only the characters the map names gain, by their counts. - The supply.
Wish/ScreenappliesaddStellaFortunawhere it appends the new characters, sov-model:characterscarries both. - The tab.
World/SessionloadsreadConstellationTables(), which nothing calls yet, and handsCharacterScreenthe chosen character's set.CharacterMenuConstellation(packages/genshin-interface/src/components/CharacterMenuConstellation/Index.vue) gainsisActivateDisabledand emitsactivatefrom an Activate button under the rings, its label theGameTextKeythatgenshin:text find "^Activate$"returns.Character/Screendisables it on a refusal and onactivateemits the characteractivateConstellationreturns throughv-model:characters, wired inWorld/SessionasWishScreen's is. The button's place is provisional, queued for the user's eyes againstcharacter-constellation.
- The rules. A new
- Each constellation's effect, written in its character's kit module as each module is built on the character kits page, the unit the other machine holds.
- The Traveler's sets, each unlocked by its source, with the element a statue gives picking the set the Traveler's kit reads, each with the page that builds its source.
- The wish screen's showing of the Stella Fortuna and Masterless Stella Fortuna a draw brings, on its results' cards.
Data and measures
- Read from the game's tables: each effect's numbers are the table's
paramList, already written. - Measured: nothing; the Constellation tab's look is the character screen's.
Key files
Nothing is listed yet: each character's constellation effects are a module of their own under the kit folder, which this change creates, so no file it names exists to be listed.
Sources
- Constellation, Genshin Impact Wiki: what each constellation changes, and the Traveler's sources by element.
Scroll to top