mirror of
https://github.com/Rundll86/Dog-Lynx-And-HCN.git
synced 2026-05-29 23:41:54 +08:00
feat(角色): 调整Rooster受伤时的羽毛掉落效果
- 为Rooster添加受伤时的羽毛掉落特效 - 调整FeatherFall粒子效果参数,包括速度、重力和大小 - 修改DogCircle子弹的初始状态和动画时间 - 调整Dog武器节点的位置 - 为EntityBase的受伤方法添加注释
This commit is contained in:
@@ -224,6 +224,7 @@ func getSprintInitialDisplace():
|
||||
func getSprintProgress():
|
||||
return velocity.length() / getSprintInitialDisplace().length()
|
||||
func takeDamage(bullet: BulletBase, crit: bool):
|
||||
# 当受伤时
|
||||
hurtAnimator.play("hurt")
|
||||
var baseDamage: float = bullet.damage * bullet.launcher.fields.get(FieldStore.Entity.DAMAGE_MULTIPILER) * randf_range(1 - GameRule.damageOffset, 1 + GameRule.damageOffset)
|
||||
var damage = baseDamage + baseDamage * int(crit) * fields.get(FieldStore.Entity.CRIT_DAMAGE)
|
||||
|
||||
Reference in New Issue
Block a user