From be1f34c768967bbc83aa8eb6d23470f5ca602d9f Mon Sep 17 00:00:00 2001
From: DarkGod <darkgod@net-core.org>
Date: Sun, 29 Dec 2019 19:17:32 +0100
Subject: [PATCH] support items taht dont want to be transmoged

---
 game/modules/tome/class/Actor.lua  | 2 +-
 game/modules/tome/class/Player.lua | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/game/modules/tome/class/Actor.lua b/game/modules/tome/class/Actor.lua
index ea80a8b1e0..8a03f03301 100644
--- a/game/modules/tome/class/Actor.lua
+++ b/game/modules/tome/class/Actor.lua
@@ -7716,7 +7716,7 @@ function _M:getEncumberTitleUpdator(title)
 end
 
 function _M:transmoPricemod(o) if o.type == "gem" then return 0.40 else return 0.05 end end
-function _M:transmoFilter(o) if o:getPrice() <= 0 or o.quest then return false end return true end
+function _M:transmoFilter(o) if o:getPrice() <= 0 or o.quest or o.plot or o.no_transmo then return false end return true end
 function _M:transmoInven(inven, idx, o, transmo_source)
 	local price = 0
 	o:forAllStack(function(so) price = price + math.min(so:getPrice() * self:transmoPricemod(so), 25) end)  -- handle stacked objects individually
diff --git a/game/modules/tome/class/Player.lua b/game/modules/tome/class/Player.lua
index b47bc0ede7..65ea22ea60 100644
--- a/game/modules/tome/class/Player.lua
+++ b/game/modules/tome/class/Player.lua
@@ -265,7 +265,7 @@ function _M:describeFloor(x, y, force)
 				obj.__transmo_pre = true
 				if self:pickupFloor(i, true) then
 					desc = false
-					if not obj.quest and not obj.plot then obj.__transmo = true end
+					if self:transmoFilter(obj, self) then obj.__transmo = true end
 				end
 				obj.__transmo_pre = nil
 			end
-- 
GitLab