1
1
mirror of https://github.com/Rundll86/Dog-Lynx-And-HCN.git synced 2026-06-09 13:17:12 +08:00

feat(武器): 为HCN角色添加BigLaser武器并调整伤害计算

- 在HCN角色中新增BigLaser武器
- 修改BigLaser的executeAtk为固定值1
- 调整bulletHit和calculateDamage方法,添加entity参数
This commit is contained in:
2026-05-10 15:00:10 +08:00
parent f7861a26c4
commit dfb5f8c926
4 changed files with 8 additions and 4 deletions
+2 -1
View File
@@ -57,7 +57,8 @@ func attack(entity: EntityBase):
var bigLaser: BigLaser = bullet
bigLaser.dotTime = readStore("time") * 1000
bigLaser.baseDamage = readStore("atk")
bigLaser.executeAtk = readStoreExtra("executeAtk")
# bigLaser.executeAtk = readStoreExtra("executeAtk")
bigLaser.executeAtk = 1
await TickTool.frame()
bigLaser.animator.speed_scale = 5 / (5 + readStoreExtra("duration"))
return true