From c478d2bbc9fcd93984e851e60efd95c4168f0feb Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Deuc=D0=B5?= <shurd@sasktel.net>
Date: Tue, 19 Apr 2022 12:25:05 -0400
Subject: [PATCH] Fix STR gain after defeating a trainer.

You get str_gained, not str. :(
---
 xtrn/lord/lord.js | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/xtrn/lord/lord.js b/xtrn/lord/lord.js
index 61b989f909..e22c614b01 100644
--- a/xtrn/lord/lord.js
+++ b/xtrn/lord/lord.js
@@ -15060,11 +15060,11 @@ function turgons()
 			sln('');
 			player.hp_max += trainer.hp_gained;
 			player.hp = player.hp_max;
-			player.str += trainer.str;
+			player.str += trainer.str_gained;
 			player.def += trainer.def;
 			player.level += 1;
 			lw('`2  You receive `0'+pretty_int(trainer.hp_gained)+'`2 hitpoints,');
-			lw(' `0'+pretty_int(trainer.str)+'`2 strength');
+			lw(' `0'+pretty_int(trainer.str_gained)+'`2 strength');
 			lln(' and `0'+pretty_int(trainer.def)+'`2 defense points!');
 			sln('');
 			lln('  `%YOU ARE NOW LEVEL '+pretty_int(player.level)+'.');
-- 
GitLab