We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 3262591 + 0f7d46c commit b5ecbe1Copy full SHA for b5ecbe1
internal/gm-unit/editor_profession.lua
@@ -44,6 +44,10 @@ end
44
function Editor_Prof:save_profession(_, choice)
45
self.target_unit.profession = choice.profession
46
self.target_unit.profession2 = choice.profession
47
+ local hf = df.historical_figure.find(self.target_unit.hist_figure_id)
48
+ if hf then
49
+ hf.profession = choice.profession
50
+ end
51
self.target_unit.flags4.any_texture_must_be_refreshed = true
52
end
53
0 commit comments