From 2adae08914d8cf6d308886f13de7d8f1f330353a Mon Sep 17 00:00:00 2001
From: Paolo Brasolin <paolo.brasolin@eurac.edu>
Date: Wed, 13 Apr 2022 12:20:17 +0200
Subject: [PATCH] feat: #fe damage proportional to health

---
 frontend/src/js/foe.ts | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/frontend/src/js/foe.ts b/frontend/src/js/foe.ts
index fe7510b..a537e8f 100644
--- a/frontend/src/js/foe.ts
+++ b/frontend/src/js/foe.ts
@@ -59,7 +59,7 @@ class Foe {
     this.clue.delete();
     this.critter.escape();
     this.scene.player.hitFlash();
-    this.scene.updateHealth(-10);
+    this.scene.updateHealth(-this.beWord.ocr_transcript.length);
   }
 
   async handleSuccess() {
-- 
GitLab