Skip to main content

Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines

FillShipParamShipyard(NPChar, SHIP_TARTANE, "ship1");

//#20190122-01

bool bAdd = false;

int nToAdd = SHIP_WAR_TARTANE;

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;

    }

    if(bAdd) FillShipParamShipyard(NPChar, nToAdd, "ship2");

    bAdd = false;

iTest_ship = rand(21);

switch(iTest_ship) {

case 1: bAdd = true; nToAdd = SHIP_LUGGERVML; break;

...

    case 22: bAdd = true; nToAdd = SHIP_30GunFrigate; break;

    }

    if(bAdd) FillShipParamShipyard(NPChar, nToAdd, "ship3");

    bAdd = false;


Will it be ok or something else?

That's a pity that these ships are not included, anyway I met it once and didn't save my game because of energy loss in half of my city... :/