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

fix(Weapons): 调整武器升级消耗和能量需求

修改武器升级后的棒球消耗和能量需求计算方式,使用GameRule中的全局变量控制倍数
移除VectorStar的debugRebuild标志并调整其能量需求
This commit is contained in:
2025-09-09 22:32:07 +08:00
parent a7d1264830
commit 1f8e0a3e5a
3 changed files with 5 additions and 3 deletions
+2 -1
View File
@@ -54,7 +54,8 @@ func apply(entity: EntityBase):
level += 1
entity.inventory[ItemStore.ItemType.BEACHBALL] -= costBeachball
store = update(level, originalStore.duplicate(), entity)
costBeachball *= 2
costBeachball = floor(GameRule.weaponUpdateCost * costBeachball)
needEnergy = GameRule.weaponUpdateEnergy * needEnergy
rebuildInfo()
return allHave
func multipiler() -> float: