My current project is to overhaul the way attacks on ships are classed as legal or not. At present, either sinking, looting or capturing an enemy ship is piracy unless you have a Letter of Marque from a nation hostile to the target. If you do, it's a legal attack if you fly any non-pirate flag hostile to the target. If you have only a British LoM but Britain and Holland are both at war with France, you can legally attack under a Dutch flag.
In reality, it was legal to sink an enemy ship without a LoM or naval commission - in fact, at one time, it was not only legal to attack an enemy ship, it was illegal not to attack. Later the law was changed so that civilian ships were no longer required to put themselves at risk, that's what the navy was for; but it was still legal to try. But taking prizes, whether capturing the entire ship or just confiscating cargo, did require a LoM or naval commission. And the attack had to be made under true colours. So, if you have only a British LoM but Britain and Holland are both at war with France, attacking under a Dutch flag is illegal, you have to fly a British flag.
True colours can be any of:
. Personal flag
. Flag of your served nation
. Flag of any nation you serve
Those aren't the same! Your served nation is by default the nation you chose when you started the game. If you start as a Dutch merchant, your served nation is Holland even though you have no LoM. You then buy a British LoM; your served nation is now Britain and you are in the service of Britain. Then you buy a Dutch LoM as well; your served nation is now Personal because you have multiple LoM's, and you are in the service of both Britain and Holland.
First step: change the rules for a legal attack in "nations.c" to check that you are in the service of your current flag nation and that it's hostile to the target. Flying a pirate flag is automatically piracy, and now, so is flying a personal flag if your served nation is Pirate. That only happens if you've been branded a pirate, either by choice of nation at game start or because you've committed multiple acts of piracy. Your personal flag tells the rest of the world who you are; you're a convicted pirate and now you've just admitted it! This is done. Additionally, in "cabinfight_dialog.c", if you tell the enemy captain that you intend to take his cargo, ship or money, and you aren't flying the flag of a hostile nation for which you have a LoM or naval commission, he'll warn you that it's an act of piracy and you'll have the option to release him instead. Otherwise you'll go to the ransack screen as usual.
Now in progress: check for piracy in "PROGRAM\INTERFACE\transfer_goods.c" and "transfer_main.c". I'll probably want to move all the stuff in "nations.c" about bad things which happen if you've committed piracy into a separate function which can then be called in "transfer_goods.c" and "transfer_main.c" if you're looting or capturing a ship illegally - but I need to be careful not to do it if you're transferring goods or officers between two of your own ships! (Why not simply check in "ransack.c"? Because that will be called after a boarding action. Sinking an enemy ship will be legal without a LoM, and that includes boarding provided you don't then try to take cargo or install an officer, you just board and then leave. You can take crew, rescuing them from a ship that you're about to sink.)
In reality, it was legal to sink an enemy ship without a LoM or naval commission - in fact, at one time, it was not only legal to attack an enemy ship, it was illegal not to attack. Later the law was changed so that civilian ships were no longer required to put themselves at risk, that's what the navy was for; but it was still legal to try. But taking prizes, whether capturing the entire ship or just confiscating cargo, did require a LoM or naval commission. And the attack had to be made under true colours. So, if you have only a British LoM but Britain and Holland are both at war with France, attacking under a Dutch flag is illegal, you have to fly a British flag.
True colours can be any of:
. Personal flag
. Flag of your served nation
. Flag of any nation you serve
Those aren't the same! Your served nation is by default the nation you chose when you started the game. If you start as a Dutch merchant, your served nation is Holland even though you have no LoM. You then buy a British LoM; your served nation is now Britain and you are in the service of Britain. Then you buy a Dutch LoM as well; your served nation is now Personal because you have multiple LoM's, and you are in the service of both Britain and Holland.
First step: change the rules for a legal attack in "nations.c" to check that you are in the service of your current flag nation and that it's hostile to the target. Flying a pirate flag is automatically piracy, and now, so is flying a personal flag if your served nation is Pirate. That only happens if you've been branded a pirate, either by choice of nation at game start or because you've committed multiple acts of piracy. Your personal flag tells the rest of the world who you are; you're a convicted pirate and now you've just admitted it! This is done. Additionally, in "cabinfight_dialog.c", if you tell the enemy captain that you intend to take his cargo, ship or money, and you aren't flying the flag of a hostile nation for which you have a LoM or naval commission, he'll warn you that it's an act of piracy and you'll have the option to release him instead. Otherwise you'll go to the ransack screen as usual.
Now in progress: check for piracy in "PROGRAM\INTERFACE\transfer_goods.c" and "transfer_main.c". I'll probably want to move all the stuff in "nations.c" about bad things which happen if you've committed piracy into a separate function which can then be called in "transfer_goods.c" and "transfer_main.c" if you're looting or capturing a ship illegally - but I need to be careful not to do it if you're transferring goods or officers between two of your own ships! (Why not simply check in "ransack.c"? Because that will be called after a boarding action. Sinking an enemy ship will be legal without a LoM, and that includes boarding provided you don't then try to take cargo or install an officer, you just board and then leave. You can take crew, rescuing them from a ship that you're about to sink.)









