mirror of
https://github.com/Rundll86/Dog-Lynx-And-HCN.git
synced 2026-05-28 06:51:54 +08:00
feat(BulletBase): 添加子弹运动类型枚举并修改弹反逻辑
为子弹基类添加运动类型枚举(MotionType),包含四种运动方式。修改Parrier子弹的弹反逻辑,根据子弹运动类型执行不同处理: - 投射物:保持原有弹反或格挡逻辑 - 挥砍:禁用碰撞箱 - 魔法或召唤:为发射者存储能量
This commit is contained in:
@@ -1,9 +1,17 @@
|
||||
extends Area2D
|
||||
class_name BulletBase
|
||||
|
||||
enum MotionType {
|
||||
SWING,
|
||||
PROJECTILE,
|
||||
MAGIC,
|
||||
SUMMON
|
||||
}
|
||||
|
||||
@export var displayName: String = "未知子弹"
|
||||
@export var speed: float = 10.0
|
||||
@export var baseDamage: float = 10.0
|
||||
@export var motionType: MotionType = MotionType.PROJECTILE
|
||||
@export var damageMultipliers: Array[float] = [1.0]
|
||||
@export var usingDamageMultiplier: int = 0
|
||||
@export var penerate: float = 0.0
|
||||
|
||||
Reference in New Issue
Block a user