File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -80,6 +80,26 @@ function PrintSkillClassList()
8080 print (' For example: Medical will make all medical skills legendary' )
8181end
8282
83+ function FortressLegendary ()
84+ local count = 0
85+ local units = dfhack .units .getCitizens ()
86+
87+ if # units == 0 then
88+ qerror (' No fortress citizens found. Are you in fortress mode?' )
89+ return
90+ end
91+
92+ for _ , unit in ipairs (units ) do
93+ for i in ipairs (df .job_skill ) do
94+ legendize (unit , i )
95+ end
96+ print (' The secrets of the depths have been mastered by ' .. getName (unit ))
97+ count = count + 1
98+ end
99+
100+ print (string.format (' \n Made %d fortress citizens legendary!' , count ))
101+ end
102+
83103-- main script operation starts here
84104----
85105local opt = ...
@@ -98,6 +118,9 @@ elseif opt == 'classes' then
98118elseif opt == ' all' then
99119 BreathOfArmok ()
100120 return
121+ elseif opt == ' fortress' then
122+ FortressLegendary ()
123+ return
101124elseif df .job_skill_class [opt ] then
102125 LegendaryByClass (opt )
103126 return
You can’t perform that action at this time.
0 commit comments