- Add Epic Fight via CurseMaven as an implementation dependency and Skill Tree as compile-only - Pass Epic Fight refmap remapping properties to the run configuration - Add JUnit 5 test dependencies and enable JUnit platform in the test task - Ignore reference/ recordings in .gitignore
145 lines
11 KiB
Markdown
145 lines
11 KiB
Markdown
# TCR integration (ResonantCombat)
|
||
|
||
Everything that only applies when ResonantCombat runs inside The Casket of Reveries (TCoR / TCR). The base mod must work without any of this. `CLAUDE.md` holds the general design; this file holds the TCR-specific part.
|
||
|
||
Tags: **Decided**, **Leaning**, **Open**. Numbers are placeholders.
|
||
|
||
## Rules
|
||
|
||
- **Decided.** The integration is optional. It is active only when the `tcrcore` mod is loaded.
|
||
- **Decided.** No Java dependency on TCR Core classes. TCR Core is mixin-heavy and changes between versions. The link is through entity ids, advancements and datapack rules only.
|
||
- **Decided.** The base mod has no story. Without TCR, the first awakening still comes from context signals (trigger still open in `CLAUDE.md`).
|
||
- Packaging: the generic trigger rule lives in the base mod. The TCR part is a small optional datapack (or a mod-compat resource) that uses it.
|
||
|
||
## Versions these notes were read from
|
||
|
||
Read from the jars you sent, not from running the game.
|
||
|
||
| Mod | Version |
|
||
|---|---|
|
||
| TCR Core (`tcrcore`) | 2.8.5 |
|
||
| TCR Bosses (`tcr_bosses`) | 1.1.11 |
|
||
| Brass-Amber BattleTowers (`ba_bt`) | 1.20.1-3.0.0-beta3.2.1 |
|
||
| Epic Fight | 20.14.16 |
|
||
|
||
## First awakening
|
||
|
||
- **Decided.** The first awakening happens at the **first fight against the Land Tower guardian** in the story: Bahryn'muul, the Entombed Watcher (`ba_bt:land_golem`).
|
||
- **Decided.** It gives **Spectro**, for every player. The story sets the element, so it is not rolled from context.
|
||
- **Decided.** It is outcome `FIRST`. It also fixes the Forte archetype.
|
||
- **Done (0.0.1-beta):** `data/resonantcombat/awakening_rules/tcr/land_tower.json`. Every player who damaged the golem and is within 64 blocks when it dies awakens as Spectro (participant tracking: `awakening/FightParticipation`). Already awakened players are skipped. Feedback: chat line, beacon + amethyst sound, light particles. **Not yet:** the archetype; players awakened this way have no Forte until archetypes are decided (open item 2), which will need a one-time "assign archetype" path for them.
|
||
- **Leaning.** The archetype is picked from how the player fought the golem (melee, ranged, dodging, blocking). This is real combat, unlike the Training Golem tutorial, where everyone is forced to dodge and parry. **Open:** how fight signals are collected over the length of a boss fight, and what happens when several players share the fight.
|
||
- **Why Spectro:** the guardian is an ancient stone sentinel, TCR calls the player the "Pure Angel", and the enemy is the Black Tide. Light against darkness. Wuthering Waves also starts Rover as Spectro.
|
||
- **Not verified:** that the Land Tower fight is the first fight of the story. It is your design statement, and I could not read the quest order from the compiled TCR Core classes.
|
||
|
||
## Trigger rule (generic, base mod)
|
||
|
||
A datapack rule that fires an awakening. Sketch only, field names are not final.
|
||
|
||
```json
|
||
{
|
||
"trigger": "entity_killed",
|
||
"entity": "ba_bt:land_golem",
|
||
"requires_mods": ["tcrcore"],
|
||
"awaken": {
|
||
"outcome": "first",
|
||
"force_element": "spectro",
|
||
"archetype_from": "fight_signals"
|
||
}
|
||
}
|
||
```
|
||
|
||
- `force_element` is optional. Without it, the element comes from the context weight tables.
|
||
- Other trigger types worth supporting: advancement gained, item obtained.
|
||
- **Decided.** Use the entity kill event, not TCR Core's own progress flags, so there is no code dependency.
|
||
- **Done (0.0.1-beta), actual format** (`awakening/AwakeningRuleLoader`, core `AwakeningRule`):
|
||
```json
|
||
{ "forge:conditions": [ { "type": "forge:mod_loaded", "modid": "tcrcore" } ],
|
||
"trigger": { "type": "entity_killed", "entity": "ba_bt:land_golem", "participant_radius": 64 },
|
||
"awaken": { "outcome": "first", "force_element": "spectro", "archetype": "optional id" } }
|
||
```
|
||
- Differently from the sketch: Forge's standard `forge:conditions` instead of `requires_mods`. Only `entity_killed` and `first` exist; `force_element` is required for now (context-picked elements are not wired). Participants = players who damaged the mob, online, same dimension, within the radius at its death.
|
||
|
||
## Kit (TCR)
|
||
|
||
- **Decided.** No separate Resonance Skills. A weapon's inherent skill (Epic Fight innate skill) *is* the skill: its look comes from the weapon, the element only adds onto it (Spectro: +3 Spectro Frazzle stacks per skill hit, see `CLAUDE.md`, Status effects).
|
||
- **Decided.** Six Liberations (ults) for now, one per element. These are the only moves the mod animates for TCR. The base mod's "Liberation by archetype × element" (`CLAUDE.md`, Forte) is not needed for TCR yet.
|
||
- **Decided.** The Spectro kit unlocked at the Land Tower plays like Spectro Rover in Wuthering Waves, but as a DPS, not a sub-DPS (there is no party swap in Minecraft, so the payoff stays on the player): basic and skill hits stack Spectro Frazzle, the Liberation cashes it in.
|
||
- **Done:** Spectro Frazzle and the Element Mark (stacks from hits).
|
||
- **Done (code), animation pending:** Spectro Liberation, key **L**. Costs a full bar of Resonance Energy (filled by an awakened player's hits; HUD sprite right of the hotbar fills and pulses when ready). Detonates `impactSeconds` (0.6 s) after the press, 2.5 blocks ahead, radius 4: 3× the player's attack damage as a Spectro hit (resistances apply), then every hit target's remaining Spectro Frazzle is dealt at once (cash-in). Player untouchable during the animation. Never hits players or the caster's allies. Values in `ResonanceConfig.Liberation`. Other elements: "does not exist yet".
|
||
- **Animation contract** (owner is making it): `assets/resonantcombat/animmodels/animations/biped/liberation/spectro.json`, registered automatically as `resonantcombat:biped/liberation/spectro` when the file is in the jar. Any length; the detonation happens at 0.6 s (change `impactSeconds` to match your impact frame). Last frame back to idle (end-pose check). Without the file the Liberation works without animation.
|
||
- **Done: kit upgrades through Epic Fight: Skill Tree.** A hidden, locked tree `resonantcombat:spectro` ("Spectro Resonance") with 7 nodes. The Land Tower awakening rule unlocks it (`unlock_skill_trees`; `/resonance awaken spectro` does too). Nodes are Epic Fight skills in our own slot-less category, so unlocking them never takes passive slots; the mod reads the unlock state from the Skill Tree mod (optional, compile-only; without it nobody has upgrades). Ability points come from the Skill Tree mod as usual.
|
||
- **Proposed by Claude, not decided** (values `ResonanceConfig.SpectroKit`, layout `data/resonantcombat/epicskills/entry/spectro.json`):
|
||
|
||
| Node | Cost | Effect | Needs |
|
||
|---|---|---|---|
|
||
| Resonant Flow | 1 | +25% energy per hit | |
|
||
| Radiant Strikes | 2 | basic hits +1 Frazzle stack | |
|
||
| Lingering Radiance | 2 | Frazzle max +5 stacks | |
|
||
| Echoing Orchestra | 3 | Liberation +30% damage | Resonant Flow |
|
||
| Harmonic Edge | 2 | weapon skills +2 Frazzle stacks | Radiant Strikes |
|
||
| Searing Light | 3 | Frazzle damage +40% | Lingering Radiance |
|
||
| Light Collapse | 5 | Liberation cash-in +50% | Echoing Orchestra, Searing Light |
|
||
- Test commands: `/resonance energy 100`, `/resonance upgrades`, `/resonance upgrade <id>` (dev grant without the tree).
|
||
|
||
## Element switching
|
||
|
||
- **Decided.** Element switching exists only in TCR. In the base mod it is disabled.
|
||
- **Decided.** One config flag, `elementSwitching`, default **off**.
|
||
- Off: a `SWITCH` awakening replaces the element permanently.
|
||
- On: a `SWITCH` awakening adds the element to the player's unlocked set, and the player picks the active one (like Rover in Wuthering Waves).
|
||
- **Decided.** The TCR preset turns the flag on.
|
||
- **Decided.** The Forte tree is shared and modular, so a switch keeps all levels and changes only the payload (status effect, visuals, Liberation payload). The archetype never changes.
|
||
- **Open:** the limit on switching (cooldown, or out of combat only), and what `STRENGTHEN` does per element.
|
||
|
||
## Eye of God to element map (proposal)
|
||
|
||
The story has eight altars and Eyes of the Gods. Killing the boss gives the Eye, and praying at the goddess statue with an Eye shares a portion of the Angel's power. Spectro is already taken by the first awakening, so the Desert Eye needed a new element.
|
||
|
||
| Altar | TCR boss (entity id) | Element | Confidence |
|
||
|---|---|---|---|
|
||
| Flame | Ignis Ardens (`tcr_bosses:ignis_humanoid`) | Fusion | high |
|
||
| Monst | Infernus Abyssus (`tcr_bosses:netherite_humanoid`) | Fusion | medium |
|
||
| Abyss | Thalassa Mare (`tcr_bosses:leviathan_humanoid`) | Glacio | medium |
|
||
| Mech | Letum Quietus (`tcr_bosses:harbinger_humanoid`) | Electro | medium |
|
||
| Storm | Caelum Altum (`tcr_bosses:scylla_humanoid`) | Electro or Aero | low |
|
||
| Void | Nihil Vacuum (`tcr_bosses:ender_guardian_humanoid`) | Havoc | high |
|
||
| Cursed | Anima Essentia (`tcr_bosses:maledictus_humanoid`) | Havoc | medium |
|
||
| Desert | Terra Montis (`tcr_bosses:ancient_remnant_humanoid`) | Fusion or Havoc | low, **Open** |
|
||
| Sky (Aether) | Valkyrie Queen (`tcr_bosses:valkyrie`) | Aero | high |
|
||
|
||
- The altar-to-boss pairing is my inference from the names. No file states it.
|
||
- **Leaning.** Each Eye kill adds its element to the unlocked set when `elementSwitching` is on. Later awakenings stay hidden and random as decided in `CLAUDE.md`, and an Eye only adds weight.
|
||
- **Open:** whether an Eye is a guaranteed unlock or only a weight.
|
||
- Aero has only one source (Valkyrie Queen), and Spectro comes only from the Land Tower. Check that a player can reach every element in the pack.
|
||
|
||
## Battle Tower guardians (Brass-Amber)
|
||
|
||
Element hints for context signals. Only the Land tower is decided.
|
||
|
||
| Tower | Entity id | Element lean |
|
||
|---|---|---|
|
||
| Land | `ba_bt:land_golem` | **Spectro (first awakening)** |
|
||
| Ocean | `ba_bt:ocean_golem` | Glacio |
|
||
| Core | `ba_bt:core_golem` | Fusion (low) |
|
||
| Nether | `ba_bt:nether_golem` | Fusion |
|
||
| End | `ba_bt:end_golem` | Havoc |
|
||
| Sky | `ba_bt:sky_golem` | Aero |
|
||
|
||
## TCR facts worth knowing (from the jars)
|
||
|
||
- Per-player progress flags in TCR Core: `tutorial_passed`, `firstJoint`, `abyssEyeKilled`, `cursedEyeKilled`, `desertEyeKilled`, `flameEyeKilled`, `mechEyeKilled`, `monstEyeKilled`, `stormEyeKilled`, `voidEyeKilled`, `isAllEyeKilled`, `isAllHumanoidKilled`, `finalBossKilled`, `bossRushFinished`. Useful for reading the story state, but we do not link to them in code.
|
||
- Dimensions and places: the Sanctum (hub), Cloudland, the Primordial Sea, the Ship Graveyard, River Styx, Infinite Samsara (boss rush), the Primal Arena, the Lethean Sea (The Mimic), the Sanctum of the Wraithon.
|
||
- Training Golem (`tcrcore:tutorial_golem`) teaches lock-on, dodge, parry, perfect dodge and parry. It sets `tutorial_passed`.
|
||
- The main story runs in TCR Core's Java quest manager, not in the FTB Quests chapters. The FTB chapters hold side content (boss kill lists, weapons, equipment).
|
||
- Mods with no element data yet: The Mimic (Proteus), wraithon (The Wraithon), Weapons of Miracles mobs (Hollow, Saulomonk, Lycanth, Evil Skeleton, Lupus Aureum).
|
||
|
||
## Open items
|
||
|
||
1. Confirm the Land Tower fight is the first story fight.
|
||
2. How fight signals are collected for the archetype, and the multiplayer case.
|
||
3. Desert Eye element.
|
||
4. The limit on switching, and what `STRENGTHEN` does per element.
|
||
5. Whether an Eye is a guaranteed unlock or only a weight.
|
||
6. Element data for Proteus, The Wraithon and the Weapons of Miracles mobs.
|
||
7. Decompile TCR Core's quest manager (only if the exact quest order matters). |