mirror of
https://github.com/Rundll86/Dog-Lynx-And-HCN.git
synced 2026-05-27 22:41:56 +08:00
fix(Weapons/BigLaser): 修复executeAtk从硬编码值改为读取配置
将BigLaser武器的executeAtk属性从硬编码值1改为从readStoreExtra读取配置,使其能够根据实际配置调整攻击执行参数
This commit is contained in:
@@ -57,8 +57,7 @@ func attack(entity: EntityBase):
|
||||
var bigLaser: BigLaser = bullet
|
||||
bigLaser.dotTime = readStore("time") * 1000
|
||||
bigLaser.baseDamage = readStore("atk")
|
||||
# bigLaser.executeAtk = readStoreExtra("executeAtk")
|
||||
bigLaser.executeAtk = 1
|
||||
bigLaser.executeAtk = readStoreExtra("executeAtk")
|
||||
await TickTool.frame()
|
||||
bigLaser.animator.speed_scale = 5 / (5 + readStoreExtra("duration"))
|
||||
return true
|
||||
|
||||
Reference in New Issue
Block a user