2026-01-28 20:20:55 +08:00
|
|
|
@tool
|
|
|
|
|
extends Weapon
|
|
|
|
|
|
|
|
|
|
func update(to: int, origin: Dictionary, _entity: EntityBase):
|
2026-04-04 09:03:58 +08:00
|
|
|
origin["health"] += 5 * to * soulLevel
|
|
|
|
|
origin["percent"] += 0.02 * to * soulLevel
|
|
|
|
|
origin["count"] *= to * soulLevel
|
|
|
|
|
return origin
|
2026-01-28 20:20:55 +08:00
|
|
|
func attack(entity: EntityBase):
|
2026-04-04 09:03:58 +08:00
|
|
|
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
|