Talents, proficiencies, armor classes, customizable Tab ring (27.11.2026, Claude)
Owner request (Janari, via project chat): non-combat TALENTS and combat PROFICIENCIES that level by doing; armor split into Light / Medium / Heavy with a tooltip; one window for both, reachable from the Tab ring; the Tab ring customizable in Options (which entries, order), saved per player, with a registry so new entries are easy to add.
Owner rules kept
- Talents: Bartering, Scavenging, Alchemy, Mining, Smelting, Smithing. Lore dropped.
- Crafting / smithing never fails:
ForgeUpgradeService.get_success_chance()always 1.0. - Smithing only lowers costs (forge gold).
- Shop buy price always above sell price; base rule buy = 2 x value is unchanged at level 0.
- Proficiencies only from use: weapon XP from damaging hits, armor XP from enemy hits split by number of worn pieces per class.
- Talents also level by doing (coordinator proposal, owner did not object). No points.
Numbers (Scripts/Services/TalentRules.gd, edit there)
Max level 50. XP for next level = 20 + 10 x level (level 50 = 13 250 XP total).
| Id | Trained by | Bonus per level (max at 50) |
|---|---|---|
| bartering | every buy/sell: 1 XP + gold/10 (max 200) | sell +0.6 % (+30 %), buy markup 2.0 -> 1.6; buy >= sell + 1 always |
| scavenging | kill drops: 1 XP per gold/material drop + gold/10 | gold piles +1 %, material drop chance +1 % (+50 %) |
| alchemy | drinking a potion: 3 XP (brewing does not exist yet) | potions restore +1 % (+50 %) |
| mining | each ore: 5 XP | 1 % chance of an extra ore (50 %) |
| smelting | each smelt: 4 XP + recipe gold/5 | 0.6 % bonus ingot chance (30 %) |
| smithing | upgrade 5 + 2 x new level, socket 8, soul 4 XP | forge gold costs -0.8 % (-40 %) |
| weapons (11) | 1 XP per hit that damages an enemy | +0.4 % damage (+20 %) |
| armor (3) | 1 XP per enemy hit, split by worn pieces | -0.06 % damage taken per worn piece (5 pieces at 50 = -15 %, floor -50 %) |
Weapon classes: Sword, Axe, Hammer, Mace, Dagger, Spear, Tools (2H Tool + Pickaxe), Bow, Staff, Wand, Unarmed. Skeleton (rage) form trains nothing.
Where it hooks in
- Data:
PlayerStats.Stats["Talents"],["Proficiencies"]= {id: total XP}; absent = 0, so old saves need no migration.PlayerStats.grant_progress_xp(id, xp)+ signalprogress_level_up(id, level); rules are pure static on the stats Dictionary (server-ready). - Bartering:
ShopTransactionService.get_buy_price/get_sell_price(item, level=-1)(-1 = local player) +grant_trade_xpin buy_item / sell_item / sell_quantity. Online shop untouched. - Scavenging:
RewardService.grant_world_drops(..., player_stats). - Alchemy:
Inventory.use_consumable. Mining:NativeMiningService.strike. Smelting:SmeltingRules.smelt. Smithing:ForgeUpgradeService.get_cost/get_socket_cost(smithing_levelvar, -1 = local player) + XP in upgrade_item/add_socket/socket_soul. - Weapons:
Player.apply_weapon_hit(all player hits incl. projectiles go through it). Armor:Player.Hurt(XP) andPlayer.calculate_received_damage(reduction).
Armor classes (Scripts/Services/ArmorClassRules.gd)
Item data is NOT changed. The old armor_type field is the art folder (Arcane/Light/Medium/ Heavy). SET_CLASS maps all 127 sets to Light (robes/magic, 21 sets), Medium (leather, cloth, archer, hats, 64) or Heavy (iron/plate/chainmail knights, 42); shields follow their set. Items without a set use ART_DEFAULT (Arcane->Light, Light->Medium, Medium->Medium, Heavy->Heavy). Reviewed overrides: robe/mantle sets -> Light; leather/scout/thief tunics in arcane art -> Medium; chainmail knights, Cataphract, Heavy Samurai, Silver Knight, Dark Lord, Glory, Draconic, Wall Keeper, Dark Steel, Lush Knight, Persian Warrior -> Heavy; Hard Leather -> Medium. Item tooltip shows "Heavy Armor - Heavy armor: iron and plate. Trains Heavy Armor (your level N)" and the header type uses the class; weapons show their proficiency level.
UI
Scripts/UI/TalentsMenu.gd: window on its own CanvasLayerGUI/TalentsLayer(created by SelectMenu). Tabs Talents / Proficiencies, rows with level, XP bar, current bonus, how to train. Open from the Tab ring or with K. Level-up note "X reached level N!" above the skill bar (hidden while the window is open).Scripts/Menus/QuickMenuRegistry.gd: ENTRIES (inventory, skills, stats, talents, bestiary, map, quests, pets, factions) + DEFAULT_LAYOUT (Talents took the old "Factions - coming soon" slot). New entry = one row withscene+nodeormethod.SelectMenu.gd: the 8 scene buttons (slot 0 top, clockwise) now openslot_layout[i]; icons/tooltips come from the layout (apply_layout()on every Tab open).- Options > "Quick Menu" button (Pause.gd): 8 drop-downs; picking an entry that is used elsewhere swaps the two slots; "(empty)" allowed; Default / Save. Saved in
PlayerStats.Stats["QuickMenuLayout"](per character = per player profile). - New icon:
Assets/GUI/Icons/Menus/talents_crossed_tools.png(FantasyHeroes pickaxe + blacksmith hammer composite).
Tests / evidence
Scripts/Build/VerifyTalentsProficiencies.gd(headless, isolated APPDATA): 68/68 PASS (curve, buy>sell for all levels/values, level-0 old prices, smithing discount, every armor piece/shield classed: Light 104 / Medium 311 / Heavy 210 items, every weapon type mapped, armor split, registry normalize/swap, icons exist).Scripts/Build/GameChecks/game_check_talents.gdvia run_one_game_check.ps1 (rendered, test profile copy): 27/27 PASS, screenshots intest-results/game_checks/20261127_174532_game_check_talents/(ring default, Talents tab, Proficiencies tab, armor tooltip, Options Quick Menu, customized ring, level-up note).- Regression: VerifySmelting, VerifySkillUnlocks, VerifyEquipmentSetsQuality, VerifyRebirth, game_check_shop_amounts, game_check_forge_drops all PASS after the change.
Not done / open
- No alchemy brewing exists yet (Alchemy levels from drinking potions for now).
- Numbers are a first proposal for Janari to tune (all in TalentRules constants).
- Online slice (OnlineCombatService / online shop) does not grant or use talents yet.
- Before-copies: D:/WieldHavenBackups/archive/talents_proficiencies_20261127/before/. Helper dump script
Scripts/Build/DumpEquipmentClasses.gd(prints the catalog classes).
Version 2 (same day, Janari's follow-up) - talents with points
- Talents are now bought with TALENT POINTS: +1 point every level-up (beside attribute and skill points), max 20 ranks per talent. Talents: Bartering (sell +1.5 %/rank, buy -1 %/rank, buy stays above sell), Scavenging (+2.5 % gold and material drop chance/rank), Alchemy (potions +2.5 %/rank). Window: "+ Learn" button per talent, "Talent points: N".
- Mining, Smelting and Smithing moved to PROFICIENCIES ("Activities" section), still level by doing (owner: every player activity can be a proficiency). Proficiencies are never reset.
- Tome of Unlearning (Consumables item 19, type TalentReset, value 25 000 -> shop 50 000 gold, stack 9): gives every spent talent point back; not used up if nothing is spent.
- Skill points can already be taken back with the minus button in Skills (unchanged).
- Save: Stats["Talents"] = {id: rank}, Stats["TalentPoints"], Stats["TalentSystemVersion"]=2. Saves without the version (incl. the first version's use-based talent XP) migrate once: Mining/Smelting/Smithing XP -> Proficiencies, other old talent XP dropped, points = level - 1.
- Level-up note "+1 talent point - open Talents (K)".
- First version archived: D:/WieldHavenBackups/archive/talents_proficiencies_20261127/TalentRules_v1_use_based_talents.gd
- Quick Menu test: Scripts/Build/GameChecks/game_check_quick_menu.gd (4 layouts via Options, every slot opens its menu, empty slots, hover names, reload) 93/93 PASS, test-results/game_checks/20261127_181621_game_check_quick_menu/. Fixed: "Factions - coming soon" text stayed on the ring centre; Talents ring icon was too big.
- game_check_talents.gd 31/31 PASS: test-results/game_checks/20261127_181341_game_check_talents/.
- Armor class overview images/list for the website: docs/ai_context/armor_classes_20261127/.
- Open: talent points keep growing across rebirths (levels 60/70/80 = more points than the 60 ranks of 3 talents); more talents can be added to TalentRules.TALENTS.
- Janari 27.11: Hammer and Mace merged into one proficiency "Hammer & Mace" (id hammer; TalentRules.MERGED_IDS moves old "mace" XP into it on load). 10 weapon proficiencies now. Verify 0 failures, game_check_talents PASS (test-results/game_checks/20261127_182749_game_check_talents/).
- Janari 27.11: Escape (Game Menu) "Character" column now lists EVERY menu from QuickMenuRegistry (+ Equipment shortcut), 2-column buttons with icons; opens through SelectMenu.open_entry, so a new registry row appears in the ring options AND in Escape. The old seven picture buttons are hidden, not removed (older Verify* scripts click them; they need the AllMenus buttons if rerun). Before-copy: D:/WieldHavenBackups/archive/talents_proficiencies_20261127/Pause_before_all_menus.gd. Check: GameChecks/game_check_pause_menus.gd 22/22 PASS (test-results/game_checks/20261127_185437_game_check_pause_menus/).
- Achievements got its own trophy icon (Assets/GUI/Icons/Menus/icon_trophy.png, GUI PRO Kit pack); the flag stays for Factions.
- Janari 27.11: Escape menu restyled to the game UI (Pause.gd "game skin"): inventory panel Background.png as 9-slice frame, blue shop_label ribbon title, glossy GUI PRO Kit buttons (Resume green, Settings blue, Save & Main Menu brown, Save & Exit red; character list dark with blue-gray hover; Settings/Quick Menu footers brown/blue/green), white outlined text, DecoLine2 under section titles. Old TextureButtons keep node/signals/click area (skin is a NinePatchRect child), so Escape/Exit save flow and older verifiers are unchanged. Before-copy D:/WieldHavenBackups/archive/talents_proficiencies_20261127/Pause_before_skin.gd. game_check_pause_menus 23/23 PASS, before/after: test-results/game_checks/20261127_190445_game_check_pause_menus/before_after.png
- Settings controls also skinned (Pause.skin_settings_controls): GUI PRO Kit switch on/off (Assets/GUI/Settings/switch_*.png, composed from the kit's switch frame + handle, ON tinted green), gold slider fill on the kit's dark slider track with round handle, drop-downs as dark glossy buttons with a navy popup. game_check_pause_menus 23/23 PASS (test-results/game_checks/20261127_190739_game_check_pause_menus/).