ShieldBar
class ShieldBar( healthBar: HealthBarDefinition, currentPercentage: Int = 100, animationSpeed: Int = 0) : OverheadBar(healthBar = healthBar, currentPercentage = currentPercentage, animationSpeed = animationSpeed)on_npc_option(Assets.Npc.goblin.id, "Strike") { player -> val shield = target.findComponent<ShieldBar>() ?: return@on_npc_option shield.currentPercentage -= 25 if (shield.currentPercentage == 0) target.speak("My shield!")}