mirror of
https://github.com/Rundll86/Dog-Lynx-And-HCN.git
synced 2026-06-09 05:07:12 +08:00
feat(武器系统): 添加自动强化和一键强化功能
- 新增自动强化开关和按钮图标资源 - 实现武器自动强化逻辑 - 添加一键强化功能可连续升级 - 优化武器卡UI布局和样式 - 增加强化操作时的提示信息
This commit is contained in:
@@ -312,6 +312,10 @@ func bulletHit(bullet: BulletBase, crit: bool):
|
||||
func collectItem(itemType: ItemStore.ItemType, amount: int):
|
||||
inventory[itemType] += amount
|
||||
playSound("collect")
|
||||
for weapon in weapons:
|
||||
if weapon.autoUpdate && weapon.canUpdate(self ):
|
||||
weapon.updateApply(self )
|
||||
UIState.showTip("[b]%s[/b]已自动强化!" % weapon.displayName)
|
||||
func storeEnergy(value: float, dontChangeDirection: bool = false):
|
||||
energy += value * fields.get(FieldStore.Entity.ENERGY_MULTIPILER)
|
||||
energyChanged.emit(energy, dontChangeDirection)
|
||||
|
||||
Reference in New Issue
Block a user