mirror of
https://github.com/Rundll86/Dog-Lynx-And-HCN.git
synced 2026-05-31 08:21:54 +08:00
a273f644d2
添加SummonBase作为召唤物基类,实现LGBTFlag召唤物 修改LGBTWeapon从发射子弹改为召唤彩虹旗 在ComponentManager中添加召唤物管理功能 更新公鸡角色预设使用彩虹旗武器
16 lines
477 B
GDScript
16 lines
477 B
GDScript
@tool
|
|
extends Weapon
|
|
class_name LGBTWeapon
|
|
|
|
func update(to: int, origin: Dictionary, _entity: EntityBase):
|
|
origin["atk"] += 5 * to * soulLevel
|
|
origin["power"] += 0.05 * to * soulLevel
|
|
origin["trace"] += 0.25 * to * soulLevel
|
|
return origin
|
|
func attack(entity: EntityBase):
|
|
var summon = entity.summon(ComponentManager.getSummon("LGBTFlag"))
|
|
summon.atk = readStore("atk")
|
|
summon.maxTraceTime = readStore("trace") * 1000
|
|
summon.tracePower = readStore("power")
|
|
return true
|