mirror of
https://github.com/Rundll86/Dog-Lynx-And-HCN.git
synced 2026-06-01 00:41:54 +08:00
fix(武器): 调整DaoStatue伤害计算逻辑和描述
feat(游戏流程): 添加初始选择界面自动触发开始按钮逻辑 refactor(战斗系统): 分离调试和发布版的波次配置 style(资源): 更新图片导入配置为VRAM压缩格式 chore: 忽略zip文件并修复.gitignore格式
This commit is contained in:
@@ -8,6 +8,7 @@ func update(to: int, origin: Dictionary, _entity: EntityBase):
|
||||
origin["rate3"] *= soulLevel
|
||||
return origin
|
||||
func attack(entity: EntityBase):
|
||||
var parryCounter = entity.getOrCreateCycleTimer("parry", 2000, 100)
|
||||
for bullet in BulletBase.generate(
|
||||
ComponentManager.getBullet("Wuwei"),
|
||||
entity,
|
||||
@@ -18,5 +19,12 @@ func attack(entity: EntityBase):
|
||||
bullet.baseDamage = readStore("atk")
|
||||
bullet.baseDamage *= max(-0.99, readStore("rate2") * ((1.0 - entity.fields[FieldStore.Entity.ATTACK_SPEED]) * 100)) + 1
|
||||
bullet.baseDamage *= max(-0.99, readStore("rate1") * (entity.fields[FieldStore.Entity.MAX_HEALTH] - entity.health)) + 1
|
||||
bullet.baseDamage *= max(-0.99, readStore("rate3") * len(entity.getOrCreateCycleTimer("parry", 2000, 100).bullets)) + 1
|
||||
var atkAll = 0
|
||||
for bulle in parryCounter.bullets:
|
||||
if bulle is ParryBallBullet:
|
||||
atkAll += bulle.atk
|
||||
bullet.baseDamage *= max(-0.99, readStore("rate3") * atkAll) + 1
|
||||
for bulle in parryCounter.bullets:
|
||||
if bulle is ParryBallBullet:
|
||||
bulle.tryDestroy()
|
||||
return true
|
||||
|
||||
Reference in New Issue
Block a user