I'm trying to remove the requirements for research in the xml. I wanted to use regex to speed things along, but I can't see a pattern in the lines. For example, take this section:
<Row ss:AutoFitHeight="0" ss:Height="38.25" ss:StyleID="s72"> <Cell ss:StyleID="s77"><Data ss:Type="String">Researches.BaseUpgrade</Data></Cell> <Cell><Data ss:Type="Number">120</Data></Cell> <Cell ss:StyleID="s73"><Data ss:Type="String">BaseStructures</Data></Cell> <Cell ss:StyleID="s74"><Data ss:Type="String">Researches.AlienBaseFacilities</Data></Cell> <Cell ss:StyleID="s74"/> <Cell ss:StyleID="s74"><Data ss:Type="String">UnlockKnowledge( "Researches.BaseUpgrade" );UnlockBuilding("NanotechWorkshop");UnlockBuilding("QuantumLaboratory");UpgradeBuilding("Workshop", "NanotechWorkshop");UpgradeBuilding("Laboratory","QuantumLaboratory");SetCurrentBackgroundLevel("2");</Data></Cell> <Cell ss:StyleID="s77"><Data ss:Type="String">Researches.BaseUpgrade</Data></Cell> </Row> <Row ss:AutoFitHeight="0" ss:Height="25.5"> <Cell ss:StyleID="s72"><Data ss:Type="String">Researches.ElectroshockGrenade</Data></Cell> <Cell ss:StyleID="s72"><Data ss:Type="Number">160</Data></Cell> <Cell ss:StyleID="s73"><Data ss:Type="String">Weaponary</Data></Cell> <Cell ss:StyleID="s72"><Data ss:Type="String">Researches.AlienElectronics</Data></Cell> <Cell ss:StyleID="s75"/> <Cell ss:StyleID="s75"><Data ss:Type="String">UnlockItem("weapon.grenade.shock");UnlockKnowledge( "Researches.ElectroshockGrenade" );</Data></Cell> <Cell ss:StyleID="s72"><Data ss:Type="String">Researches.ElectroshockGrenade</Data></Cell> </Row>
I don't understand why the research requirement line for the first block is
<Cell ss:StyleID="s74">
, while for the second it is
<Cell ss:StyleID="s72">
.