From a6b0330c845d4edad87c7059bac56e194a276c6f Mon Sep 17 00:00:00 2001 From: Joel Kronqvist Date: Sun, 17 Nov 2024 14:31:45 +0200 Subject: UTF-8 support & fixed hard coded 'Alice' --- src/scalevalapokalypsi/Model/Entities/Entity.scala | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/scalevalapokalypsi/Model/Entities') diff --git a/src/scalevalapokalypsi/Model/Entities/Entity.scala b/src/scalevalapokalypsi/Model/Entities/Entity.scala index ff5b320..b90a61a 100644 --- a/src/scalevalapokalypsi/Model/Entities/Entity.scala +++ b/src/scalevalapokalypsi/Model/Entities/Entity.scala @@ -61,7 +61,7 @@ class Entity(val name: String, initialLocation: Area): ) def sayTo(entity: Entity, message: String): (String, String) = - entity.observe(s"Alice: \"$message\"") + entity.observe(s"${this.name}: \"$message\"") (s"You say so to ${entity.name}.", "") def say(message: String): (String, String) = -- cgit v1.2.3