mirror of
https://github.com/Rundll86/Dog-Lynx-And-HCN.git
synced 2026-06-07 04:07:13 +08:00
feat(召唤系统): 实现彩虹旗召唤物及相关功能
添加SummonBase作为召唤物基类,实现LGBTFlag召唤物 修改LGBTWeapon从发射子弹改为召唤彩虹旗 在ComponentManager中添加召唤物管理功能 更新公鸡角色预设使用彩虹旗武器
This commit is contained in:
@@ -0,0 +1,14 @@
|
||||
extends EntityBase
|
||||
class_name SummonBase
|
||||
|
||||
@export var attraction: float = 0.0
|
||||
|
||||
var myMaster: EntityBase = null
|
||||
|
||||
func _ready():
|
||||
for entity in get_tree().get_nodes_in_group("mobs"):
|
||||
var ent = entity as EntityBase
|
||||
if MathTool.rate(attraction):
|
||||
ent.currentFocusedBoss = self
|
||||
if is_instance_valid(myMaster):
|
||||
myMaster.died.connect(tryDie)
|
||||
Reference in New Issue
Block a user