From e8615655624c56d45ac409ab03d2c465517b4227 Mon Sep 17 00:00:00 2001 From: Timur Kelman Date: Tue, 7 Nov 2023 19:01:25 +0100 Subject: [PATCH] disable "change type" if Armok mode is off --- gui/job-details.lua | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/gui/job-details.lua b/gui/job-details.lua index db79108c66..bfb26494a8 100644 --- a/gui/job-details.lua +++ b/gui/job-details.lua @@ -301,6 +301,11 @@ function JobDetails:initListChoices() end function JobDetails:canChangeIType() + if dfhack.getHideArmokTools() then + -- as this could be considered an exploit + return false + end + local idx, obj = self.list:getSelected() return obj ~= nil end