Open KABoissonneault opened 1 month ago
Fixes issue #2672
Hi @KABoissonneault, hope you're well. I've been away from DF Unity for a while, hopefully I'll be able to contribute again soon.
I wanted to add that while your patch is fine, I would have also fixed FACTION.TXT, as the court factions are indeed supposed to belong to the Nobility social group. This will have an impact in the game when talking to members of this faction, such as the NPCs in town palaces.
Good point. I had assumed without looking that this file was part of DF data, but no, we do ship our own, which we have patched in the past. Gonna keep the current fix for mods, and fix FACTION.TXT as you suggest
In FACTION.TXT, you can find 44 factions of the "Court" guild type. Out of these, 43 have the social group Nobility - we have only one exception, the Court of Mournoth.
As documented at the top of FACTION.TXT,
sgroup of 2 is Scholar.
In DFU's search for the current region's Court, it specified that the faction it's looking has to be Nobility. This is an unnecessary restriction, and causes the Scholarly Court of Mournoth to fail to return here, causing an exception to be thrown.
This PR simply allows all social groups to be considered a court, as long as it's of the regional guild group and the court faction type