Skip to content

Dungeon mage weapons API: runes socketed, power, kept apart from crafted gear - #82

Draft
XxFran10xX wants to merge 2 commits into
mainfrom
feat/dungeon-weapons
Draft

XxFran10xX wants to merge 2 commits into
mainfrom
feat/dungeon-weapons

Conversation

@XxFran10xX

@XxFran10xX XxFran10xX commented Nov 25, 2026 •

Copy link
Copy Markdown
Contributor

Status record

  • Head 5f367ef. Draft: needed by TrialRooms' dungeon mage weapons (TrialRooms PR on feat/dungeon-sets). Released as 0.17.0 when the dungeon build is merged.
  • Reviewed: Fable round 1. The one finding was an Unsocket Tool that skips the guard event. It doesn't apply to the live tool: live UNSOCKET_TOOL uses random-unsocket, whose code fires UnsocketGemStoneEvent, and no live item uses can-unsocket. Round 2 is still to come.
  • Tests: 6 new tests; every class touched is at 100%. The full suite on Windows has only the failures clean main has there.
  • Dev: dungeon staffs, wands and blades built with their runes on TFMCDev01.

What it adds

net.tfminecraft.magic.api.DungeonWeapons:

  • archetypes(): archetypes with a steel core (staff, wand, sword).
  • runes(archetype, slot): the school runes (Seithr, Oseni, Cerrith, Mitlan) that fit a socket slot.
  • build(archetype, runes, power, extraStats, name, lore): a finished, unbreakable weapon with exactly those runes socketed, on fixed buttons (right, shift-right, left, shift-left).
  • isDungeonWeapon(item).

How power works:

  • Attack damage is multiplied by power.
  • Skill damage gets (power − 1) × 100 %, so spells, heals and shields grow the same.
  • Magic damage is left alone, because wand shots and blade hits are magic damage too and would grow twice.

How these weapons are kept apart from crafted gear:

  • They carry only magic:dungeon_weapon, so attunement, resonance gating, cast wear, refresh, the station and the Recycler leave them alone.
  • Their class limit is the template's.
  • Unsocketing and MMOItems reforging are refused, and item damage is cancelled.

Owner decisions (5f367ef)

  • Equilibrium: holdEquilibrium(where) lets TrialRooms stop casts in a dungeon run from moving it. What a character trains belongs to the gear they own.
  • Class skills: none affected. Mage, Invoker, Conjurer and Battlemage have no class skills on Main, only the TFMC_Recovery regen, which reads no stat. Skill damage therefore raises the weapon's runes and nothing else.
  • Runes without numbers: they stay in the pool.

🤖 Generated with Claude Code

DungeonWeapons builds a finished steel staff, wand or blade with its runes
in, for TrialRooms' dungeons. It carries its own mark and none of crafted
gear's, so nothing gates, wears, refreshes, recycles or owns it. Unsocketing
and MMOItems reforging are refused.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@coderabbitai

coderabbitai Bot commented Nov 25, 2026

Copy link
Copy Markdown

Important

Draft PR not reviewed

Draft PRs are not automatically reviewed by default.

  • Trigger a manual review

To automatically review draft PRs, update your CodeRabbit configuration:

reviews:
  auto_review:
    drafts: true
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

@github-actions github-actions Bot added the size:L 100-499 effective changed lines (tests excluded in mixed PRs). label Nov 25, 2026
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size:L 100-499 effective changed lines (tests excluded in mixed PRs).

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant