Go to file
hant cd020e1240 Implement base damage calculation system for spells
- Add base and growth values to all 36 spells across heal_single, damage_single, damage_aoe, and heal_aoe categories in spells.php
- Map base values: heal [8, 18, 38, 65], fire [5, 12, 25, 45], ice [4, 10, 22, 42], thunder [6, 14, 28, 48], aoe damage [4-6, 10-14, 22-28, 42-48]
- Map growth rates: heal [0.8, 1.0, 1.2, 1.5], fire [0.6, 0.8, 1.0, 1.2], ice [0.5, 0.7, 0.95, 1.15], thunder [0.7, 0.9, 1.1, 1.3]
- Modify createSpell() in Item.php to calculate final base damage using formula: finalValue = base + (level * growth) + randomBonus(15%)
- All spells now generate with calculated base values that scale with level and quality tier
- This enables proper damage/healing scaling mechanics in combat system

Formula implementation:
- baseValue = spellInfo['base'][$qualityIndex]
- growth = spellInfo['growth'][$qualityIndex]
- randomBonus = rand(0, max(1, (int)($baseValue * 0.15)))
- finalBaseValue = (int)($baseValue + ($level * $growth) + $randomBonus)

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-12-05 23:01:35 +08:00
.idea Merge remote-tracking branch 'origin/main' 2025-12-05 09:39:28 +08:00
bin 法术 2025-12-02 23:13:38 +08:00
src Implement base damage calculation system for spells 2025-12-05 23:01:35 +08:00
test 技能优化 2025-12-05 17:38:10 +08:00
web first 2025-12-01 18:13:15 +08:00
.DS_Store first 2025-12-05 09:38:15 +08:00
.gitignore 技能优化 2025-12-05 17:38:10 +08:00
box.json first 2025-12-01 18:13:15 +08:00
build-phar.php first 2025-12-01 18:13:15 +08:00
build.sh first 2025-12-01 18:13:15 +08:00
composer.json 逻辑优化 2025-12-04 18:11:28 +08:00
composer.lock 逻辑优化 2025-12-04 18:11:28 +08:00
save.json 技能优化 2025-12-05 18:15:06 +08:00
start-server.sh first 2025-12-01 18:13:15 +08:00