File tree Expand file tree Collapse file tree 2 files changed +23
-0
lines changed
Expand file tree Collapse file tree 2 files changed +23
-0
lines changed Original file line number Diff line number Diff line change @@ -122,3 +122,11 @@ function dfhack.job.disconnectJobGeneralRef(job, ref) end
122122--- @return boolean
123123function dfhack .job .removeJob (job ) end
124124
125+ --- @return df.job
126+ function dfhack .job .createLinked () end
127+
128+ --- @param job df.job
129+ --- @param workshop df.building_workshopst
130+ --- @return boolean
131+ function dfhack .job .assignToWorkshop (job , workshop ) end
132+
Original file line number Diff line number Diff line change @@ -59,6 +59,11 @@ function dfhack.units.getVisibleName(hf) end
5959--- @return string
6060function dfhack .units .getProfessionName (hf , ignore_noble , plural , land_title ) end
6161
62+ --- @param unit df.unit
63+ --- @param need_types unknown
64+ --- @return number
65+ function dfhack .units .getFocusPenalty (unit , need_types ) end
66+
6267--- @param unit df.unit
6368--- @return boolean
6469function dfhack .units .isActive (unit ) end
@@ -584,3 +589,13 @@ function dfhack.units.getUnitByNobleRole(noble) end
584589--- @return boolean
585590function dfhack .units .unassignTrainer (unit ) end
586591
592+ -- reverse engineered from unitst::have_unbailable_sp_activities (partial implementation)
593+ --- @param unit df.unit
594+ --- @return boolean
595+ function dfhack .units .hasUnbailableSocialActivity (unit ) end
596+
597+ --- @param unit df.unit
598+ --- @param ["false " ] unknown
599+ --- @return boolean
600+ function dfhack .units .isJobAvailable (unit , [" false" ]) end
601+
You can’t perform that action at this time.
0 commit comments