1
1
mirror of https://github.com/Rundll86/Dog-Lynx-And-HCN.git synced 2026-05-28 06:51:54 +08:00

feat(武器系统): 添加灵魂等级机制并重构武器升级逻辑

- 在UI中添加灵魂资源显示和操作按钮
- 修改武器升级公式加入灵魂等级系数
- 实现灵魂的提取和镶嵌功能
- 为武器卡牌添加灵魂等级颜色映射
- 初始化玩家灵魂资源为10个
This commit is contained in:
2025-09-20 07:01:17 +08:00
parent ac7183e78b
commit 06fdfd1586
10 changed files with 91 additions and 25 deletions
+5 -5
View File
@@ -3,11 +3,11 @@ extends Weapon
class_name LGBTWeapon
func update(to: int, origin: Dictionary, _entity: EntityBase):
origin["atk"] += 5 * to
origin["count"] += to
origin["power"] += 0.05 * level
origin["trace"] += 0.25 * level
origin["angle"] /= 1.05 * level
origin["atk"] += 5 * to * soulLevel
origin["count"] += to * soulLevel
origin["power"] += 0.05 * to * soulLevel
origin["trace"] += 0.25 * to * soulLevel
origin["angle"] /= 1.05 ** soulLevel * to
return origin
func attack(entity: EntityBase):
var weaponPos = entity.findWeaponAnchor("normal")