mirror of
https://github.com/Rundll86/Dog-Lynx-And-HCN.git
synced 2026-05-27 22:41:56 +08:00
290d99f8bd
添加召唤上限字段和图标,支持武器召唤数量限制 新增小丑鱼饲料资源,包含SVG图标和场景配置 更新实体状态机以支持召唤上限检查和召唤物管理
21 lines
653 B
GDScript
21 lines
653 B
GDScript
@tool
|
|
extends Weapon
|
|
class_name LGBTWeapon
|
|
|
|
func update(to: int, origin: Dictionary, _entity: EntityBase):
|
|
origin["angle"] /= 1 + 0.025 * to * soulLevel
|
|
origin["count"] = soulLevel + 1
|
|
origin["atk"] += 2 * to * soulLevel
|
|
origin["power"] += 0.005 * to * soulLevel
|
|
origin["trace"] += 0.05 * to * soulLevel
|
|
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")
|
|
summon.count = readStore("count")
|
|
summon.angle = readStore("angle")
|
|
return true
|