mirror of
https://github.com/Rundll86/Dog-Lynx-And-HCN.git
synced 2026-05-28 23:11:54 +08:00
11dcce50c9
删除HealingMissle相关文件,修改Gobo武器行为 Gobo现在会在受到伤害时生成苹果而非发射治疗导弹 更新武器描述和属性以匹配新行为 调整Rooster角色的武器配置
17 lines
546 B
GDScript
17 lines
546 B
GDScript
@tool
|
|
extends Weapon
|
|
|
|
func update(to: int, origin: Dictionary, _entity: EntityBase):
|
|
origin["health"] += 5 * to * soulLevel
|
|
origin["percent"] += 0.02 * to * soulLevel
|
|
origin["count"] *= to * soulLevel
|
|
return origin
|
|
func attack(entity: EntityBase):
|
|
var gobo = entity.summon(ComponentManager.getSummon("Gobo"))
|
|
if gobo is GoboSummon:
|
|
gobo.targetDamage = readStore("atk")
|
|
gobo.percent = readStore("percent")
|
|
gobo.count = readStore("count")
|
|
gobo.initHealth(readStore("health"))
|
|
return true
|