mirror of
https://github.com/Rundll86/Dog-Lynx-And-HCN.git
synced 2026-06-04 10:47:13 +08:00
feat(战斗系统): 添加内伤机制和爆炸类型子弹
为子弹系统添加新的爆炸类型(MotionType.EXPLOSION) 实现内伤机制,包括内伤子弹和相关逻辑 修改多个子弹场景以使用爆炸类型 调整格挡系统,增加内伤效果 更新武器描述和角色配置
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
extends BulletBase
|
||||
class_name InternalDamageBullet
|
||||
|
||||
var hoster: EntityBase
|
||||
|
||||
func spawn():
|
||||
if is_instance_valid(hoster):
|
||||
hoster.died.connect(tryDestroy)
|
||||
hoster.hit.connect(
|
||||
func(_damage, bullet: BulletBase, _crit):
|
||||
if bullet.motionType == BulletBase.MotionType.EXPLOSION:
|
||||
hitbox.set_deferred("disabled", false)
|
||||
)
|
||||
Reference in New Issue
Block a user