We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I would like when deconstruct a building, it won't add home region around that building. To have same behaviour as normal deconstruct of mine...
I took the liberty of looking into code... On ManagerJob_Mining at line 669 there is:
if (building?.ClaimableBy(Faction.OfPlayer) ?? false) building.SetFaction(Faction.OfPlayer);
The SetFaction add the region to home area... if change to something like that:
if (building?.ClaimableBy(Faction.OfPlayer) ?? false) { bool originalValue = Find.PlaySettings.autoHomeArea; try { Find.PlaySettings.autoHomeArea = false; building.SetFaction(Faction.OfPlayer); } finally { Find.PlaySettings.autoHomeArea = originalValue; } }
It won't add to home area...
The text was updated successfully, but these errors were encountered:
No branches or pull requests
I would like when deconstruct a building, it won't add home region around that building. To have same behaviour as normal deconstruct of mine...
I took the liberty of looking into code... On ManagerJob_Mining at line 669 there is:
if (building?.ClaimableBy(Faction.OfPlayer) ?? false) building.SetFaction(Faction.OfPlayer);
The SetFaction add the region to home area... if change to something like that:
if (building?.ClaimableBy(Faction.OfPlayer) ?? false)
{
bool originalValue = Find.PlaySettings.autoHomeArea;
try
{
Find.PlaySettings.autoHomeArea = false;
building.SetFaction(Faction.OfPlayer);
}
finally
{
Find.PlaySettings.autoHomeArea = originalValue;
}
}
It won't add to home area...
The text was updated successfully, but these errors were encountered: