Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
Tags

As I wrote, I found 30 gun frigate and now it appears more frequently since I have it.

But I did the same thing for surprise and no result.

(+1)

You won't see the ship in your shipyards, because the code you edited is incorrect.  From your earlier post:

iTest_ship = rand(17);

switch(iTest_ship) {
    case 1: bAdd = true; nToAdd = SHIP_WAR_TARTANE; break;
...
    case 17: bAdd = true; nToAdd = SHIP_BarcoCostero; break;
    case 18: bAdd = true; nToAdd = SHIP_30GunFrigate; break;
}

iTest_ship = rand(21);

switch(iTest_ship) {
    case 1: bAdd = true; nToAdd = SHIP_LUGGERVML; break;
...
    case 22: bAdd = true; nToAdd = SHIP_30GunFrigate; break;
}

In the assignment to iTest_ship above, it will receive a randomly chosen value between 0 to 17, or 0 to 21.  But then it investigates for the value in the following switch statements for a case of 18 and a case of 22, which are supposed to be true if the value for iTest_ship is either 18 or 22 in your additional lines.  That will never happen.

You either have to change the rand(17) and rand(21) to rand(18) and rand(22), or simply replace one of the existing case lines with the ship type you want.  Example:  change SHIP_WAR_TARTANE and SHIP_LUGGERVML with SHIP_30GunFrigate.  Then you will sometimes see the ship you want in the shipyard.  The more case lines you replace, the higher the chance of seeing your desired ship.