mirror of
https://github.com/Rundll86/Dog-Lynx-And-HCN.git
synced 2026-06-05 19:27:15 +08:00
feat: 添加召唤上限功能及相关资源
添加召唤上限字段和图标,支持武器召唤数量限制 新增小丑鱼饲料资源,包含SVG图标和场景配置 更新实体状态机以支持召唤上限检查和召唤物管理
This commit is contained in:
@@ -7,6 +7,7 @@ func update(to: int, origin: Dictionary, _entity: EntityBase):
|
||||
return origin
|
||||
func attack(entity: EntityBase):
|
||||
var summon = entity.summon(ComponentManager.getSummon("HJM"))
|
||||
if !summon: return true
|
||||
summon.atk = readStore("atk")
|
||||
summon.attackTime = readStore("time") * 1000
|
||||
return true
|
||||
|
||||
@@ -11,6 +11,7 @@ func update(to: int, origin: Dictionary, _entity: EntityBase):
|
||||
return origin
|
||||
func attack(entity: EntityBase):
|
||||
var summon = entity.summon(ComponentManager.getSummon("LGBTFlag"))
|
||||
if !summon: return true
|
||||
summon.atk = readStore("atk")
|
||||
summon.maxTraceTime = readStore("trace") * 1000
|
||||
summon.tracePower = readStore("power")
|
||||
|
||||
Reference in New Issue
Block a user