protected override void ScatterAt(IntVec3 loc, Map map, GenStepParams parms, int count = 1) { CGO.factionSettlement = map.ParentFaction.def.GetModExtension <CustomGenOption>(); if (CGO.factionSettlement.symbolResolver == null) { GenStepUtils.Generate(map, loc, CGO.factionSettlement); } else { GenStepUtils.Generate(map, loc, CGO.factionSettlement, CGO.factionSettlement.symbolResolver); } }
protected override void ScatterAt(IntVec3 loc, Map map, GenStepParams parms, int count = 1) { WorldObject worldO = Find.World.worldObjects.AllWorldObjects.Find(o => o.Tile == map.Tile && o.def.HasModExtension <CustomGenOption>()); CGO.factionSettlement = worldO.def.GetModExtension <CustomGenOption>(); if (CGO.factionSettlement.symbolResolver == null) { GenStepUtils.Generate(map, loc, CGO.factionSettlement); } else { GenStepUtils.Generate(map, loc, CGO.factionSettlement, CGO.factionSettlement.symbolResolver); } }