
*label calculations

*temp quadnum 0
*set quadnum quadrant

*temp sectornum 0
*set sectornum sector

*gosub planet_level
*gosub planet_culture

*if (planet1_quadrant = quadnum) and (planet1_sector = sectornum)
	*set planet_name planet1_name
	*set planet true
	*return
*elseif (planet2_quadrant = quadnum) and (planet1_sector = sectornum)
	*set planet_name planet2_name
	*set planet true
	*return
*elseif (planet3_quadrant = quadnum) and (planet1_sector = sectornum)
	*set planet_name planet3_name
	*set planet true
	*return
*elseif (planet4_quadrant = quadnum) and (planet4_sector = sectornum)
	*set planet_name planet4_name
	*set planet true
	*return
*elseif (planet5_quadrant = quadnum) and (planet5_sector = sectornum)
	*set planet_name planet5_name
	*set planet true
	*return
*elseif (planet6_quadrant = quadnum) and (planet6_sector = sectornum)
	*set planet_name planet6_name
	*set planet true
	*return
*elseif (planet7_quadrant = quadnum) and (planet7_sector = sectornum)
	*set planet_name planet7_name
	*set planet true
	*return
*elseif (planet8_quadrant = quadnum) and (planet8_sector = sectornum)
	*set planet_name planet8_name
	*set planet true
	*return
*elseif (planet9_quadrant = quadnum) and (planet9_sector = sectornum)
	*set planet_name planet9_name
	*set planet true
	*return
*elseif (planet10_quadrant = quadnum) and (planet10_sector = sectornum)
	*set planet_name planet10_name
	*set planet true
	*return
*elseif (planet11_quadrant = quadnum) and (planet11_sector = sectornum)
	*set planet_name planet11_name
	*set planet true
	*return
*elseif (planet12_quadrant = quadnum) and (planet12_sector = sectornum)
	*set planet_name planet12_name
	*set planet true
	*return
*elseif (planet13_quadrant = quadnum) and (planet13_sector = sectornum)
	*set planet_name planet13_name
	*set planet true
	*return
*elseif (planet14_quadrant = quadnum) and (planet14_sector = sectornum)
	*set planet_name planet14_name
	*set planet true
	*return
*elseif (planet15_quadrant = quadnum) and (planet15_sector = sectornum)
	*set planet_name planet15_name
	*set planet true
	*return
*elseif (planet16_quadrant = quadnum) and (planet16_sector = sectornum)
	*set planet_name planet16_name
	*set planet true
	*return
*elseif (planet17_quadrant = quadnum) and (planet17_sector = sectornum)
	*set planet_name planet17_name
	*set planet true
	*return
*elseif (planet18_quadrant = quadnum) and (planet18_sector = sectornum)
	*set planet_name planet18_name
	*set planet true
	*return
*elseif (planet19_quadrant = quadnum) and (planet19_sector = sectornum)
	*set planet_name planet19_name
	*set planet true
	*return
*elseif (planet20_quadrant = quadnum) and (planet20_sector = sectornum)
	*set planet_name planet20_name
	*set planet true
	*return
*elseif (planet21_quadrant = quadnum) and (planet21_sector = sectornum)
	*set planet_name planet21_name
	*set planet true
	*return
*elseif (planet22_quadrant = quadnum) and (planet22_sector = sectornum)
	*set planet_name planet22_name
	*set planet true
	*return
*elseif (planet23_quadrant = quadnum) and (planet23_sector = sectornum)
	*set planet_name planet23_name
	*set planet true
	*return
*elseif (planet24_quadrant = quadnum) and (planet24_sector = sectornum)
	*set planet_name planet24_name
	*set planet true
	*return
*elseif (planet25_quadrant = quadnum) and (planet25_sector = sectornum)
	*set planet_name planet25_name
	*set planet true
	*return
*elseif (planet26_quadrant = quadnum) and (planet26_sector = sectornum)
	*set planet_name planet26_name
	*set planet true
	*return
*elseif (planet27_quadrant = quadnum) and (planet27_sector = sectornum)
	*set planet_name planet27_name
	*set planet true
	*return
*elseif (planet28_quadrant = quadnum) and (planet28_sector = sectornum)
	*set planet_name planet28_name
	*set planet true
	*return
*elseif (planet29_quadrant = quadnum) and (planet29_sector = sectornum)
	*set planet_name planet29_name
	*set planet true
	*return
*elseif (planet30_quadrant = quadnum) and (planet30_sector = sectornum)
	*set planet_name planet30_name
	*set planet true
	*return
*elseif (planet31_quadrant = quadnum) and (planet31_sector = sectornum)
	*set planet_name planet31_name
	*set planet true
	*return
*elseif (planet32_quadrant = quadnum) and (planet32_sector = sectornum)
	*set planet_name planet32_name
	*set planet true
	*return
*elseif (planet33_quadrant = quadnum) and (planet33_sector = sectornum)
	*set planet_name planet33_name
	*set planet true
	*return
*elseif (planet34_quadrant = quadnum) and (planet34_sector = sectornum)
	*set planet_name planet34_name
	*set planet true
	*return
*elseif (planet35_quadrant = quadnum) and (planet35_sector = sectornum)
	*set planet_name planet35_name
	*set planet true
	*return
*elseif (planet36_quadrant = quadnum) and (planet36_sector = sectornum)
	*set planet_name planet36_name
	*set planet true
	*return
*elseif (planet37_quadrant = quadnum) and (planet37_sector = sectornum)
	*set planet_name planet37_name
	*set planet true
	*return
*elseif (planet38_quadrant = quadnum) and (planet38_sector = sectornum)
	*set planet_name planet38_name
	*set planet true
	*return
*elseif (planet39_quadrant = quadnum) and (planet39_sector = sectornum)
	*set planet_name planet39_name
	*set planet true
	*return
*elseif (planet40_quadrant = quadnum) and (planet40_sector = sectornum)
	*set planet_name planet40_name
	*set planet true
	*return
*elseif (planet41_quadrant = quadnum) and (planet41_sector = sectornum)
	*set planet_name planet41_name
	*set planet true
	*return
*elseif (planet42_quadrant = quadnum) and (planet42_sector = sectornum)
	*set planet_name planet42_name
	*set planet true
	*return
*elseif (planet43_quadrant = quadnum) and (planet43_sector = sectornum)
	*set planet_name planet43_name
	*set planet true
	*return
*elseif (planet44_quadrant = quadnum) and (planet44_sector = sectornum)
	*set planet_name planet44_name
	*set planet true
	*return
*elseif (planet45_quadrant = quadnum) and (planet45_sector = sectornum)
	*set planet_name planet45_name
	*set planet true
	*return
*elseif (planet46_quadrant = quadnum) and (planet46_sector = sectornum)
	*set planet_name planet46_name
	*set planet true
	*return
*elseif (planet47_quadrant = quadnum) and (planet47_sector = sectornum)
	*set planet_name planet47_name
	*set planet true
	*return
*elseif (planet48_quadrant = quadnum) and (planet48_sector = sectornum)
	*set planet_name planet48_name
	*set planet true
	*return
*elseif (planet49_quadrant = quadnum) and (planet49_sector = sectornum)
	*set planet_name planet49_name
	*set planet true
	*return
*elseif (planet50_quadrant = quadnum) and (planet50_sector = sectornum)
	*set planet_name planet50_name
	*set planet true
	*return
*elseif (planet51_quadrant = quadnum) and (planet51_sector = sectornum)
	*set planet_name planet51_name
	*set planet true
	*return
*elseif (planet52_quadrant = quadnum) and (planet52_sector = sectornum)
	*set planet_name planet52_name
	*set planet true
	*return
*elseif (planet53_quadrant = quadnum) and (planet53_sector = sectornum)
	*set planet_name planet53_name
	*set planet true
	*return
*elseif (planet54_quadrant = quadnum) and (planet54_sector = sectornum)
	*set planet_name planet54_name
	*set planet true
	*return
*elseif (planet55_quadrant = quadnum) and (planet55_sector = sectornum)
	*set planet_name planet55_name
	*set planet true
	*return
*elseif (planet56_quadrant = quadnum) and (planet56_sector = sectornum)
	*set planet_name planet56_name
	*set planet true
	*return
*elseif (planet57_quadrant = quadnum) and (planet57_sector = sectornum)
	*set planet_name planet57_name
	*set planet true
	*return
*elseif (planet58_quadrant = quadnum) and (planet58_sector = sectornum)
	*set planet_name planet58_name
	*set planet true
	*return
*elseif (planet59_quadrant = quadnum) and (planet59_sector = sectornum)
	*set planet_name planet59_name
	*set planet true
	*return
*elseif (planet60_quadrant = quadnum) and (planet60_sector = sectornum)
	*set planet_name planet60_name
	*set planet true
	*return
*elseif (planet61_quadrant = quadnum) and (planet61_sector = sectornum)
	*set planet_name planet61_name
	*set planet true
	*return
*elseif (planet62_quadrant = quadnum) and (planet62_sector = sectornum)
	*set planet_name planet62_name
	*set planet true
	*return
*elseif (planet63_quadrant = quadnum) and (planet63_sector = sectornum)
	*set planet_name planet63_name
	*set planet true
	*return
*elseif (planet64_quadrant = quadnum) and (planet64_sector = sectornum)
	*set planet_name planet64_name
	*set planet true
	*return
*elseif (planet65_quadrant = quadnum) and (planet65_sector = sectornum)
	*set planet_name planet65_name
	*set planet true
	*return
*elseif (planet66_quadrant = quadnum) and (planet66_sector = sectornum)
	*set planet_name planet66_name
	*set planet true
	*return
*elseif (planet67_quadrant = quadnum) and (planet67_sector = sectornum)
	*set planet_name planet67_name
	*set planet true
	*return
*elseif (planet68_quadrant = quadnum) and (planet68_sector = sectornum)
	*set planet_name planet68_name
	*set planet true
	*return
*elseif (planet69_quadrant = quadnum) and (planet69_sector = sectornum)
	*set planet_name planet69_name
	*set planet true
	*return
*elseif (planet70_quadrant = quadnum) and (planet70_sector = sectornum)
	*set planet_name planet70_name
	*set planet true
	*return
*elseif (planet71_quadrant = quadnum) and (planet71_sector = sectornum)
	*set planet_name planet71_name
	*set planet true
	*return
*elseif (planet72_quadrant = quadnum) and (planet72_sector = sectornum)
	*set planet_name planet72_name
	*set planet true
	*return
*elseif (planet73_quadrant = quadnum) and (planet73_sector = sectornum)
	*set planet_name planet73_name
	*set planet true
	*return
*elseif (planet74_quadrant = quadnum) and (planet74_sector = sectornum)
	*set planet_name planet74_name
	*set planet true
	*return
*elseif (planet75_quadrant = quadnum) and (planet75_sector = sectornum)
	*set planet_name planet75_name
	*set planet true
	*return
*elseif (planet76_quadrant = quadnum) and (planet76_sector = sectornum)
	*set planet_name planet76_name
	*set planet true
	*return
*elseif (planet77_quadrant = quadnum) and (planet77_sector = sectornum)
	*set planet_name planet77_name
	*set planet true
	*return
*elseif (planet78_quadrant = quadnum) and (planet78_sector = sectornum)
	*set planet_name planet78_name
	*set planet true
	*return
*elseif (planet79_quadrant = quadnum) and (planet79_sector = sectornum)
	*set planet_name planet79_name
	*set planet true
	*return
*elseif (planet80_quadrant = quadnum) and (planet80_sector = sectornum)
	*set planet_name planet80_name
	*set planet true
	*return
*elseif (planet81_quadrant = quadnum) and (planet81_sector = sectornum)
	*set planet_name planet81_name
	*set planet true
	*return
*elseif (planet82_quadrant = quadnum) and (planet82_sector = sectornum)
	*set planet_name planet82_name
	*set planet true
	*return
*elseif (planet83_quadrant = quadnum) and (planet83_sector = sectornum)
	*set planet_name planet83_name
	*set planet true
	*return
*elseif (planet84_quadrant = quadnum) and (planet84_sector = sectornum)
	*set planet_name planet84_name
	*set planet true
	*return
*elseif (planet85_quadrant = quadnum) and (planet85_sector = sectornum)
	*set planet_name planet85_name
	*set planet true
	*return
*elseif (planet86_quadrant = quadnum) and (planet86_sector = sectornum)
	*set planet_name planet86_name
	*set planet true
	*return
*elseif (planet87_quadrant = quadnum) and (planet87_sector = sectornum)
	*set planet_name planet87_name
	*set planet true
	*return
*elseif (planet88_quadrant = quadnum) and (planet88_sector = sectornum)
	*set planet_name planet88_name
	*set planet true
	*return
*elseif (planet89_quadrant = quadnum) and (planet89_sector = sectornum)
	*set planet_name planet89_name
	*set planet true
	*return
*elseif (planet90_quadrant = quadnum) and (planet90_sector = sectornum)
	*set planet_name planet90_name
	*set planet true
	*return
*elseif (planet91_quadrant = quadnum) and (planet91_sector = sectornum)
	*set planet_name planet91_name
	*set planet true
	*return
*elseif (planet92_quadrant = quadnum) and (planet92_sector = sectornum)
	*set planet_name planet92_name
	*set planet true
	*return
*elseif (planet93_quadrant = quadnum) and (planet93_sector = sectornum)
	*set planet_name planet93_name
	*set planet true
	*return
*elseif (planet94_quadrant = quadnum) and (planet94_sector = sectornum)
	*set planet_name planet94_name
	*set planet true
	*return
*elseif (planet95_quadrant = quadnum) and (planet95_sector = sectornum)
	*set planet_name planet95_name
	*set planet true
	*return
*elseif (planet96_quadrant = quadnum) and (planet96_sector = sectornum)
	*set planet_name planet96_name
	*set planet true
	*return
*elseif (planet97_quadrant = quadnum) and (planet97_sector = sectornum)
	*set planet_name planet97_name
	*set planet true
	*return
*elseif (planet98_quadrant = quadnum) and (planet98_sector = sectornum)
	*set planet_name planet98_name
	*set planet true
	*return
*elseif (planet99_quadrant = quadnum) and (planet99_sector = sectornum)
	*set planet_name planet99_name
	*set planet true
	*return
*if (planet100_quadrant = quadnum) and (planet100_sector = sectornum)
	*set planet_name planet100_name
	*set planet true
	*return
*if (planet101_quadrant = quadnum) and (planet101_sector = sectornum)
	*set planet_name planet101_name
	*set planet true
	*return
*elseif (planet102_quadrant = quadnum) and (planet102_sector = sectornum)
	*set planet_name planet102_name
	*set planet true
	*return
*elseif (planet103_quadrant = quadnum) and (planet103_sector = sectornum)
	*set planet_name planet103_name
	*set planet true
	*return
*elseif (planet104_quadrant = quadnum) and (planet104_sector = sectornum)
	*set planet_name planet104_name
	*set planet true
	*return
*elseif (planet105_quadrant = quadnum) and (planet105_sector = sectornum)
	*set planet_name planet105_name
	*set planet true
	*return
*elseif (planet106_quadrant = quadnum) and (planet106_sector = sectornum)
	*set planet_name planet106_name
	*set planet true
	*return
*elseif (planet107_quadrant = quadnum) and (planet107_sector = sectornum)
	*set planet_name planet107_name
	*set planet true
	*return
*elseif (planet108_quadrant = quadnum) and (planet108_sector = sectornum)
	*set planet_name planet108_name
	*set planet true
	*return
*elseif (planet109_quadrant = quadnum) and (planet109_sector = sectornum)
	*set planet_name planet109_name
	*set planet true
	*return
*elseif (planet110_quadrant = quadnum) and (planet110_sector = sectornum)
	*set planet_name planet110_name
	*set planet true
	*return
*elseif (planet120_quadrant = quadnum) and (planet120_sector = sectornum)
	*set planet_name planet120_name
	*set planet true
	*return
*elseif (planet121_quadrant = quadnum) and (planet121_sector = sectornum)
	*set planet_name planet121_name
	*set planet true
	*return
*elseif (planet122_quadrant = quadnum) and (planet122_sector = sectornum)
	*set planet_name planet122_name
	*set planet true
	*return
*elseif (planet123_quadrant = quadnum) and (planet123_sector = sectornum)
	*set planet_name planet123_name
	*set planet true
	*return
*elseif (planet124_quadrant = quadnum) and (planet124_sector = sectornum)
	*set planet_name planet124_name
	*set planet true
	*return
*elseif (planet125_quadrant = quadnum) and (planet125_sector = sectornum)
	*set planet_name planet125_name
	*set planet true
	*return
*elseif (planet126_quadrant = quadnum) and (planet126_sector = sectornum)
	*set planet_name planet126_name
	*set planet true
	*return
*elseif (planet127_quadrant = quadnum) and (planet127_sector = sectornum)
	*set planet_name planet127_name
	*set planet true
	*return
*elseif (planet128_quadrant = quadnum) and (planet128_sector = sectornum)
	*set planet_name planet128_name
	*set planet true
	*return
*elseif (planet129_quadrant = quadnum) and (planet129_sector = sectornum)
	*set planet_name planet129_name
	*set planet true
	*return
*elseif (planet130_quadrant = quadnum) and (planet130_sector = sectornum)
	*set planet_name planet130_name
	*set planet true
	*return
*elseif (planet131_quadrant = quadnum) and (planet131_sector = sectornum)
	*set planet_name planet131_name
	*set planet true
	*return
*elseif (planet132_quadrant = quadnum) and (planet132_sector = sectornum)
	*set planet_name planet132_name
	*set planet true
	*return
*elseif (planet133_quadrant = quadnum) and (planet133_sector = sectornum)
	*set planet_name planet133_name
	*set planet true
	*return
*elseif (planet134_quadrant = quadnum) and (planet134_sector = sectornum)
	*set planet_name planet134_name
	*set planet true
	*return
*elseif (planet135_quadrant = quadnum) and (planet135_sector = sectornum)
	*set planet_name planet135_name
	*set planet true
	*return
*elseif (planet136_quadrant = quadnum) and (planet136_sector = sectornum)
	*set planet_name planet136_name
	*set planet true
	*return
*elseif (planet137_quadrant = quadnum) and (planet137_sector = sectornum)
	*set planet_name planet137_name
	*set planet true
	*return
*elseif (planet138_quadrant = quadnum) and (planet138_sector = sectornum)
	*set planet_name planet138_name
	*set planet true
	*return
*elseif (planet139_quadrant = quadnum) and (planet139_sector = sectornum)
	*set planet_name planet139_name
	*set planet true
	*return
*elseif (planet140_quadrant = quadnum) and (planet140_sector = sectornum)
	*set planet_name planet140_name
	*set planet true
	*return
*elseif (planet141_quadrant = quadnum) and (planet141_sector = sectornum)
	*set planet_name planet141_name
	*set planet true
	*return
*elseif (planet142_quadrant = quadnum) and (planet142_sector = sectornum)
	*set planet_name planet142_name
	*set planet true
	*return
*elseif (planet143_quadrant = quadnum) and (planet143_sector = sectornum)
	*set planet_name planet143_name
	*set planet true
	*return
*elseif (planet144_quadrant = quadnum) and (planet144_sector = sectornum)
	*set planet_name planet144_name
	*set planet true
	*return
*elseif (planet145_quadrant = quadnum) and (planet145_sector = sectornum)
	*set planet_name planet145_name
	*set planet true
	*return
*elseif (planet146_quadrant = quadnum) and (planet146_sector = sectornum)
	*set planet_name planet146_name
	*set planet true
	*return
*elseif (planet147_quadrant = quadnum) and (planet147_sector = sectornum)
	*set planet_name planet147_name
	*set planet true
	*return
*elseif (planet148_quadrant = quadnum) and (planet148_sector = sectornum)
	*set planet_name planet148_name
	*set planet true
	*return
*elseif (planet149_quadrant = quadnum) and (planet149_sector = sectornum)
	*set planet_name planet149_name
	*set planet true
	*return
*elseif (planet150_quadrant = quadnum) and (planet150_sector = sectornum)
	*set planet_name planet150_name
	*set planet true
	*return
*else
	*set planet false
	*return


*label planet_level

*temp sectornum 0
*set sectornum sector

*if (planet1_quadrant = quadnum) and (planet1_sector = sectornum)
	*set planet_level planet1_level
	*set planet true
	*return
*elseif (planet2_quadrant = quadnum) and (planet1_sector = sectornum)
	*set planet_level planet2_level
	*set planet true
	*return
*elseif (planet3_quadrant = quadnum) and (planet1_sector = sectornum)
	*set planet_level planet3_level
	*set planet true
	*return
*elseif (planet4_quadrant = quadnum) and (planet4_sector = sectornum)
	*set planet_level planet4_level
	*set planet true
	*return
*elseif (planet5_quadrant = quadnum) and (planet5_sector = sectornum)
	*set planet_level planet5_level
	*set planet true
	*return
*elseif (planet6_quadrant = quadnum) and (planet6_sector = sectornum)
	*set planet_level planet6_level
	*set planet true
	*return
*elseif (planet7_quadrant = quadnum) and (planet7_sector = sectornum)
	*set planet_level planet7_level
	*set planet true
	*return
*elseif (planet8_quadrant = quadnum) and (planet8_sector = sectornum)
	*set planet_level planet8_level
	*set planet true
	*return
*elseif (planet9_quadrant = quadnum) and (planet9_sector = sectornum)
	*set planet_level planet9_level
	*set planet true
	*return
*elseif (planet10_quadrant = quadnum) and (planet10_sector = sectornum)
	*set planet_level planet10_level
	*set planet true
	*return
*elseif (planet11_quadrant = quadnum) and (planet11_sector = sectornum)
	*set planet_level planet11_level
	*set planet true
	*return
*elseif (planet12_quadrant = quadnum) and (planet12_sector = sectornum)
	*set planet_level planet12_level
	*set planet true
	*return
*elseif (planet13_quadrant = quadnum) and (planet13_sector = sectornum)
	*set planet_level planet13_level
	*set planet true
	*return
*elseif (planet14_quadrant = quadnum) and (planet14_sector = sectornum)
	*set planet_level planet14_level
	*set planet true
	*return
*elseif (planet15_quadrant = quadnum) and (planet15_sector = sectornum)
	*set planet_level planet15_level
	*set planet true
	*return
*elseif (planet16_quadrant = quadnum) and (planet16_sector = sectornum)
	*set planet_level planet16_level
	*set planet true
	*return
*elseif (planet17_quadrant = quadnum) and (planet17_sector = sectornum)
	*set planet_level planet17_level
	*set planet true
	*return
*elseif (planet18_quadrant = quadnum) and (planet18_sector = sectornum)
	*set planet_level planet18_level
	*set planet true
	*return
*elseif (planet19_quadrant = quadnum) and (planet19_sector = sectornum)
	*set planet_level planet19_level
	*set planet true
	*return
*elseif (planet20_quadrant = quadnum) and (planet20_sector = sectornum)
	*set planet_level planet20_level
	*set planet true
	*return
*elseif (planet21_quadrant = quadnum) and (planet21_sector = sectornum)
	*set planet_level planet21_level
	*set planet true
	*return
*elseif (planet22_quadrant = quadnum) and (planet22_sector = sectornum)
	*set planet_level planet22_level
	*set planet true
	*return
*elseif (planet23_quadrant = quadnum) and (planet23_sector = sectornum)
	*set planet_level planet23_level
	*set planet true
	*return
*elseif (planet24_quadrant = quadnum) and (planet24_sector = sectornum)
	*set planet_level planet24_level
	*set planet true
	*return
*elseif (planet25_quadrant = quadnum) and (planet25_sector = sectornum)
	*set planet_level planet25_level
	*set planet true
	*return
*elseif (planet26_quadrant = quadnum) and (planet26_sector = sectornum)
	*set planet_level planet26_level
	*set planet true
	*return
*elseif (planet27_quadrant = quadnum) and (planet27_sector = sectornum)
	*set planet_level planet27_level
	*set planet true
	*return
*elseif (planet28_quadrant = quadnum) and (planet28_sector = sectornum)
	*set planet_level planet28_level
	*set planet true
	*return
*elseif (planet29_quadrant = quadnum) and (planet29_sector = sectornum)
	*set planet_level planet29_level
	*set planet true
	*return
*elseif (planet30_quadrant = quadnum) and (planet30_sector = sectornum)
	*set planet_level planet30_level
	*set planet true
	*return
*elseif (planet31_quadrant = quadnum) and (planet31_sector = sectornum)
	*set planet_level planet31_level
	*set planet true
	*return
*elseif (planet32_quadrant = quadnum) and (planet32_sector = sectornum)
	*set planet_level planet32_level
	*set planet true
	*return
*elseif (planet33_quadrant = quadnum) and (planet33_sector = sectornum)
	*set planet_level planet33_level
	*set planet true
	*return
*elseif (planet34_quadrant = quadnum) and (planet34_sector = sectornum)
	*set planet_level planet34_level
	*set planet true
	*return
*elseif (planet35_quadrant = quadnum) and (planet35_sector = sectornum)
	*set planet_level planet35_level
	*set planet true
	*return
*elseif (planet36_quadrant = quadnum) and (planet36_sector = sectornum)
	*set planet_level planet36_level
	*set planet true
	*return
*elseif (planet37_quadrant = quadnum) and (planet37_sector = sectornum)
	*set planet_level planet37_level
	*set planet true
	*return
*elseif (planet38_quadrant = quadnum) and (planet38_sector = sectornum)
	*set planet_level planet38_level
	*set planet true
	*return
*elseif (planet39_quadrant = quadnum) and (planet39_sector = sectornum)
	*set planet_level planet39_level
	*set planet true
	*return
*elseif (planet40_quadrant = quadnum) and (planet40_sector = sectornum)
	*set planet_level planet40_level
	*set planet true
	*return
*elseif (planet41_quadrant = quadnum) and (planet41_sector = sectornum)
	*set planet_level planet41_level
	*set planet true
	*return
*elseif (planet42_quadrant = quadnum) and (planet42_sector = sectornum)
	*set planet_level planet42_level
	*set planet true
	*return
*elseif (planet43_quadrant = quadnum) and (planet43_sector = sectornum)
	*set planet_level planet43_level
	*set planet true
	*return
*elseif (planet44_quadrant = quadnum) and (planet44_sector = sectornum)
	*set planet_level planet44_level
	*set planet true
	*return
*elseif (planet45_quadrant = quadnum) and (planet45_sector = sectornum)
	*set planet_level planet45_level
	*set planet true
	*return
*elseif (planet46_quadrant = quadnum) and (planet46_sector = sectornum)
	*set planet_level planet46_level
	*set planet true
	*return
*elseif (planet47_quadrant = quadnum) and (planet47_sector = sectornum)
	*set planet_level planet47_level
	*set planet true
	*return
*elseif (planet48_quadrant = quadnum) and (planet48_sector = sectornum)
	*set planet_level planet48_level
	*set planet true
	*return
*elseif (planet49_quadrant = quadnum) and (planet49_sector = sectornum)
	*set planet_level planet49_level
	*set planet true
	*return
*elseif (planet50_quadrant = quadnum) and (planet50_sector = sectornum)
	*set planet_level planet50_level
	*set planet true
	*return
*elseif (planet51_quadrant = quadnum) and (planet51_sector = sectornum)
	*set planet_level planet51_level
	*set planet true
	*return
*elseif (planet52_quadrant = quadnum) and (planet52_sector = sectornum)
	*set planet_level planet52_level
	*set planet true
	*return
*elseif (planet53_quadrant = quadnum) and (planet53_sector = sectornum)
	*set planet_level planet53_level
	*set planet true
	*return
*elseif (planet54_quadrant = quadnum) and (planet54_sector = sectornum)
	*set planet_level planet54_level
	*set planet true
	*return
*elseif (planet55_quadrant = quadnum) and (planet55_sector = sectornum)
	*set planet_level planet55_level
	*set planet true
	*return
*elseif (planet56_quadrant = quadnum) and (planet56_sector = sectornum)
	*set planet_level planet56_level
	*set planet true
	*return
*elseif (planet57_quadrant = quadnum) and (planet57_sector = sectornum)
	*set planet_level planet57_level
	*set planet true
	*return
*elseif (planet58_quadrant = quadnum) and (planet58_sector = sectornum)
	*set planet_level planet58_level
	*set planet true
	*return
*elseif (planet59_quadrant = quadnum) and (planet59_sector = sectornum)
	*set planet_level planet59_level
	*set planet true
	*return
*elseif (planet60_quadrant = quadnum) and (planet60_sector = sectornum)
	*set planet_level planet60_level
	*set planet true
	*return
*elseif (planet61_quadrant = quadnum) and (planet61_sector = sectornum)
	*set planet_level planet61_level
	*set planet true
	*return
*elseif (planet62_quadrant = quadnum) and (planet62_sector = sectornum)
	*set planet_level planet62_level
	*set planet true
	*return
*elseif (planet63_quadrant = quadnum) and (planet63_sector = sectornum)
	*set planet_level planet63_level
	*set planet true
	*return
*elseif (planet64_quadrant = quadnum) and (planet64_sector = sectornum)
	*set planet_level planet64_level
	*set planet true
	*return
*elseif (planet65_quadrant = quadnum) and (planet65_sector = sectornum)
	*set planet_level planet65_level
	*set planet true
	*return
*elseif (planet66_quadrant = quadnum) and (planet66_sector = sectornum)
	*set planet_level planet66_level
	*set planet true
	*return
*elseif (planet67_quadrant = quadnum) and (planet67_sector = sectornum)
	*set planet_level planet67_level
	*set planet true
	*return
*elseif (planet68_quadrant = quadnum) and (planet68_sector = sectornum)
	*set planet_level planet68_level
	*set planet true
	*return
*elseif (planet69_quadrant = quadnum) and (planet69_sector = sectornum)
	*set planet_level planet69_level
	*set planet true
	*return
*elseif (planet70_quadrant = quadnum) and (planet70_sector = sectornum)
	*set planet_level planet70_level
	*set planet true
	*return
*elseif (planet71_quadrant = quadnum) and (planet71_sector = sectornum)
	*set planet_level planet71_level
	*set planet true
	*return
*elseif (planet72_quadrant = quadnum) and (planet72_sector = sectornum)
	*set planet_level planet72_level
	*set planet true
	*return
*elseif (planet73_quadrant = quadnum) and (planet73_sector = sectornum)
	*set planet_level planet73_level
	*set planet true
	*return
*elseif (planet74_quadrant = quadnum) and (planet74_sector = sectornum)
	*set planet_level planet74_level
	*set planet true
	*return
*elseif (planet75_quadrant = quadnum) and (planet75_sector = sectornum)
	*set planet_level planet75_level
	*set planet true
	*return
*elseif (planet76_quadrant = quadnum) and (planet76_sector = sectornum)
	*set planet_level planet76_level
	*set planet true
	*return
*elseif (planet77_quadrant = quadnum) and (planet77_sector = sectornum)
	*set planet_level planet77_level
	*set planet true
	*return
*elseif (planet78_quadrant = quadnum) and (planet78_sector = sectornum)
	*set planet_level planet78_level
	*set planet true
	*return
*elseif (planet79_quadrant = quadnum) and (planet79_sector = sectornum)
	*set planet_level planet79_level
	*set planet true
	*return
*elseif (planet80_quadrant = quadnum) and (planet80_sector = sectornum)
	*set planet_level planet80_level
	*set planet true
	*return
*elseif (planet81_quadrant = quadnum) and (planet81_sector = sectornum)
	*set planet_level planet81_level
	*set planet true
	*return
*elseif (planet82_quadrant = quadnum) and (planet82_sector = sectornum)
	*set planet_level planet82_level
	*set planet true
	*return
*elseif (planet83_quadrant = quadnum) and (planet83_sector = sectornum)
	*set planet_level planet83_level
	*set planet true
	*return
*elseif (planet84_quadrant = quadnum) and (planet84_sector = sectornum)
	*set planet_level planet84_level
	*set planet true
	*return
*elseif (planet85_quadrant = quadnum) and (planet85_sector = sectornum)
	*set planet_level planet85_level
	*set planet true
	*return
*elseif (planet86_quadrant = quadnum) and (planet86_sector = sectornum)
	*set planet_level planet86_level
	*set planet true
	*return
*elseif (planet87_quadrant = quadnum) and (planet87_sector = sectornum)
	*set planet_level planet87_level
	*set planet true
	*return
*elseif (planet88_quadrant = quadnum) and (planet88_sector = sectornum)
	*set planet_level planet88_level
	*set planet true
	*return
*elseif (planet89_quadrant = quadnum) and (planet89_sector = sectornum)
	*set planet_level planet89_level
	*set planet true
	*return
*elseif (planet90_quadrant = quadnum) and (planet90_sector = sectornum)
	*set planet_level planet90_level
	*set planet true
	*return
*elseif (planet91_quadrant = quadnum) and (planet91_sector = sectornum)
	*set planet_level planet91_level
	*set planet true
	*return
*elseif (planet92_quadrant = quadnum) and (planet92_sector = sectornum)
	*set planet_level planet92_level
	*set planet true
	*return
*elseif (planet93_quadrant = quadnum) and (planet93_sector = sectornum)
	*set planet_level planet93_level
	*set planet true
	*return
*elseif (planet94_quadrant = quadnum) and (planet94_sector = sectornum)
	*set planet_level planet94_level
	*set planet true
	*return
*elseif (planet95_quadrant = quadnum) and (planet95_sector = sectornum)
	*set planet_level planet95_level
	*set planet true
	*return
*elseif (planet96_quadrant = quadnum) and (planet96_sector = sectornum)
	*set planet_level planet96_level
	*set planet true
	*return
*elseif (planet97_quadrant = quadnum) and (planet97_sector = sectornum)
	*set planet_level planet97_level
	*set planet true
	*return
*elseif (planet98_quadrant = quadnum) and (planet98_sector = sectornum)
	*set planet_level planet98_level
	*set planet true
	*return
*elseif (planet99_quadrant = quadnum) and (planet99_sector = sectornum)
	*set planet_level planet99_level
	*set planet true
	*return
*if (planet100_quadrant = quadnum) and (planet100_sector = sectornum)
	*set planet_level planet100_level
	*set planet true
	*return
*if (planet101_quadrant = quadnum) and (planet101_sector = sectornum)
	*set planet_level planet101_level
	*set planet true
	*return
*elseif (planet102_quadrant = quadnum) and (planet102_sector = sectornum)
	*set planet_level planet102_level
	*set planet true
	*return
*elseif (planet103_quadrant = quadnum) and (planet102_sector = sectornum)
	*set planet_level planet103_level
	*set planet true
	*return
*elseif (planet104_quadrant = quadnum) and (planet104_sector = sectornum)
	*set planet_level planet104_level
	*set planet true
	*return
*elseif (planet105_quadrant = quadnum) and (planet105_sector = sectornum)
	*set planet_level planet105_level
	*set planet true
	*return
*elseif (planet106_quadrant = quadnum) and (planet106_sector = sectornum)
	*set planet_level planet106_level
	*set planet true
	*return
*elseif (planet107_quadrant = quadnum) and (planet107_sector = sectornum)
	*set planet_level planet107_level
	*set planet true
	*return
*elseif (planet108_quadrant = quadnum) and (planet108_sector = sectornum)
	*set planet_level planet108_level
	*set planet true
	*return
*elseif (planet109_quadrant = quadnum) and (planet109_sector = sectornum)
	*set planet_level planet109_level
	*set planet true
	*return
*elseif (planet110_quadrant = quadnum) and (planet110_sector = sectornum)
	*set planet_level planet110_level
	*set planet true
	*return
*elseif (planet120_quadrant = quadnum) and (planet120_sector = sectornum)
	*set planet_level planet120_level
	*set planet true
	*return
*elseif (planet121_quadrant = quadnum) and (planet121_sector = sectornum)
	*set planet_level planet121_level
	*set planet true
	*return
*elseif (planet122_quadrant = quadnum) and (planet122_sector = sectornum)
	*set planet_level planet122_level
	*set planet true
	*return
*elseif (planet123_quadrant = quadnum) and (planet123_sector = sectornum)
	*set planet_level planet123_level
	*set planet true
	*return
*elseif (planet124_quadrant = quadnum) and (planet124_sector = sectornum)
	*set planet_level planet124_level
	*set planet true
	*return
*elseif (planet125_quadrant = quadnum) and (planet125_sector = sectornum)
	*set planet_level planet125_level
	*set planet true
	*return
*elseif (planet126_quadrant = quadnum) and (planet126_sector = sectornum)
	*set planet_level planet126_level
	*set planet true
	*return
*elseif (planet127_quadrant = quadnum) and (planet127_sector = sectornum)
	*set planet_level planet127_level
	*set planet true
	*return
*elseif (planet128_quadrant = quadnum) and (planet128_sector = sectornum)
	*set planet_level planet128_level
	*set planet true
	*return
*elseif (planet129_quadrant = quadnum) and (planet129_sector = sectornum)
	*set planet_level planet129_level
	*set planet true
	*return
*elseif (planet130_quadrant = quadnum) and (planet130_sector = sectornum)
	*set planet_level planet130_level
	*set planet true
	*return
*elseif (planet131_quadrant = quadnum) and (planet131_sector = sectornum)
	*set planet_level planet131_level
	*set planet true
	*return
*elseif (planet132_quadrant = quadnum) and (planet132_sector = sectornum)
	*set planet_level planet132_level
	*set planet true
	*return
*elseif (planet133_quadrant = quadnum) and (planet133_sector = sectornum)
	*set planet_level planet133_level
	*set planet true
	*return
*elseif (planet134_quadrant = quadnum) and (planet134_sector = sectornum)
	*set planet_level planet134_level
	*set planet true
	*return
*elseif (planet135_quadrant = quadnum) and (planet135_sector = sectornum)
	*set planet_level planet135_level
	*set planet true
	*return
*elseif (planet136_quadrant = quadnum) and (planet136_sector = sectornum)
	*set planet_level planet136_level
	*set planet true
	*return
*elseif (planet137_quadrant = quadnum) and (planet137_sector = sectornum)
	*set planet_level planet137_level
	*set planet true
	*return
*elseif (planet138_quadrant = quadnum) and (planet138_sector = sectornum)
	*set planet_level planet138_level
	*set planet true
	*return
*elseif (planet139_quadrant = quadnum) and (planet139_sector = sectornum)
	*set planet_level planet139_level
	*set planet true
	*return
*elseif (planet140_quadrant = quadnum) and (planet140_sector = sectornum)
	*set planet_level planet140_level
	*set planet true
	*return
*elseif (planet141_quadrant = quadnum) and (planet141_sector = sectornum)
	*set planet_level planet141_level
	*set planet true
	*return
*elseif (planet142_quadrant = quadnum) and (planet142_sector = sectornum)
	*set planet_level planet142_level
	*set planet true
	*return
*elseif (planet143_quadrant = quadnum) and (planet143_sector = sectornum)
	*set planet_level planet143_level
	*set planet true
	*return
*elseif (planet144_quadrant = quadnum) and (planet144_sector = sectornum)
	*set planet_level planet144_level
	*set planet true
	*return
*elseif (planet145_quadrant = quadnum) and (planet145_sector = sectornum)
	*set planet_level planet145_level
	*set planet true
	*return
*elseif (planet146_quadrant = quadnum) and (planet146_sector = sectornum)
	*set planet_level planet146_level
	*set planet true
	*return
*elseif (planet147_quadrant = quadnum) and (planet147_sector = sectornum)
	*set planet_level planet147_level
	*set planet true
	*return
*elseif (planet148_quadrant = quadnum) and (planet148_sector = sectornum)
	*set planet_level planet148_level
	*set planet true
	*return
*elseif (planet149_quadrant = quadnum) and (planet149_sector = sectornum)
	*set planet_level planet149_level
	*set planet true
	*return
*elseif (planet150_quadrant = quadnum) and (planet150_sector = sectornum)
	*set planet_level planet150_level
	*set planet true
	*return
*else
	*set planet false
	*return

*label planet_culture

*temp sectornum 0
*set sectornum sector

*if (planet1_quadrant = quadnum) and (planet1_sector = sectornum)
	*set planet_culture planet1_culture
	*set planet true
	*return
*elseif (planet2_quadrant = quadnum) and (planet1_sector = sectornum)
	*set planet_culture planet2_culture
	*set planet true
	*return
*elseif (planet3_quadrant = quadnum) and (planet1_sector = sectornum)
	*set planet_culture planet3_culture
	*set planet true
	*return
*elseif (planet4_quadrant = quadnum) and (planet4_sector = sectornum)
	*set planet_culture planet4_culture
	*set planet true
	*return
*elseif (planet5_quadrant = quadnum) and (planet5_sector = sectornum)
	*set planet_culture planet5_culture
	*set planet true
	*return
*elseif (planet6_quadrant = quadnum) and (planet6_sector = sectornum)
	*set planet_culture planet6_culture
	*set planet true
	*return
*elseif (planet7_quadrant = quadnum) and (planet7_sector = sectornum)
	*set planet_culture planet7_culture
	*set planet true
	*return
*elseif (planet8_quadrant = quadnum) and (planet8_sector = sectornum)
	*set planet_culture planet8_culture
	*set planet true
	*return
*elseif (planet9_quadrant = quadnum) and (planet9_sector = sectornum)
	*set planet_culture planet9_culture
	*set planet true
	*return
*elseif (planet10_quadrant = quadnum) and (planet10_sector = sectornum)
	*set planet_culture planet10_culture
	*set planet true
	*return
*elseif (planet11_quadrant = quadnum) and (planet11_sector = sectornum)
	*set planet_culture planet11_culture
	*set planet true
	*return
*elseif (planet12_quadrant = quadnum) and (planet12_sector = sectornum)
	*set planet_culture planet12_culture
	*set planet true
	*return
*elseif (planet13_quadrant = quadnum) and (planet13_sector = sectornum)
	*set planet_culture planet13_culture
	*set planet true
	*return
*elseif (planet14_quadrant = quadnum) and (planet14_sector = sectornum)
	*set planet_culture planet14_culture
	*set planet true
	*return
*elseif (planet15_quadrant = quadnum) and (planet15_sector = sectornum)
	*set planet_culture planet15_culture
	*set planet true
	*return
*elseif (planet16_quadrant = quadnum) and (planet16_sector = sectornum)
	*set planet_culture planet16_culture
	*set planet true
	*return
*elseif (planet17_quadrant = quadnum) and (planet17_sector = sectornum)
	*set planet_culture planet17_culture
	*set planet true
	*return
*elseif (planet18_quadrant = quadnum) and (planet18_sector = sectornum)
	*set planet_culture planet18_culture
	*set planet true
	*return
*elseif (planet19_quadrant = quadnum) and (planet19_sector = sectornum)
	*set planet_culture planet19_culture
	*set planet true
	*return
*elseif (planet20_quadrant = quadnum) and (planet20_sector = sectornum)
	*set planet_culture planet20_culture
	*set planet true
	*return
*elseif (planet21_quadrant = quadnum) and (planet21_sector = sectornum)
	*set planet_culture planet21_culture
	*set planet true
	*return
*elseif (planet22_quadrant = quadnum) and (planet22_sector = sectornum)
	*set planet_culture planet22_culture
	*set planet true
	*return
*elseif (planet23_quadrant = quadnum) and (planet23_sector = sectornum)
	*set planet_culture planet23_culture
	*set planet true
	*return
*elseif (planet24_quadrant = quadnum) and (planet24_sector = sectornum)
	*set planet_culture planet24_culture
	*set planet true
	*return
*elseif (planet25_quadrant = quadnum) and (planet25_sector = sectornum)
	*set planet_culture planet25_culture
	*set planet true
	*return
*elseif (planet26_quadrant = quadnum) and (planet26_sector = sectornum)
	*set planet_culture planet26_culture
	*set planet true
	*return
*elseif (planet27_quadrant = quadnum) and (planet27_sector = sectornum)
	*set planet_culture planet27_culture
	*set planet true
	*return
*elseif (planet28_quadrant = quadnum) and (planet28_sector = sectornum)
	*set planet_culture planet28_culture
	*set planet true
	*return
*elseif (planet29_quadrant = quadnum) and (planet29_sector = sectornum)
	*set planet_culture planet29_culture
	*set planet true
	*return
*elseif (planet30_quadrant = quadnum) and (planet30_sector = sectornum)
	*set planet_culture planet30_culture
	*set planet true
	*return
*elseif (planet31_quadrant = quadnum) and (planet31_sector = sectornum)
	*set planet_culture planet31_culture
	*set planet true
	*return
*elseif (planet32_quadrant = quadnum) and (planet32_sector = sectornum)
	*set planet_culture planet32_culture
	*set planet true
	*return
*elseif (planet33_quadrant = quadnum) and (planet33_sector = sectornum)
	*set planet_culture planet33_culture
	*set planet true
	*return
*elseif (planet34_quadrant = quadnum) and (planet34_sector = sectornum)
	*set planet_culture planet34_culture
	*set planet true
	*return
*elseif (planet35_quadrant = quadnum) and (planet35_sector = sectornum)
	*set planet_culture planet35_culture
	*set planet true
	*return
*elseif (planet36_quadrant = quadnum) and (planet36_sector = sectornum)
	*set planet_culture planet36_culture
	*set planet true
	*return
*elseif (planet37_quadrant = quadnum) and (planet37_sector = sectornum)
	*set planet_culture planet37_culture
	*set planet true
	*return
*elseif (planet38_quadrant = quadnum) and (planet38_sector = sectornum)
	*set planet_culture planet38_culture
	*set planet true
	*return
*elseif (planet39_quadrant = quadnum) and (planet39_sector = sectornum)
	*set planet_culture planet39_culture
	*set planet true
	*return
*elseif (planet40_quadrant = quadnum) and (planet40_sector = sectornum)
	*set planet_culture planet40_culture
	*set planet true
	*return
*elseif (planet41_quadrant = quadnum) and (planet41_sector = sectornum)
	*set planet_culture planet41_culture
	*set planet true
	*return
*elseif (planet42_quadrant = quadnum) and (planet42_sector = sectornum)
	*set planet_culture planet42_culture
	*set planet true
	*return
*elseif (planet43_quadrant = quadnum) and (planet43_sector = sectornum)
	*set planet_culture planet43_culture
	*set planet true
	*return
*elseif (planet44_quadrant = quadnum) and (planet44_sector = sectornum)
	*set planet_culture planet44_culture
	*set planet true
	*return
*elseif (planet45_quadrant = quadnum) and (planet45_sector = sectornum)
	*set planet_culture planet45_culture
	*set planet true
	*return
*elseif (planet46_quadrant = quadnum) and (planet46_sector = sectornum)
	*set planet_culture planet46_culture
	*set planet true
	*return
*elseif (planet47_quadrant = quadnum) and (planet47_sector = sectornum)
	*set planet_culture planet47_culture
	*set planet true
	*return
*elseif (planet48_quadrant = quadnum) and (planet48_sector = sectornum)
	*set planet_culture planet48_culture
	*set planet true
	*return
*elseif (planet49_quadrant = quadnum) and (planet49_sector = sectornum)
	*set planet_culture planet49_culture
	*set planet true
	*return
*elseif (planet50_quadrant = quadnum) and (planet50_sector = sectornum)
	*set planet_culture planet50_culture
	*set planet true
	*return
*elseif (planet51_quadrant = quadnum) and (planet51_sector = sectornum)
	*set planet_culture planet51_culture
	*set planet true
	*return
*elseif (planet52_quadrant = quadnum) and (planet52_sector = sectornum)
	*set planet_culture planet52_culture
	*set planet true
	*return
*elseif (planet53_quadrant = quadnum) and (planet53_sector = sectornum)
	*set planet_culture planet53_culture
	*set planet true
	*return
*elseif (planet54_quadrant = quadnum) and (planet54_sector = sectornum)
	*set planet_culture planet54_culture
	*set planet true
	*return
*elseif (planet55_quadrant = quadnum) and (planet55_sector = sectornum)
	*set planet_culture planet55_culture
	*set planet true
	*return
*elseif (planet56_quadrant = quadnum) and (planet56_sector = sectornum)
	*set planet_culture planet56_culture
	*set planet true
	*return
*elseif (planet57_quadrant = quadnum) and (planet57_sector = sectornum)
	*set planet_culture planet57_culture
	*set planet true
	*return
*elseif (planet58_quadrant = quadnum) and (planet58_sector = sectornum)
	*set planet_culture planet58_culture
	*set planet true
	*return
*elseif (planet59_quadrant = quadnum) and (planet59_sector = sectornum)
	*set planet_culture planet59_culture
	*set planet true
	*return
*elseif (planet60_quadrant = quadnum) and (planet60_sector = sectornum)
	*set planet_culture planet60_culture
	*set planet true
	*return
*elseif (planet61_quadrant = quadnum) and (planet61_sector = sectornum)
	*set planet_culture planet61_culture
	*set planet true
	*return
*elseif (planet62_quadrant = quadnum) and (planet62_sector = sectornum)
	*set planet_culture planet62_culture
	*set planet true
	*return
*elseif (planet63_quadrant = quadnum) and (planet63_sector = sectornum)
	*set planet_culture planet63_culture
	*set planet true
	*return
*elseif (planet64_quadrant = quadnum) and (planet64_sector = sectornum)
	*set planet_culture planet64_culture
	*set planet true
	*return
*elseif (planet65_quadrant = quadnum) and (planet65_sector = sectornum)
	*set planet_culture planet65_culture
	*set planet true
	*return
*elseif (planet66_quadrant = quadnum) and (planet66_sector = sectornum)
	*set planet_culture planet66_culture
	*set planet true
	*return
*elseif (planet67_quadrant = quadnum) and (planet67_sector = sectornum)
	*set planet_culture planet67_culture
	*set planet true
	*return
*elseif (planet68_quadrant = quadnum) and (planet68_sector = sectornum)
	*set planet_culture planet68_culture
	*set planet true
	*return
*elseif (planet69_quadrant = quadnum) and (planet69_sector = sectornum)
	*set planet_culture planet69_culture
	*set planet true
	*return
*elseif (planet70_quadrant = quadnum) and (planet70_sector = sectornum)
	*set planet_culture planet70_culture
	*set planet true
	*return
*elseif (planet71_quadrant = quadnum) and (planet71_sector = sectornum)
	*set planet_culture planet71_culture
	*set planet true
	*return
*elseif (planet72_quadrant = quadnum) and (planet72_sector = sectornum)
	*set planet_culture planet72_culture
	*set planet true
	*return
*elseif (planet73_quadrant = quadnum) and (planet73_sector = sectornum)
	*set planet_culture planet73_culture
	*set planet true
	*return
*elseif (planet74_quadrant = quadnum) and (planet74_sector = sectornum)
	*set planet_culture planet74_culture
	*set planet true
	*return
*elseif (planet75_quadrant = quadnum) and (planet75_sector = sectornum)
	*set planet_culture planet75_culture
	*set planet true
	*return
*elseif (planet76_quadrant = quadnum) and (planet76_sector = sectornum)
	*set planet_culture planet76_culture
	*set planet true
	*return
*elseif (planet77_quadrant = quadnum) and (planet77_sector = sectornum)
	*set planet_culture planet77_culture
	*set planet true
	*return
*elseif (planet78_quadrant = quadnum) and (planet78_sector = sectornum)
	*set planet_culture planet78_culture
	*set planet true
	*return
*elseif (planet79_quadrant = quadnum) and (planet79_sector = sectornum)
	*set planet_culture planet79_culture
	*set planet true
	*return
*elseif (planet80_quadrant = quadnum) and (planet80_sector = sectornum)
	*set planet_culture planet80_culture
	*set planet true
	*return
*elseif (planet81_quadrant = quadnum) and (planet81_sector = sectornum)
	*set planet_culture planet81_culture
	*set planet true
	*return
*elseif (planet82_quadrant = quadnum) and (planet82_sector = sectornum)
	*set planet_culture planet82_culture
	*set planet true
	*return
*elseif (planet83_quadrant = quadnum) and (planet83_sector = sectornum)
	*set planet_culture planet83_culture
	*set planet true
	*return
*elseif (planet84_quadrant = quadnum) and (planet84_sector = sectornum)
	*set planet_culture planet84_culture
	*set planet true
	*return
*elseif (planet85_quadrant = quadnum) and (planet85_sector = sectornum)
	*set planet_culture planet85_culture
	*set planet true
	*return
*elseif (planet86_quadrant = quadnum) and (planet86_sector = sectornum)
	*set planet_culture planet86_culture
	*set planet true
	*return
*elseif (planet87_quadrant = quadnum) and (planet87_sector = sectornum)
	*set planet_culture planet87_culture
	*set planet true
	*return
*elseif (planet88_quadrant = quadnum) and (planet88_sector = sectornum)
	*set planet_culture planet88_culture
	*set planet true
	*return
*elseif (planet89_quadrant = quadnum) and (planet89_sector = sectornum)
	*set planet_culture planet89_culture
	*set planet true
	*return
*elseif (planet90_quadrant = quadnum) and (planet90_sector = sectornum)
	*set planet_culture planet90_culture
	*set planet true
	*return
*elseif (planet91_quadrant = quadnum) and (planet91_sector = sectornum)
	*set planet_culture planet91_culture
	*set planet true
	*return
*elseif (planet92_quadrant = quadnum) and (planet92_sector = sectornum)
	*set planet_culture planet92_culture
	*set planet true
	*return
*elseif (planet93_quadrant = quadnum) and (planet93_sector = sectornum)
	*set planet_culture planet93_culture
	*set planet true
	*return
*elseif (planet94_quadrant = quadnum) and (planet94_sector = sectornum)
	*set planet_culture planet94_culture
	*set planet true
	*return
*elseif (planet95_quadrant = quadnum) and (planet95_sector = sectornum)
	*set planet_culture planet95_culture
	*set planet true
	*return
*elseif (planet96_quadrant = quadnum) and (planet96_sector = sectornum)
	*set planet_culture planet96_culture
	*set planet true
	*return
*elseif (planet97_quadrant = quadnum) and (planet97_sector = sectornum)
	*set planet_culture planet97_culture
	*set planet true
	*return
*elseif (planet98_quadrant = quadnum) and (planet98_sector = sectornum)
	*set planet_culture planet98_culture
	*set planet true
	*return
*elseif (planet99_quadrant = quadnum) and (planet99_sector = sectornum)
	*set planet_culture planet99_culture
	*set planet true
	*return
*if (planet100_quadrant = quadnum) and (planet100_sector = sectornum)
	*set planet_culture planet100_culture
	*set planet true
	*return
*if (planet101_quadrant = quadnum) and (planet101_sector = sectornum)
	*set planet_culture planet101_culture
	*set planet true
	*return
*elseif (planet102_quadrant = quadnum) and (planet102_sector = sectornum)
	*set planet_culture planet102_culture
	*set planet true
	*return
*elseif (planet103_quadrant = quadnum) and (planet103_sector = sectornum)
	*set planet_culture planet103_culture
	*set planet true
	*return
*elseif (planet104_quadrant = quadnum) and (planet104_sector = sectornum)
	*set planet_culture planet104_culture
	*set planet true
	*return
*elseif (planet105_quadrant = quadnum) and (planet105_sector = sectornum)
	*set planet_culture planet105_culture
	*set planet true
	*return
*elseif (planet106_quadrant = quadnum) and (planet106_sector = sectornum)
	*set planet_culture planet106_culture
	*set planet true
	*return
*elseif (planet107_quadrant = quadnum) and (planet107_sector = sectornum)
	*set planet_culture planet107_culture
	*set planet true
	*return
*elseif (planet108_quadrant = quadnum) and (planet108_sector = sectornum)
	*set planet_culture planet108_culture
	*set planet true
	*return
*elseif (planet109_quadrant = quadnum) and (planet109_sector = sectornum)
	*set planet_culture planet109_culture
	*set planet true
	*return
*elseif (planet110_quadrant = quadnum) and (planet110_sector = sectornum)
	*set planet_culture planet110_culture
	*set planet true
	*return
*elseif (planet120_quadrant = quadnum) and (planet120_sector = sectornum)
	*set planet_culture planet120_culture
	*set planet true
	*return
*elseif (planet121_quadrant = quadnum) and (planet121_sector = sectornum)
	*set planet_culture planet121_culture
	*set planet true
	*return
*elseif (planet122_quadrant = quadnum) and (planet122_sector = sectornum)
	*set planet_culture planet122_culture
	*set planet true
	*return
*elseif (planet123_quadrant = quadnum) and (planet123_sector = sectornum)
	*set planet_culture planet123_culture
	*set planet true
	*return
*elseif (planet124_quadrant = quadnum) and (planet124_sector = sectornum)
	*set planet_culture planet124_culture
	*set planet true
	*return
*elseif (planet125_quadrant = quadnum) and (planet125_sector = sectornum)
	*set planet_culture planet125_culture
	*set planet true
	*return
*elseif (planet126_quadrant = quadnum) and (planet126_sector = sectornum)
	*set planet_culture planet126_culture
	*set planet true
	*return
*elseif (planet127_quadrant = quadnum) and (planet127_sector = sectornum)
	*set planet_culture planet127_culture
	*set planet true
	*return
*elseif (planet128_quadrant = quadnum) and (planet128_sector = sectornum)
	*set planet_culture planet128_culture
	*set planet true
	*return
*elseif (planet129_quadrant = quadnum) and (planet129_sector = sectornum)
	*set planet_culture planet129_culture
	*set planet true
	*return
*elseif (planet130_quadrant = quadnum) and (planet130_sector = sectornum)
	*set planet_culture planet130_culture
	*set planet true
	*return
*elseif (planet131_quadrant = quadnum) and (planet131_sector = sectornum)
	*set planet_culture planet131_culture
	*set planet true
	*return
*elseif (planet132_quadrant = quadnum) and (planet132_sector = sectornum)
	*set planet_culture planet132_culture
	*set planet true
	*return
*elseif (planet133_quadrant = quadnum) and (planet133_sector = sectornum)
	*set planet_culture planet133_culture
	*set planet true
	*return
*elseif (planet134_quadrant = quadnum) and (planet134_sector = sectornum)
	*set planet_culture planet134_culture
	*set planet true
	*return
*elseif (planet135_quadrant = quadnum) and (planet135_sector = sectornum)
	*set planet_culture planet135_culture
	*set planet true
	*return
*elseif (planet136_quadrant = quadnum) and (planet136_sector = sectornum)
	*set planet_culture planet136_culture
	*set planet true
	*return
*elseif (planet137_quadrant = quadnum) and (planet137_sector = sectornum)
	*set planet_culture planet137_culture
	*set planet true
	*return
*elseif (planet138_quadrant = quadnum) and (planet138_sector = sectornum)
	*set planet_culture planet138_culture
	*set planet true
	*return
*elseif (planet139_quadrant = quadnum) and (planet139_sector = sectornum)
	*set planet_culture planet139_culture
	*set planet true
	*return
*elseif (planet140_quadrant = quadnum) and (planet140_sector = sectornum)
	*set planet_culture planet140_culture
	*set planet true
	*return
*elseif (planet141_quadrant = quadnum) and (planet141_sector = sectornum)
	*set planet_culture planet141_culture
	*set planet true
	*return
*elseif (planet142_quadrant = quadnum) and (planet142_sector = sectornum)
	*set planet_culture planet142_culture
	*set planet true
	*return
*elseif (planet143_quadrant = quadnum) and (planet143_sector = sectornum)
	*set planet_culture planet143_culture
	*set planet true
	*return
*elseif (planet144_quadrant = quadnum) and (planet144_sector = sectornum)
	*set planet_culture planet144_culture
	*set planet true
	*return
*elseif (planet145_quadrant = quadnum) and (planet145_sector = sectornum)
	*set planet_culture planet145_culture
	*set planet true
	*return
*elseif (planet146_quadrant = quadnum) and (planet146_sector = sectornum)
	*set planet_culture planet146_culture
	*set planet true
	*return
*elseif (planet147_quadrant = quadnum) and (planet147_sector = sectornum)
	*set planet_culture planet147_culture
	*set planet true
	*return
*elseif (planet148_quadrant = quadnum) and (planet148_sector = sectornum)
	*set planet_culture planet148_culture
	*set planet true
	*return
*elseif (planet149_quadrant = quadnum) and (planet149_sector = sectornum)
	*set planet_culture planet149_culture
	*set planet true
	*return
*elseif (planet150_quadrant = quadnum) and (planet150_sector = sectornum)
	*set planet_culture planet150_culture
	*set planet true
	*return
*else
	*return

*label planet_counter

*temp sectornum 0
*set sectornum sector

*if (planet1_quadrant = quadnum) and (planet1_sector = sectornum)
	*set visit_counter planet1_visited_count
	*set planet1_visited_count +1
	*return
*elseif (planet2_quadrant = quadnum) and (planet1_sector = sectornum)
	*set visit_counter planet2_visited_count
	*set planet2_visited_count +1
	*return
*elseif (planet3_quadrant = quadnum) and (planet1_sector = sectornum)
	*set visit_counter planet3_visited_count
	*set planet3_visited_count +1
	*return
*elseif (planet4_quadrant = quadnum) and (planet4_sector = sectornum)
	*set visit_counter planet4_visited_count
	*set planet4_visited_count +1
	*return
*elseif (planet5_quadrant = quadnum) and (planet5_sector = sectornum)
	*set visit_counter planet5_visited_count
	*set planet5_visited_count +1
	*return
*elseif (planet6_quadrant = quadnum) and (planet6_sector = sectornum)
	*set visit_counter planet6_visited_count
	*set planet6_visited_count +1
	*return
*elseif (planet7_quadrant = quadnum) and (planet7_sector = sectornum)
	*set visit_counter planet7_visited_count
	*set planet7_visited_count +1
	*return
*elseif (planet8_quadrant = quadnum) and (planet8_sector = sectornum)
	*set visit_counter planet8_visited_count
	*set planet8_visited_count +1
	*return
*elseif (planet9_quadrant = quadnum) and (planet9_sector = sectornum)
	*set visit_counter planet9_visited_count
	*set planet9_visited_count +1
	*return
*elseif (planet10_quadrant = quadnum) and (planet10_sector = sectornum)
	*set visit_counter planet10_visited_count
	*set planet10_visited_count +1
	*return
*elseif (planet11_quadrant = quadnum) and (planet11_sector = sectornum)
	*set visit_counter planet11_visited_count
	*set planet11_visited_count +1
	*return
*elseif (planet12_quadrant = quadnum) and (planet12_sector = sectornum)
	*set visit_counter planet12_visited_count
	*set planet12_visited_count +1
	*return
*elseif (planet13_quadrant = quadnum) and (planet13_sector = sectornum)
	*set visit_counter planet13_visited_count
	*set planet13_visited_count +1
	*return
*elseif (planet14_quadrant = quadnum) and (planet14_sector = sectornum)
	*set visit_counter planet14_visited_count
	*set planet14_visited_count +1
	*return
*elseif (planet15_quadrant = quadnum) and (planet15_sector = sectornum)
	*set visit_counter planet15_visited_count
	*set planet15_visited_count +1
	*return
*elseif (planet16_quadrant = quadnum) and (planet16_sector = sectornum)
	*set visit_counter planet16_visited_count
	*set planet16_visited_count +1
	*return
*elseif (planet17_quadrant = quadnum) and (planet17_sector = sectornum)
	*set visit_counter planet17_visited_count
	*set planet17_visited_count +1
	*return
*elseif (planet18_quadrant = quadnum) and (planet18_sector = sectornum)
	*set visit_counter planet18_visited_count
	*set planet18_visited_count +1
	*return
*elseif (planet19_quadrant = quadnum) and (planet19_sector = sectornum)
	*set visit_counter planet19_visited_count
	*set planet19_visited_count +1
	*return
*elseif (planet20_quadrant = quadnum) and (planet20_sector = sectornum)
	*set visit_counter planet20_visited_count
	*set planet20_visited_count +1
	*return
*elseif (planet21_quadrant = quadnum) and (planet21_sector = sectornum)
	*set visit_counter planet21_visited_count
	*set planet21_visited_count +1
	*return
*elseif (planet22_quadrant = quadnum) and (planet22_sector = sectornum)
	*set visit_counter planet22_visited_count
	*set planet22_visited_count +1
	*return
*elseif (planet23_quadrant = quadnum) and (planet23_sector = sectornum)
	*set visit_counter planet23_visited_count
	*set planet23_visited_count +1
	*return
*elseif (planet24_quadrant = quadnum) and (planet24_sector = sectornum)
	*set visit_counter planet24_visited_count
	*set planet24_visited_count +1
	*return
*elseif (planet25_quadrant = quadnum) and (planet25_sector = sectornum)
	*set visit_counter planet25_visited_count
	*set planet25_visited_count +1
	*return
*elseif (planet26_quadrant = quadnum) and (planet26_sector = sectornum)
	*set visit_counter planet26_visited_count
	*set planet26_visited_count +1
	*return
*elseif (planet27_quadrant = quadnum) and (planet27_sector = sectornum)
	*set visit_counter planet27_visited_count
	*set planet27_visited_count +1
	*return
*elseif (planet28_quadrant = quadnum) and (planet28_sector = sectornum)
	*set visit_counter planet28_visited_count
	*set planet28_visited_count +1
	*return
*elseif (planet29_quadrant = quadnum) and (planet29_sector = sectornum)
	*set visit_counter planet29_visited_count
	*set planet29_visited_count +1
	*return
*elseif (planet30_quadrant = quadnum) and (planet30_sector = sectornum)
	*set visit_counter planet30_visited_count
	*set planet30_visited_count +1
	*return
*elseif (planet31_quadrant = quadnum) and (planet31_sector = sectornum)
	*set visit_counter planet31_visited_count
	*set planet31_visited_count +1
	*return
*elseif (planet32_quadrant = quadnum) and (planet32_sector = sectornum)
	*set visit_counter planet32_visited_count
	*set planet32_visited_count +1
	*return
*elseif (planet33_quadrant = quadnum) and (planet33_sector = sectornum)
	*set visit_counter planet33_visited_count
	*set planet33_visited_count +1
	*return
*elseif (planet34_quadrant = quadnum) and (planet34_sector = sectornum)
	*set visit_counter planet34_visited_count
	*set planet34_visited_count +1
	*return
*elseif (planet35_quadrant = quadnum) and (planet35_sector = sectornum)
	*set visit_counter planet35_visited_count
	*set planet35_visited_count +1
	*return
*elseif (planet36_quadrant = quadnum) and (planet36_sector = sectornum)
	*set visit_counter planet36_visited_count
	*set planet36_visited_count +1
	*return
*elseif (planet37_quadrant = quadnum) and (planet37_sector = sectornum)
	*set visit_counter planet37_visited_count
	*set planet37_visited_count +1
	*return
*elseif (planet38_quadrant = quadnum) and (planet38_sector = sectornum)
	*set visit_counter planet38_visited_count
	*set planet38_visited_count +1
	*return
*elseif (planet39_quadrant = quadnum) and (planet39_sector = sectornum)
	*set visit_counter planet39_visited_count
	*set planet39_visited_count +1
	*return
*elseif (planet40_quadrant = quadnum) and (planet40_sector = sectornum)
	*set visit_counter planet40_visited_count
	*set planet40_visited_count +1
	*return
*elseif (planet41_quadrant = quadnum) and (planet41_sector = sectornum)
	*set visit_counter planet41_visited_count
	*set planet41_visited_count +1
	*return
*elseif (planet42_quadrant = quadnum) and (planet42_sector = sectornum)
	*set visit_counter planet42_visited_count
	*set planet42_visited_count +1
	*return
*elseif (planet43_quadrant = quadnum) and (planet43_sector = sectornum)
	*set visit_counter planet43_visited_count
	*set planet43_visited_count +1
	*return
*elseif (planet44_quadrant = quadnum) and (planet44_sector = sectornum)
	*set visit_counter planet44_visited_count
	*set planet44_visited_count +1
	*return
*elseif (planet45_quadrant = quadnum) and (planet45_sector = sectornum)
	*set visit_counter planet45_visited_count
	*set planet45_visited_count +1
	*return
*elseif (planet46_quadrant = quadnum) and (planet46_sector = sectornum)
	*set visit_counter planet46_visited_count
	*set planet46_visited_count +1
	*return
*elseif (planet47_quadrant = quadnum) and (planet47_sector = sectornum)
	*set visit_counter planet47_visited_count
	*set planet47_visited_count +1
	*return
*elseif (planet48_quadrant = quadnum) and (planet48_sector = sectornum)
	*set visit_counter planet48_visited_count
	*set planet48_visited_count +1
	*return
*elseif (planet49_quadrant = quadnum) and (planet49_sector = sectornum)
	*set visit_counter planet49_visited_count
	*set planet49_visited_count +1
	*return
*elseif (planet50_quadrant = quadnum) and (planet50_sector = sectornum)
	*set visit_counter planet50_visited_count
	*set planet50_visited_count +1
	*return
*elseif (planet51_quadrant = quadnum) and (planet51_sector = sectornum)
	*set visit_counter planet51_visited_count
	*set planet51_visited_count +1
	*return
*elseif (planet52_quadrant = quadnum) and (planet52_sector = sectornum)
	*set visit_counter planet52_visited_count
	*set planet52_visited_count +1
	*return
*elseif (planet53_quadrant = quadnum) and (planet53_sector = sectornum)
	*set visit_counter planet53_visited_count
	*set planet53_visited_count +1
	*return
*elseif (planet54_quadrant = quadnum) and (planet54_sector = sectornum)
	*set visit_counter planet54_visited_count
	*set planet54_visited_count +1
	*return
*elseif (planet55_quadrant = quadnum) and (planet55_sector = sectornum)
	*set visit_counter planet55_visited_count
	*set planet55_visited_count +1
	*return
*elseif (planet56_quadrant = quadnum) and (planet56_sector = sectornum)
	*set visit_counter planet56_visited_count
	*set planet56_visited_count +1
	*return
*elseif (planet57_quadrant = quadnum) and (planet57_sector = sectornum)
	*set visit_counter planet57_visited_count
	*set planet57_visited_count +1
	*return
*elseif (planet58_quadrant = quadnum) and (planet58_sector = sectornum)
	*set visit_counter planet58_visited_count
	*set planet58_visited_count +1
	*return
*elseif (planet59_quadrant = quadnum) and (planet59_sector = sectornum)
	*set visit_counter planet59_visited_count
	*set planet59_visited_count +1
	*return
*elseif (planet60_quadrant = quadnum) and (planet60_sector = sectornum)
	*set visit_counter planet60_visited_count
	*set planet60_visited_count +1
	*return
*elseif (planet61_quadrant = quadnum) and (planet61_sector = sectornum)
	*set visit_counter planet61_visited_count
	*set planet61_visited_count +1
	*return
*elseif (planet62_quadrant = quadnum) and (planet62_sector = sectornum)
	*set visit_counter planet62_visited_count
	*set planet62_visited_count +1
	*return
*elseif (planet63_quadrant = quadnum) and (planet63_sector = sectornum)
	*set visit_counter planet63_visited_count
	*set planet63_visited_count +1
	*return
*elseif (planet64_quadrant = quadnum) and (planet64_sector = sectornum)
	*set visit_counter planet64_visited_count
	*set planet64_visited_count +1
	*return
*elseif (planet65_quadrant = quadnum) and (planet65_sector = sectornum)
	*set visit_counter planet65_visited_count
	*set planet65_visited_count +1
	*return
*elseif (planet66_quadrant = quadnum) and (planet66_sector = sectornum)
	*set visit_counter planet66_visited_count
	*set planet66_visited_count +1
	*return
*elseif (planet67_quadrant = quadnum) and (planet67_sector = sectornum)
	*set visit_counter planet67_visited_count
	*set planet67_visited_count +1
	*return
*elseif (planet68_quadrant = quadnum) and (planet68_sector = sectornum)
	*set visit_counter planet68_visited_count
	*set planet68_visited_count +1
	*return
*elseif (planet69_quadrant = quadnum) and (planet69_sector = sectornum)
	*set visit_counter planet69_visited_count
	*set planet69_visited_count +1
	*return
*elseif (planet70_quadrant = quadnum) and (planet70_sector = sectornum)
	*set visit_counter planet70_visited_count
	*set planet70_visited_count +1
	*return
*elseif (planet71_quadrant = quadnum) and (planet71_sector = sectornum)
	*set visit_counter planet71_visited_count
	*set planet71_visited_count +1
	*return
*elseif (planet72_quadrant = quadnum) and (planet72_sector = sectornum)
	*set visit_counter planet72_visited_count
	*set planet72_visited_count +1
	*return
*elseif (planet73_quadrant = quadnum) and (planet73_sector = sectornum)
	*set visit_counter planet73_visited_count
	*set planet73_visited_count +1
	*return
*elseif (planet74_quadrant = quadnum) and (planet74_sector = sectornum)
	*set visit_counter planet74_visited_count
	*set planet74_visited_count +1
	*return
*elseif (planet75_quadrant = quadnum) and (planet75_sector = sectornum)
	*set visit_counter planet75_visited_count
	*set planet75_visited_count +1
	*return
*elseif (planet76_quadrant = quadnum) and (planet76_sector = sectornum)
	*set visit_counter planet76_visited_count
	*set planet76_visited_count +1
	*return
*elseif (planet77_quadrant = quadnum) and (planet77_sector = sectornum)
	*set visit_counter planet77_visited_count
	*set planet77_visited_count +1
	*return
*elseif (planet78_quadrant = quadnum) and (planet78_sector = sectornum)
	*set visit_counter planet78_visited_count
	*set planet78_visited_count +1
	*return
*elseif (planet79_quadrant = quadnum) and (planet79_sector = sectornum)
	*set visit_counter planet79_visited_count
	*set planet79_visited_count +1
	*return
*elseif (planet80_quadrant = quadnum) and (planet80_sector = sectornum)
	*set visit_counter planet80_visited_count
	*set planet80_visited_count +1
	*return
*elseif (planet81_quadrant = quadnum) and (planet81_sector = sectornum)
	*set visit_counter planet81_visited_count
	*set planet81_visited_count +1
	*return
*elseif (planet82_quadrant = quadnum) and (planet82_sector = sectornum)
	*set visit_counter planet82_visited_count
	*set planet82_visited_count +1
	*return
*elseif (planet83_quadrant = quadnum) and (planet83_sector = sectornum)
	*set visit_counter planet83_visited_count
	*set planet83_visited_count +1
	*return
*elseif (planet84_quadrant = quadnum) and (planet84_sector = sectornum)
	*set visit_counter planet84_visited_count
	*set planet84_visited_count +1
	*return
*elseif (planet85_quadrant = quadnum) and (planet85_sector = sectornum)
	*set visit_counter planet85_visited_count
	*set planet86_visited_count +1
	*return
*elseif (planet86_quadrant = quadnum) and (planet86_sector = sectornum)
	*set visit_counter planet86_visited_count
	*set planet86_visited_count +1
	*return
*elseif (planet87_quadrant = quadnum) and (planet87_sector = sectornum)
	*set visit_counter planet87_visited_count
	*set planet87_visited_count +1
	*return
*elseif (planet88_quadrant = quadnum) and (planet88_sector = sectornum)
	*set visit_counter planet88_visited_count
	*set planet88_visited_count +1
	*return
*elseif (planet89_quadrant = quadnum) and (planet89_sector = sectornum)
	*set visit_counter planet89_visited_count
	*set planet89_visited_count +1
	*return
*elseif (planet90_quadrant = quadnum) and (planet90_sector = sectornum)
	*set visit_counter planet90_visited_count
	*set planet90_visited_count +1
	*return
*elseif (planet91_quadrant = quadnum) and (planet91_sector = sectornum)
	*set visit_counter planet91_visited_count
	*set planet91_visited_count +1
	*return
*elseif (planet92_quadrant = quadnum) and (planet92_sector = sectornum)
	*set visit_counter planet92_visited_count
	*set planet92_visited_count +1
	*return
*elseif (planet93_quadrant = quadnum) and (planet93_sector = sectornum)
	*set visit_counter planet93_visited_count
	*set planet93_visited_count +1
	*return
*elseif (planet94_quadrant = quadnum) and (planet94_sector = sectornum)
	*set visit_counter planet94_visited_count
	*set planet94_visited_count +1
	*return
*elseif (planet95_quadrant = quadnum) and (planet95_sector = sectornum)
	*set visit_counter planet95_visited_count
	*set planet95_visited_count +1
	*return
*elseif (planet96_quadrant = quadnum) and (planet96_sector = sectornum)
	*set visit_counter planet96_visited_count
	*set planet96_visited_count +1
	*return
*elseif (planet97_quadrant = quadnum) and (planet97_sector = sectornum)
	*set visit_counter planet97_visited_count
	*set planet97_visited_count +1
	*return
*elseif (planet98_quadrant = quadnum) and (planet98_sector = sectornum)
	*set visit_counter planet98_visited_count
	*set planet98_visited_count +1
	*return
*elseif (planet99_quadrant = quadnum) and (planet99_sector = sectornum)
	*set visit_counter planet99_visited_count
	*set planet99_visited_count +1
	*return
*if (planet100_quadrant = quadnum) and (planet100_sector = sectornum)
	*set visit_counter planet100_visited_count
	*set planet100_visited_count +1
	*return
*if (planet101_quadrant = quadnum) and (planet101_sector = sectornum)
	*set visit_counter planet101_visited_count
	*set planet101_visited_count +1
	*return
*elseif (planet102_quadrant = quadnum) and (planet102_sector = sectornum)
	*set visit_counter planet102_visited_count
	*set planet102_visited_count +1
	*return
*elseif (planet103_quadrant = quadnum) and (planet103_sector = sectornum)
	*set visit_counter planet103_visited_count
	*set planet103_visited_count +1
	*return
*elseif (planet104_quadrant = quadnum) and (planet104_sector = sectornum)
	*set visit_counter planet104_visited_count
	*set planet104_visited_count +1
	*return
*elseif (planet105_quadrant = quadnum) and (planet105_sector = sectornum)
	*set visit_counter planet105_visited_count
	*set planet105_visited_count +1
	*return
*elseif (planet106_quadrant = quadnum) and (planet106_sector = sectornum)
	*set visit_counter planet106_visited_count
	*set planet106_visited_count +1
	*return
*elseif (planet107_quadrant = quadnum) and (planet107_sector = sectornum)
	*set visit_counter planet107_visited_count
	*set planet107_visited_count +1
	*return
*elseif (planet108_quadrant = quadnum) and (planet108_sector = sectornum)
	*set visit_counter planet108_visited_count
	*set planet108_visited_count +1
	*return
*elseif (planet109_quadrant = quadnum) and (planet109_sector = sectornum)
	*set visit_counter planet109_visited_count
	*set planet109_visited_count +1
	*return
*elseif (planet110_quadrant = quadnum) and (planet110_sector = sectornum)
	*set visit_counter planet110_visited_count
	*set planet110_visited_count +1
	*return
*elseif (planet120_quadrant = quadnum) and (planet120_sector = sectornum)
	*set visit_counter planet120_visited_count
	*set planet120_visited_count +1
	*return
*elseif (planet121_quadrant = quadnum) and (planet121_sector = sectornum)
	*set visit_counter planet121_visited_count
	*set planet121_visited_count +1
	*return
*elseif (planet122_quadrant = quadnum) and (planet122_sector = sectornum)
	*set visit_counter planet122_visited_count
	*set planet123_visited_count +1
	*return
*elseif (planet123_quadrant = quadnum) and (planet123_sector = sectornum)
	*set visit_counter planet123_visited_count
	*set planet123_visited_count +1
	*return
*elseif (planet124_quadrant = quadnum) and (planet124_sector = sectornum)
	*set visit_counter planet124_visited_count
	*set planet124_visited_count +1
	*return
*elseif (planet125_quadrant = quadnum) and (planet125_sector = sectornum)
	*set visit_counter planet125_visited_count
	*set planet125_visited_count +1
	*return
*elseif (planet126_quadrant = quadnum) and (planet126_sector = sectornum)
	*set visit_counter planet126_visited_count
	*set planet126_visited_count +1
	*return
*elseif (planet127_quadrant = quadnum) and (planet127_sector = sectornum)
	*set visit_counter planet127_visited_count
	*set planet127_visited_count +1
	*return
*elseif (planet128_quadrant = quadnum) and (planet128_sector = sectornum)
	*set visit_counter planet128_visited_count
	*set planet128_visited_count +1
	*return
*elseif (planet129_quadrant = quadnum) and (planet129_sector = sectornum)
	*set visit_counter planet129_visited_count
	*set planet129_visited_count +1
	*return
*elseif (planet130_quadrant = quadnum) and (planet130_sector = sectornum)
	*set visit_counter planet130_visited_count
	*set planet130_visited_count +1
	*return
*elseif (planet131_quadrant = quadnum) and (planet131_sector = sectornum)
	*set visit_counter planet131_visited_count
	*set planet131_visited_count +1
	*return
*elseif (planet132_quadrant = quadnum) and (planet132_sector = sectornum)
	*set visit_counter planet132_visited_count
	*set planet132_visited_count +1
	*return
*elseif (planet133_quadrant = quadnum) and (planet133_sector = sectornum)
	*set visit_counter planet133_visited_count
	*set planet133_visited_count +1
	*return
*elseif (planet134_quadrant = quadnum) and (planet134_sector = sectornum)
	*set visit_counter planet134_visited_count
	*set planet134_visited_count +1
	*return
*elseif (planet135_quadrant = quadnum) and (planet135_sector = sectornum)
	*set visit_counter planet135_visited_count
	*set planet135_visited_count +1
	*return
*elseif (planet136_quadrant = quadnum) and (planet136_sector = sectornum)
	*set visit_counter planet136_visited_count
	*set planet136_visited_count +1
	*return
*elseif (planet137_quadrant = quadnum) and (planet137_sector = sectornum)
	*set visit_counter planet137_visited_count
	*set planet137_visited_count +1
	*return
*elseif (planet138_quadrant = quadnum) and (planet138_sector = sectornum)
	*set visit_counter planet138_visited_count
	*set planet138_visited_count +1
	*return
*elseif (planet139_quadrant = quadnum) and (planet139_sector = sectornum)
	*set visit_counter planet139_visited_count
	*set planet139_visited_count +1
	*return
*elseif (planet140_quadrant = quadnum) and (planet140_sector = sectornum)
	*set visit_counter planet140_visited_count
	*set planet140_visited_count +1
	*return
*elseif (planet141_quadrant = quadnum) and (planet141_sector = sectornum)
	*set visit_counter planet141_visited_count
	*set planet141_visited_count +1
	*return
*elseif (planet142_quadrant = quadnum) and (planet142_sector = sectornum)
	*set visit_counter planet142_visited_count
	*set planet142_visited_count +1
	*return
*elseif (planet143_quadrant = quadnum) and (planet143_sector = sectornum)
	*set visit_counter planet143_visited_count
	*set planet143_visited_count +1
	*return
*elseif (planet144_quadrant = quadnum) and (planet144_sector = sectornum)
	*set visit_counter planet144_visited_count
	*set planet144_visited_count +1
	*return
*elseif (planet145_quadrant = quadnum) and (planet145_sector = sectornum)
	*set visit_counter planet145_visited_count
	*set planet145_visited_count +1
	*return
*elseif (planet146_quadrant = quadnum) and (planet146_sector = sectornum)
	*set visit_counter planet146_visited_count
	*set planet146_visited_count +1
	*return
*elseif (planet147_quadrant = quadnum) and (planet147_sector = sectornum)
	*set visit_counter planet147_visited_count
	*set planet147_visited_count +1
	*return
*elseif (planet148_quadrant = quadnum) and (planet148_sector = sectornum)
	*set visit_counter planet148_visited_count
	*set planet148_visited_count +1
	*return
*elseif (planet149_quadrant = quadnum) and (planet149_sector = sectornum)
	*set visit_counter planet149_visited_count
	*set planet149_visited_count +1
	*return
*elseif (planet150_quadrant = quadnum) and (planet150_sector = sectornum)
	*set visit_counter planet150_visited_count
	*set planet150_visited_count +1
	*return
*else
	*return