mirror of
https://github.com/Rundll86/Dog-Lynx-And-HCN.git
synced 2026-05-28 23:11:54 +08:00
8b14e36031
为子弹系统添加新的爆炸类型(MotionType.EXPLOSION) 实现内伤机制,包括内伤子弹和相关逻辑 修改多个子弹场景以使用爆炸类型 调整格挡系统,增加内伤效果 更新武器描述和角色配置
14 lines
331 B
GDScript
14 lines
331 B
GDScript
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)
|
|
)
|