From 20a01478de34f2d6a0fcad6f0557991a100a6a83 Mon Sep 17 00:00:00 2001 From: Myk Taylor Date: Sun, 25 Aug 2024 19:40:58 -0700 Subject: [PATCH] require spouses to be of opposite sex --- gui/family-affairs.lua | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/gui/family-affairs.lua b/gui/family-affairs.lua index 31c9a322e..c0a64447b 100644 --- a/gui/family-affairs.lua +++ b/gui/family-affairs.lua @@ -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{