1
1
mirror of https://github.com/Rundll86/Dog-Lynx-And-HCN.git synced 2026-05-28 06:51:54 +08:00

feat: 添加新的子弹类型和相关逻辑,更新角色攻击方式,增加无差别伤害选项

This commit is contained in:
2025-08-27 08:58:14 +08:00
parent c5da8d7b5e
commit 5b2c2f5cf7
10 changed files with 58 additions and 17 deletions
+1 -1
View File
@@ -83,7 +83,7 @@ func takeDamage(bullet: BulletBase, crit: bool):
playSound("hurt")
health -= damage
DamageLabel.create(damage, crit, $"%damageAnchor".global_position + MathTool.randv2_range(GameRule.damageLabelSpawnOffset))
if isBoss:
if isBoss and bullet.launcher.isPlayer():
bullet.launcher.setBoss(self)
if health <= 0:
if isBoss: