mirror of
https://github.com/Rundll86/Dog-Lynx-And-HCN.git
synced 2026-05-28 15:01:53 +08:00
fix(Bullets/Diamond2): 修复钻石子弹动画和碰撞问题
调整钻石子弹的静态精灵位置和缩放,添加碰撞形状 修复当父节点无效时动画停止逻辑 ``` ```msg feat(Weapons/BlueCrystal): 调整蓝水晶武器属性 增加子弹环绕数量计算公式 降低基础攻击力并增加冷却时间 更新描述文本移除逃逸时间说明
This commit is contained in:
@@ -1,6 +1,12 @@
|
||||
extends BulletBase
|
||||
class_name Diamond2Bullet
|
||||
|
||||
@onready var staticSprite: Sprite2D = $%static
|
||||
|
||||
func ai():
|
||||
if is_instance_valid(parent):
|
||||
position = parent.position
|
||||
else:
|
||||
if animator.is_playing():
|
||||
animator.stop(true)
|
||||
PresetBulletAI.forward(self, staticSprite.global_rotation)
|
||||
|
||||
@@ -3,7 +3,7 @@ extends Weapon
|
||||
|
||||
func update(to: int, origin: Dictionary, _entity: EntityBase):
|
||||
origin["atk"] += 1 * to * soulLevel
|
||||
origin["count"] = 1 * soulLevel
|
||||
origin["count"] = 1 + 1 * soulLevel
|
||||
return origin
|
||||
func attack(entity: EntityBase):
|
||||
for i in BulletBase.generate(ComponentManager.getBullet("BlueCrystal"), entity, entity.findWeaponAnchor("normal"), deg_to_rad(randf_range(0, 360))):
|
||||
|
||||
Reference in New Issue
Block a user