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:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user