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:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user