mirror of
https://github.com/Rundll86/Dog-Lynx-And-HCN.git
synced 2026-05-28 06:51:54 +08:00
290d99f8bd
添加召唤上限字段和图标,支持武器召唤数量限制 新增小丑鱼饲料资源,包含SVG图标和场景配置 更新实体状态机以支持召唤上限检查和召唤物管理
14 lines
393 B
GDScript
14 lines
393 B
GDScript
@tool
|
|
extends Weapon
|
|
|
|
func update(to: int, origin: Dictionary, _entity: EntityBase):
|
|
origin["time"] /= 1 + 0.01 * to * soulLevel
|
|
origin["atk"] += 2 * to * soulLevel
|
|
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
|