1
1
mirror of https://github.com/Rundll86/Dog-Lynx-And-HCN.git synced 2026-05-31 00:11:54 +08:00
Files
Dog-Lynx-And-HCN/scripts/Contents/Weapons/Gobo.gd
T

17 lines
501 B
GDScript
Raw Normal View History

@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