1
1
mirror of https://github.com/Rundll86/Dog-Lynx-And-HCN.git synced 2026-06-05 03:07:12 +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
@@ -4,7 +4,7 @@ class_name BigLaserWeapon
func update(to: int, origin: Dictionary, _entity: EntityBase):
origin["atk"] += 5 * to * soulLevel
origin["time"] /= 1.05 ** soulLevel * to
origin["time"] /= 1 + 0.05 * to * soulLevel
return origin
func attack(entity: EntityBase):
var weaponPos = entity.findWeaponAnchor("normal")