From aa6b57b116e092ecc70ec8273796da05b89f555c Mon Sep 17 00:00:00 2001
From: dg <dg@51575b47-30f0-44d4-a5cc-537603b46e54>
Date: Thu, 22 Nov 2012 12:33:28 +0000
Subject: [PATCH] Overseer of Nations correctly increases infravision and
 heigthened senses

git-svn-id: http://svn.net-core.org/repos/t-engine4@5809 51575b47-30f0-44d4-a5cc-537603b46e54
---
 game/engines/default/engine/Module.lua        | 2 +-
 game/modules/tome/data/talents/misc/races.lua | 4 ++++
 2 files changed, 5 insertions(+), 1 deletion(-)

diff --git a/game/engines/default/engine/Module.lua b/game/engines/default/engine/Module.lua
index db6850a7b1..dc8293fd9e 100644
--- a/game/engines/default/engine/Module.lua
+++ b/game/engines/default/engine/Module.lua
@@ -398,7 +398,7 @@ function _M:loadScreen(mod)
 		local has_max = mod.loading_wait_ticks
 		if has_max then core.wait.addMaxTicks(has_max) end
 		local i, max, dir = has_max or 20, has_max or 20, -1
-		local backname = util.getval(mod.background_name)
+		local backname = util.getval(mod.background_name) or "tome"
 
 		local bkgs = core.display.loadImage("/data/gfx/background/"..backname..".png") or core.display.loadImage("/data/gfx/background/tome.png")
 		local sw, sh = core.display.size()
diff --git a/game/modules/tome/data/talents/misc/races.lua b/game/modules/tome/data/talents/misc/races.lua
index 1d1ad586fa..80f7f0e4ef 100644
--- a/game/modules/tome/data/talents/misc/races.lua
+++ b/game/modules/tome/data/talents/misc/races.lua
@@ -64,9 +64,13 @@ newTalent{
 	mode = "passive",
 	on_learn = function(self, t)
 		self.sight = self.sight + 1
+		self.heightened_senses = (self.heightened_senses or 0) + 1
+		self.infravision = (self.infravision or 0) + 1
 	end,
 	on_unlearn = function(self, t)
 		self.sight = self.sight - 1
+		self.heightened_senses = (self.heightened_senses or 0) - 1
+		self.infravision = (self.infravision or 0) - 1
 	end,
 	info = function(self, t)
 		return ([[While Highers are not meant to rule other humans - and show no particular will to do so - they are frequently called to higher duties.
-- 
GitLab