mirror of
https://github.com/Rundll86/Dog-Lynx-And-HCN.git
synced 2026-05-28 06:51:54 +08:00
refactor(武器系统): 重构武器能量消耗机制
移除全局武器升级能量消耗倍数,改为各武器独立设置升级能量消耗 调整矢量核心武器的属性计算和初始能量值 为所有武器类型添加升级时的能量消耗增量
This commit is contained in:
@@ -79,7 +79,6 @@ func apply(entity: EntityBase):
|
||||
entity.inventory[ItemStore.ItemType.BEACHBALL] -= costBeachball
|
||||
updateStore(level, entity)
|
||||
costBeachball = floor(GameRule.weaponUpdateCost * costBeachball)
|
||||
needEnergy = GameRule.weaponUpdateEnergy * needEnergy
|
||||
rebuildInfo()
|
||||
return allHave
|
||||
func updateStore(to: int, entity: EntityBase):
|
||||
|
||||
Reference in New Issue
Block a user