Refactor large files into modular components
Build and Publish Mana Loop Docker Image / build-and-publish (push) Failing after 1m9s

- Refactored page.tsx (613→252 lines) with GameOverScreen and LeftPanel extracted
- Refactored StatsTab.tsx (584→92 lines) with section components
- Refactored SkillsTab.tsx (434→54 lines) with sub-components
- Created modular structure for GameContext, LootInventory, and other components
- All extracted components organized into feature directories
This commit is contained in:
Refactoring Agent
2026-05-02 17:35:03 +02:00
parent c9ae2576f4
commit d2d28887b1
194 changed files with 16862 additions and 15729 deletions
@@ -0,0 +1,79 @@
// ─── Guardian Skills Tier Definitions ──────────────────────────────
// This file contains: Guardian Bane
import { createPerk } from './utils';
import type { SkillTierDef } from '../types';
// ─── GUARDIAN BANE TALENT TREE ──────────────────────────────────────────
export const GUARDIAN_BANE_TIERS: SkillTierDef[] = [
// TIER 1
{
tier: 1,
skillId: 'guardianBane',
name: 'Guardian Bane',
multiplier: 1,
l5Perks: [
createPerk('gb_t1_l5_a', 'Bane Training', '+20% damage vs guardians', 'A',
{ type: 'multiplier', stat: 'guardianDamage', value: 0.20 }, false, 1.5, 5),
createPerk('gb_t1_l5_b', 'Focused Bane', '+10% crit damage vs guardians', 'B',
{ type: 'multiplier', stat: 'guardianCritDamage', value: 0.10 }, false, 1.5, 5),
createPerk('gb_t1_l5_c', 'Swift Bane', '+10% attack speed vs guardians', 'C',
{ type: 'multiplier', stat: 'guardianAttackSpeed', value: 0.10 }, false, 1.5, 5),
],
l10Perks: [
createPerk('gb_t1_l10_a', 'Greater Bane', '+30% damage vs guardians', 'A',
{ type: 'multiplier', stat: 'guardianDamage', value: 0.30 }, false, 2.0, 10),
createPerk('gb_t1_l10_b', 'Deadly Bane', '+15% crit damage vs guardians', 'B',
{ type: 'multiplier', stat: 'guardianCritDamage', value: 0.15 }, false, 2.0, 10),
createPerk('gb_t1_l10_c', 'Rapid Bane', '+15% attack speed vs guardians', 'C',
{ type: 'multiplier', stat: 'guardianAttackSpeed', value: 0.15 }, false, 2.0, 10),
],
},
// TIER 2
{
tier: 2,
skillId: 'guardianBane_t2',
name: 'Greater Bane',
multiplier: 10,
l5Perks: [
createPerk('gb_t2_l5_a', 'Master Bane', '+40% damage vs guardians', 'A',
{ type: 'multiplier', stat: 'guardianDamage', value: 0.40 }, false, 2.0, 5),
createPerk('gb_t2_l5_b', 'Supreme Crit', '+20% crit damage vs guardians', 'B',
{ type: 'multiplier', stat: 'guardianCritDamage', value: 0.20 }, false, 2.0, 5),
createPerk('gb_t2_l5_c', 'Lightning Bane', '+20% attack speed vs guardians', 'C',
{ type: 'multiplier', stat: 'guardianAttackSpeed', value: 0.20 }, false, 2.0, 5),
],
l10Perks: [
createPerk('gb_t2_l10_a', 'Ultimate Bane', '+50% damage vs guardians', 'A',
{ type: 'multiplier', stat: 'guardianDamage', value: 0.50 }, false, 2.5, 10),
createPerk('gb_t2_l10_b', 'Obliterating Crit', '+25% crit damage vs guardians', 'B',
{ type: 'multiplier', stat: 'guardianCritDamage', value: 0.25 }, false, 2.5, 10),
createPerk('gb_t2_l10_c', 'Blurring Bane', '+25% attack speed vs guardians', 'C',
{ type: 'multiplier', stat: 'guardianAttackSpeed', value: 0.25 }, false, 2.5, 10),
],
},
// TIER 3
{
tier: 3,
skillId: 'guardianBane_t3',
name: 'Perfect Bane',
multiplier: 100,
l5Perks: [
createPerk('gb_t3_l5_a', 'Cosmic Bane', '+60% damage vs guardians', 'A',
{ type: 'multiplier', stat: 'guardianDamage', value: 0.60 }, false, 3.0, 5),
createPerk('gb_t3_l5_b', 'Transcendent Crit', '+30% crit damage vs guardians', 'B',
{ type: 'multiplier', stat: 'guardianCritDamage', value: 0.30 }, false, 3.0, 5),
createPerk('gb_t3_l5_c', 'Instant Bane', '+30% attack speed vs guardians', 'C',
{ type: 'multiplier', stat: 'guardianAttackSpeed', value: 0.30 }, false, 3.0, 5),
],
l10Perks: [
createPerk('gb_t3_l10_a', '[ELITE] OMNI-BANE', 'Damage vs guardians is 2x', 'A',
{ type: 'special', specialId: 'omniBane', specialDesc: '2x damage vs guardians' }, true, 5.0, 10),
createPerk('gb_t3_l10_b', '[ELITE] OMNI-CRIT', 'Crit damage vs guardians is 2x', 'B',
{ type: 'special', specialId: 'omniCrit', specialDesc: '2x crit damage vs guardians' }, true, 5.0, 10),
createPerk('gb_t3_l10_c', '[ELITE] OMNI-SPEED', 'Attack speed vs guardians is 2x', 'C',
{ type: 'special', specialId: 'omniGuardianSpeed', specialDesc: '2x attack speed vs guardians' }, true, 5.0, 10),
],
},
];