Skip to content

Commit 20a0147

Browse files
committed
require spouses to be of opposite sex
1 parent 1b925cd commit 20a0147

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

gui/family-affairs.lua

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -252,7 +252,9 @@ function RelationshipsPage:init()
252252
local unit = self:get_unit()
253253
local selected = dfhack.gui.getSelectedUnit(true)
254254
return unit and not get_spouse_hf(unit) and can_have_spouse(unit) and
255-
selected and selected.race == unit.race and selected.id ~= unit.id
255+
selected and selected.race == unit.race and selected.id ~= unit.id and
256+
(selected.sex == df.pronoun_type.she and unit.sex == df.pronoun_type.he or
257+
selected.sex == df.pronoun_type.he and unit.sex == df.pronoun_type.she)
256258
end,
257259
},
258260
widgets.Panel{

0 commit comments

Comments
 (0)