Does anyone think the period-specific fail-safe ship selection needs to be modified a bit after this?
Code:
// PB: If all fails, return a random period-specific ship type instead of the player ship -->
switch((GetCurrentPeriod()))
{
case PERIOD_EARLY_EXPLORERS:
switch(rand(1))
{
case 0: return GetShipIndex("Carrack"); break;
case 1: return GetShipIndex("caravel1"); break;
}
break;
case PERIOD_THE_SPANISH_MAIN:
switch(rand(2))
{
case 0: return GetShipIndex("SP_Derfflinger"); break;
case 1: return GetShipIndex("pinnace1"); break;
case 2: return GetShipIndex("FastGalleon1"); break;
}
break;
case PERIOD_GOLDEN_AGE_OF_PIRACY:
switch(rand(2))
{
case 0: return GetShipIndex("Barque4_47"); break;
case 1: return GetShipIndex("pinnace1"); break;
case 2: return GetShipIndex("frigate1"); break;
}
break;
case PERIOD_COLONIAL_POWERS:
switch(rand(2))
{
case 0: return GetShipIndex("PiratHannah"); break;
case 1: return GetShipIndex("pinnace1"); break;
case 2: return GetShipIndex("frigate2"); break;
}
break;
case PERIOD_REVOLUTIONS:
switch(rand(2))
{
case 0: return GetShipIndex("ketch"); break;
case 1: return GetShipIndex("Hooker"); break;
case 2: return GetShipIndex("Corvette47"); break;
}
break;
case PERIOD_THE_CORSICAN:
switch(rand(2))
{
case 0: return GetShipIndex("Schooner50"); break;
case 1: return GetShipIndex("FastMerchantman1"); break;
case 2: return GetShipIndex("lineship47"); break;
}
break;
}
// PB: If all fails, return a random period-specific ship type instead of the player ship <--