Install Steam
login
|
language
简体中文 (Simplified Chinese)
繁體中文 (Traditional Chinese)
日本語 (Japanese)
한국어 (Korean)
ไทย (Thai)
Български (Bulgarian)
Čeština (Czech)
Dansk (Danish)
Deutsch (German)
Español - España (Spanish - Spain)
Español - Latinoamérica (Spanish - Latin America)
Ελληνικά (Greek)
Français (French)
Italiano (Italian)
Bahasa Indonesia (Indonesian)
Magyar (Hungarian)
Nederlands (Dutch)
Norsk (Norwegian)
Polski (Polish)
Português (Portuguese - Portugal)
Português - Brasil (Portuguese - Brazil)
Română (Romanian)
Русский (Russian)
Suomi (Finnish)
Svenska (Swedish)
Türkçe (Turkish)
Tiếng Việt (Vietnamese)
Українська (Ukrainian)
Report a translation problem
I found a logical bug in your Quest_Assault:
public override void ChooseParts() {
base.ChooseParts();
alliedFaction = Find.FactionManager.RandomAlliedFaction(minTechLevel: TechLevel.Industrial);
target = Find.WorldObjects.Settlements
.OfType<City>()
.Where(s => s.Faction.HostileTo(Faction.OfPlayer) && !s.HasMap && !(s is Citadel) && s.FindQuests().Count == 0)
.RandomByDistance(HomeMap?.Parent, 80);
}
This way your attack target may just be hostile to the player, but not the alliedFaction. You need to add a condition to pick the target faction that is also hostile to alliedFaction. Otherwise your ally and enemy may not fight each other once you enter the city
.Where(s => s.Faction.HostileTo(Faction.OfPlayer) && s.Faction.HostileTo(alliedFaction ) && !s.HasMap && !(s is Citadel) && s.FindQuests().Count == 0)
if I may make a suggestion, you might want to look at the abandoned This Rim of Mine mod for ideas for city generation.
https://gist.github.com/HugsLibRecordKeeper/111f91958a6532e8c0cb51cf28f17be2
Thank you for your post :o)
I better stay far away from this mod then. ( no sarcasm or irony used )