summary refs log tree commit diff
path: root/whispers-bugfix/hooks/load.lua
diff options
context:
space:
mode:
authorRabbit Whispers <us@starfall.systems>2025-06-20 22:00:16 -0500
committerRabbit Whispers <us@starfall.systems>2025-06-20 23:29:33 -0500
commit893937108bdd308f6ad35b415fbc1dcb1df03e91 (patch)
tree08f134d4ba5ddff3eddbcec1d1eac1588b258ecd /whispers-bugfix/hooks/load.lua
parent4a4709db06185acceaa9aa22ae449d193115a1f8 (diff)
whispers-qol: patch auto-transmo-gems to ignore stun resist and damage pen gems HEAD main
Diffstat (limited to 'whispers-bugfix/hooks/load.lua')
-rw-r--r--whispers-bugfix/hooks/load.lua16
1 files changed, 16 insertions, 0 deletions
diff --git a/whispers-bugfix/hooks/load.lua b/whispers-bugfix/hooks/load.lua
new file mode 100644
index 0000000..55290e7
--- /dev/null
+++ b/whispers-bugfix/hooks/load.lua
@@ -0,0 +1,16 @@
+class:bindHook("ToME:load", function(self, data)
+	local Talents = require 'engine.interface.ActorTalents'
+
+	-- update passives when adept is taken
+	if Talents.talents_def.T_ADEPT then
+		Talents.talents_def.T_ADEPT.passives = function(self, t, p)
+			self:talentTemporaryValue(p, "all_talents_bonus_level", 1.5)
+
+			if not self._updating_adept then
+				self._updating_adept = true
+				self:updateAllTalentsPassives()
+				self._updating_adept = nil
+			end
+		end
+	end
+end)