Complex sentence: Uniforms were adapted to local conditions, the commander's preference and what was available, for example, shoulder straps began replacing epaulettes in dress occasions.
Split into simpler sentences: Uniforms were adapted to local conditions, the commander's preference, and what was available. For example, shoulder straps began replacing epaulets in dress occasions.