Skip to content

Commit

Permalink
require spouses to be of opposite sex
Browse files Browse the repository at this point in the history
  • Loading branch information
myk002 committed Aug 26, 2024
1 parent 1b925cd commit 20a0147
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion gui/family-affairs.lua
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,9 @@ function RelationshipsPage:init()
local unit = self:get_unit()
local selected = dfhack.gui.getSelectedUnit(true)
return unit and not get_spouse_hf(unit) and can_have_spouse(unit) and
selected and selected.race == unit.race and selected.id ~= unit.id
selected and selected.race == unit.race and selected.id ~= unit.id and
(selected.sex == df.pronoun_type.she and unit.sex == df.pronoun_type.he or
selected.sex == df.pronoun_type.he and unit.sex == df.pronoun_type.she)
end,
},
widgets.Panel{
Expand Down

0 comments on commit 20a0147

Please sign in to comment.