mirror of
https://github.com/Rundll86/Dog-Lynx-And-HCN.git
synced 2026-05-29 23:41:54 +08:00
refactor(武器系统): 调整武器属性和配置
- 移除BroomGun的基础伤害属性 - 调整EnergyBlock的最大生命值 - 优化Parrier的弹反冲力计算 - 修改Tree武器的攻击速率和伤害比例 - 更新Rooster的武器配置
This commit is contained in:
@@ -16,7 +16,7 @@ func parryEffect(bullet: BulletBase):
|
||||
eff.modulate = bullet.modulate.blend(bullet.texture.modulate)
|
||||
eff.rotation = position.angle_to_point(bullet.position)
|
||||
eff.shot()
|
||||
launcher.impluse((position - bullet.position).normalized() * bullet.speed ** (1.0 / 2) * 250)
|
||||
launcher.impluse((position - bullet.position).normalized() * sqrt(abs(bullet.speed)) * 250)
|
||||
func penerateEffect(entity: EntityBase):
|
||||
parryiedTimes += 1
|
||||
var eff = EffectController.create(ComponentManager.getEffect("ParryEntity"), position)
|
||||
|
||||
@@ -4,7 +4,7 @@ class_name EnergyBlockEntity
|
||||
var currentBroom: BroomBullet
|
||||
|
||||
func register():
|
||||
fields[FieldStore.Entity.MAX_HEALTH] = 3000
|
||||
fields[FieldStore.Entity.MAX_HEALTH] = 1500
|
||||
attackCooldownMap[0] = 6000
|
||||
attackCooldownMap[1] = 3000
|
||||
attackCooldownMap[2] = 8000
|
||||
|
||||
@@ -219,6 +219,7 @@ func _physics_process(_delta: float) -> void:
|
||||
|
||||
# 通用方法
|
||||
func impluse(force: Vector2):
|
||||
print(force)
|
||||
inertia += force
|
||||
func getOrCreateCycleTimer(timerName: String, period: float = 1000, distance: float = 200, start: bool = true) -> CycleTimer:
|
||||
if !cycleTimers.has(timerName):
|
||||
|
||||
Reference in New Issue
Block a user