aboutsummaryrefslogtreecommitdiff
path: root/src/scalevalapokalypsi/Model/SingEffects.scala
diff options
context:
space:
mode:
Diffstat (limited to 'src/scalevalapokalypsi/Model/SingEffects.scala')
-rw-r--r--src/scalevalapokalypsi/Model/SingEffects.scala3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/scalevalapokalypsi/Model/SingEffects.scala b/src/scalevalapokalypsi/Model/SingEffects.scala
index 23b7d37..e0f9135 100644
--- a/src/scalevalapokalypsi/Model/SingEffects.scala
+++ b/src/scalevalapokalypsi/Model/SingEffects.scala
@@ -5,11 +5,12 @@ import scala.collection.immutable.Map
trait SingEffect(val target: Entity):
def apply(singQuality: Float): Event
+ def getVerses: Vector[String]
class DefaultSingAttack(target: Entity) extends SingEffect(target):
def apply(singQuality: Float): Event =
this.target.takeDamage((singQuality * 50).toInt) // TODO: remove magic value
- val condition = this.target.condition
Event(Map.empty, "") // The conditions are automatically shown to
// clients through takeDamage, but other effects
// should explain the changes they have.
+ def getVerses: Vector[String] = this.target.getVerseAgainst