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

refactor(武器系统): 优化武器升级计算和描述显示

修改武器升级计算公式,将指数运算改为线性运算以提高性能
在武器描述中显示当前值和升级后的值
调整costBeachball的默认值从500改为100
This commit is contained in:
2025-09-20 17:23:30 +08:00
parent e6fda173d4
commit 5c2c29fdcb
5 changed files with 24 additions and 15 deletions
+1 -1
View File
@@ -7,7 +7,7 @@ func update(to: int, origin: Dictionary, _entity: EntityBase):
origin["count"] += to * soulLevel
origin["power"] += 0.05 * to * soulLevel
origin["trace"] += 0.25 * to * soulLevel
origin["angle"] /= 1.05 ** soulLevel * to
origin["angle"] /= 1 + 0.05 * to * soulLevel
return origin
func attack(entity: EntityBase):
var weaponPos = entity.findWeaponAnchor("normal")