mirror of
https://github.com/Rundll86/Dog-Lynx-And-HCN.git
synced 2026-05-30 16:01:53 +08:00
feat(武器): 新增道教石像武器及其相关效果
实现道教石像武器,包含以下功能: - 添加天地之剑攻击逻辑,根据攻击速度、生命值和气层数计算伤害 - 新增无量斩子弹类型和特效 - 为公鸡角色添加新武器配置 - 更新相关动画和音效资源
This commit is contained in:
@@ -104,6 +104,12 @@ func _physics_process(_delta: float) -> void:
|
||||
else:
|
||||
tryDestroy()
|
||||
|
||||
func findAnchor(anch: String):
|
||||
var node = get_node_or_null("%anchor" + anch)
|
||||
if node is Node2D:
|
||||
return node.global_position
|
||||
else:
|
||||
return Vector2.ZERO
|
||||
func setupCuttable(cutSpeed: float):
|
||||
area_entered.connect(
|
||||
func(body):
|
||||
|
||||
Reference in New Issue
Block a user