1
1
mirror of https://github.com/Rundll86/Dog-Lynx-And-HCN.git synced 2026-05-27 22:41:56 +08:00
Files
fallingshrimp 290d99f8bd feat: 添加召唤上限功能及相关资源
添加召唤上限字段和图标,支持武器召唤数量限制
新增小丑鱼饲料资源,包含SVG图标和场景配置
更新实体状态机以支持召唤上限检查和召唤物管理
2025-11-30 09:30:53 +08:00

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