From 98407b35ff477f372baa92bf582b90a961d4ad16 Mon Sep 17 00:00:00 2001 From: Joel Kronqvist Date: Wed, 27 Nov 2024 12:29:43 +0200 Subject: Added part of story & improved singing with multiple verses & hemingway distance --- src/scalevalapokalypsi/Model/SingEffects.scala | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/scalevalapokalypsi/Model/SingEffects.scala') 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 -- cgit v1.2.3