Rebirth (taassünd), 2026-11-26 (Claude, owner-approved in chat)
Owner idea: classic-MMO style rebirth with our own names. Level cap, a dedicated NPC, a quest chain and an offering; rebirth gives a stronger character. Multiplayer-friendly: all rules are pure functions on a Stats dictionary.
Owner rules (Janari 26.11.2026)
- Only 2 rebirths total. Level caps 60 -> 70 (after R1) -> 80 (after R2). R1 needs level 60, R2 needs level 70.
- Every attribute base rises (incl. Speed): R1 +15 (10 -> 25), R2 +20 (-> 45). Second rebirth stronger than the first. Speed is capped at 100 overall (no speed souls).
- Skill points: R1 +2, R2 +3.
- XP bonus: R1 +25 % while level < 60, R2 +35 % while level < 70, then normal XP. Additive with equipment
ExperienceBonus(XP souls, sets thread). No XP at the cap. - Cost should be high (late-game gold): R1 500 000 gold, R2 1 000 000 gold.
Built
Scripts/Services/RebirthRules.gd(NEW, pure static): LEVEL_CAPS, TIERS, can_start_trial/start_trial/progress/claim, apply_xp_bonus, level_growth (mirrors PlayerStats.Level_Up pool growth; keep in sync). Stats keys: RebirthCount, RebirthTrialStage, RebirthTrialKillBase, RebirthTrialBossBase (old saves: absent = 0).- Quest "Trial of Embers": kills since start of orcs/demons (bestiary keys starting "Orc "/"Demon ", bosses excluded) R1 30 / R2 50, plus one kill each of Orc Warlord ("Warlord's Tusk") and Demon Lord ("Demon Lord's Horn") after the trial started, plus gold. Progress is read from Stats.EnemyKills (no kill hook, no inventory items).
- Claim: level 1, XP 0/100, level pool growth removed from MaxHealth/Mana/Stamina, gold paid, attributes/skill points added, bars full. Gear, inventory, skills, pets, spent attributes kept. NPC then calls PlayerStats.refresh_attribute_bonuses + save.
Scripts/NPCs/RebirthOracleNPC.gd+Scenes/NPCs/RebirthOracleNPC.tscn(NEW): "Vaara", extends SkeletonQuestNPC.gd, choice dialogues, marker ! / ... / ? (hidden below the level).- MainWorld.tscn: one RebirthOracleNPC instance at (880, 1040) (text edit; ext_resource id rebirth_oracle_npc). RewardService.grant_player_rewards: one XP line through RebirthRules.apply_xp_bonus. PlayerStats Level_Up cap guard + ExperienceBonus were added by the sets thread (owner of PlayerStats.gd).
Evidence
Scripts/Build/VerifyRebirth.gd, isolated APPDATA: 44/44 PASS (test-results/rebirth_20261126/report.json): caps, pre-trial kills ignored, skeletons ignored, trophies, gold, R1/R2 rewards, speed cap 100, XP 25/35 % window and soul additivity, 0 XP at cap, no third rebirth, legacy save, real RewardService, real NPC scene accept/claim with PlayerStats autoload, persistence after reload.Scripts/Build/VerifyRebirthPlacement.gd: 7/7 PASS (placement.json): NPC in Main, >=150 px from other NPCs, no root node within 160 px, no collision tiles at feet.- All new scripts compile (MCP validate_script).
- NOT checked: rendered screenshot / owner playtest of Vaara in Main (tile check ignores parent layer offset), dialogue look, balance, online server code (untouched).
- The Godot editor had MainWorld.tscn open during the disk edit: reload it from disk before any editor save of Main, or the instance is lost.
Open / follow-ups
- Show "Reborn I/II" title in stats menu / character panel (not done).
- Global speed cap 410 -> 100 lives in PlayerStats/NativeAttributeRules (sets thread).
- Vaara look (owner 26.11: NEVER tint whole NPCs/items): HeroEditor 2D rig entry in Scripts/Rig/RigNpc.gd LOOKS: FireAdept robe + FireAdeptHood + ElderStaff, long white hair. Lineup proof: test-results/rebirth_20261126/npc_lineup/npc_lineup.png (game_check_npc_lineup.gd now includes RebirthOracleNPC). Old fallback sprite = untinted quest giver sheet.
Rollback
Before copies + SHA256SUMS: D:/WieldHavenBackups/archive/rebirth_20261126/before/ (MainWorld.tscn, RewardService.gd). New files can stay unused.