Skip to content

Commit

Permalink
disable "change type" if Armok mode is off
Browse files Browse the repository at this point in the history
  • Loading branch information
TymurGubayev committed Nov 7, 2023
1 parent 17ca139 commit e861565
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions gui/job-details.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit e861565

Please sign in to comment.