Skill Unlocks (locked start), 2026-11-26 (Claude, owner-approved)
Owner ask: new character starts with an EMPTY skill bar and EVERY skill locked. Unlocking/ranking a skill costs 1 skill point AND minimum attributes. Must stay multiplayer/server-authoritative friendly.
What was built
Scripts/Services/SkillUnlockRules.gd(NEW, pure static, no nodes/saves): requirement table per skill (primary attr, secondary attr, tier 1..5),check_learn(stats, skills, id)-> {ok, reason},apply_learn,floor_rank,base_attribute(equipment bonuses do NOT count). A future server runs the same functions on its own stats copy; client sends only "learn <id>".- Formula: primary = 10 + 5*(tier-1) + 4*(rank-1); secondary = 10 + 3*(tier-1) + 2*(rank-1). Tier1 rank1 = 10/10 (start value) + skill point. Tier3 rank1 = 20/16. Tier5 rank1 = 30/22, rank5 = 46/30.
SkillsList.gd:apply_unlock_requirements()overwrites level requirements from the table (morph skills 101-105 keep their own).PlayerStats.gd: defaults now Skill1-20 = 0, all 15 bar slots = 0, SkillPoints = 1 (starting point),SkillUnlockVersion= 1. Load: save withoutSkillUnlockVersion= legacy -> marker 0 in memory (no forced rewrite), keeps old free ranks/default bar.normalize_skill_systemgives no free ranks/bar skills to locked-start characters.Skills.gd: can_level/level via rules; requirement display uses base attribute; locked-start skills can be lowered to 0 (refund only invested points) and are removed from the bar. Morph skills floor stays 1.MagicSkillTree.gd: Prismatic Lance/Glacial Fan visible+learnable (via prerequisites) for locked-start; legacy saves keep the old hidden rule.- Points per level unchanged: StatPoints +1/level, +5 at 10/20/30/40 (start 5); SkillPoints +1/level.
Attribute rescale 100 -> 10 (owner follow-up, same day)
Owner: all attributes start at 10, first skills need ~10, points grow over time.
NativeAttributeRules.gd: BASELINE 10, bonuses = growth above 10 (per-point effect unchanged, so combat unchanged).speed_multiplier(speed) = (speed+90)/100(Speed 10 = old 100 = 1.0x), SPEED_MAX 410.migrate_legacy_scale()= -90 per stored attribute, keyAttributeScaleVersion= 1.- PlayerStats defaults: all 8 attributes 10, SPEED_STAT_MAX 410. Load: save without
AttributeScaleVersion-> only its stored attributes migrated (-90, min 1). Legacy saves missing Skill1-20/bar keys get old free rank 1/default bar again. - Player/PlayerStatsMenu speed via speed_multiplier; GUI/Inventory dev Speed buttons clamp 1..410. Online code untouched (still shows its own speed).
- Owner saves backed up BEFORE:
D:/WieldHavenBackups/archive/skill_unlock_20261126/owner_saves_before_attribute_rescale/(SaveSlots + res SAVE, SHA256SUMS). Owner saves were not loaded by tests; copies of all 4 slots migrated 100->10, ranks/bar kept (owner_copy_stdout.log). Real owner saves convert on Janari's next load and persist on next save.
Evidence
Scripts/Build/VerifySkillUnlocks.gd, isolated APPDATA (never owner saves): 41/41 PASS,test-results/skill_unlocks_20261126/report.json(new game locked + empty bar, reload, table, gear not counted, prerequisites, legacy kept, normalize, real Skills.tscn menu learn/unlearn/refund).- Also: attributes start 10, speed curve, legacy rescale once, real res://SAVE legacy file.
- All changed scripts compile in the editor (MCP validate_script).
- NOT checked: rendered screenshot / owner playtest of new-character flow; balance feel; online server code (untouched by design).
Open owner choices (proposed defaults in place)
Owner accepted start 10 + 1 starting skill point. Still open: tier/rank steps feel; requirements also apply to legacy characters' further ranks.
Rollback
Before copies + SHA256: D:/WieldHavenBackups/archive/skill_unlock_20261126/before/. Rescale before copies: .../skill_unlock_20261126/before_attribute_rescale/ (restore with the owner_saves copy if a rollback must undo migrated saves). Restore the five files together (SkillsList, Skills, PlayerStats, MagicSkillTree, NativeSaveGuard unchanged copy); SkillUnlockRules.gd and the verifier can stay unused.