[B]if pPlayer.getCivilizationType() == gc.getInfoTypeForString('CIVILIZATION_SCIONS') and pPlayer.getNumCities() > 0:
[/B]
#figuring spawn chance
fSpawnOdds = cf.doChanceAwakenedSpawn(-1)
fFirstPart = fSpawnOdds / 100
fSecondPart = fSpawnOdds - (fFirstPart * 100)
#/figuring spawn chance
if fFirstPart + fSecondPart > 0:
SRstr = u"<font=2i>%s</font>" %(str(" ") + str(fFirstPart) + str(".") + str(fSecondPart) + str("% "))
screen.setImageButton("Awakenedchance", "Art/Interface/Buttons/Units/Scions/awake.dds", 84, 106, 16, 16, WidgetTypes.WIDGET_GENERAL, -1, -1 )
screen.setText( "SRText", "Background", SRstr, CvUtil.FONT_LEFT_JUSTIFY, 103, 104, 0.5, FontTypes.GAME_FONT, WidgetTypes.WIDGET_GENERAL, -1, -1 )
screen.setHitTest( "SRText", HitTestTypes.HITTEST_NOHIT )
else:
screen.hide( "Awakenedchance" )
screen.hide( "SRText" )
#/Awakened display
#Adventurer display
[B]elif pPlayer.getCivilizationType() == gc.getInfoTypeForString('CIVILIZATION_GRIGORI') and pPlayer.getNumCities() > 0:
[/B]
#figuring spawn chance
fGrigoriSpawn = (pPlayer.getGrigoriSpawn() / 100)
fGrigoriActual = pPlayer.getGrigoriSpawn()
fGrigoriMod = (pPlayer.getGrigoriMod() / 100)
fSecondPart = fGrigoriActual - (fGrigoriSpawn * 100)
#/figuring spawn chance
if fGrigoriSpawn > 0:
SRstr = u"<font=2i>%s</font>" %(str(" ") + str(fGrigoriSpawn) + str(".") + str(fSecondPart) + str(" / ") + str(fGrigoriMod) + str(" "))
screen.setImageButton("Adventurerchance", "Art/Interface/Buttons/Units/Adventurer.dds", 167, 7, 16, 16, WidgetTypes.WIDGET_GENERAL, -1, -1 )
screen.setText( "SRText", "Background", SRstr, CvUtil.FONT_LEFT_JUSTIFY, 179, 5, 0.5, FontTypes.GAME_FONT, WidgetTypes.WIDGET_GENERAL, -1, -1 )
screen.setHitTest( "SRText", HitTestTypes.HITTEST_NOHIT )
else:
screen.hide( "Adventurerchance" )
screen.hide( "SRText" )
#/Adventurer display