Are cannons excessively more expensive than the ships themselves then?
Visit our website www.piratehorizons.com to quickly find download links for the newest versions of our New Horizons mods Beyond New Horizons and Maelstrom New Horizons!
Quick links for Beyond New Horizons
- Download latest version
- Wiki
- FAQ
- Report bugs here
- Bug Tracker on Github
Quick links for Maelstrom
- Download the latest version of Maelstrom
- Download the latest version of ERAS II
- Download the latest version of New Horizons on Maelstrom
Quick links for PotC: New Horizons
- Download latest version
- Wiki
- FAQ
- Report bugs here
Thanks to YOUR votes, GOG.com now sells:
- Sea Dogs
- Sea Dogs: Caribbean Tales
- Sea Dogs: City of Abandoned Ships
Vote now to add Pirates of the Caribbean to the list!
Quick links for AoP2: Gentlemen of Fortune 2
- Downloads and info
- ModDB Profile
- Forums Archive
A Pirate Podcast with Interviews
Music, Comedy and all things Pirate!
- Episode Guide - About - Subscribe -
- Twitter - Facebook - iTunes - Android -
- Youtube - Fill the Coffers -
int SellCannons(ref chr, int cq)
{
ref char = GetCharacter(sti(chr.index));
if (IsCompanion(chr)) char = GetMainCharacter();
int nCannonType = GetCaracterShipCannonsType(chr);
float Charmod = GetCharPriceMod(char, PRICE_TYPE_SELL, true);
if(CheckAttribute(char, "professionalnavy") || HaveLetterOfMarque(GetCurrentLocationNation())) Charmod = 1.0; //Professional Navy and LoM sells for full price -Levis
return 0 - makeint(GetCannonPrice(nCannonType) * Charmod * SHIPYARD_CANNON_SELL_MULT) * cq; // PB: Changed to prevent float operation from causing disrepancies in prices for batch transactions
}
HaveLetterOfMarque(GetCurrentLocationNation())
HaveAnyLetterOfMarque()
Fine by me. Simple version for now: Privateers (characters with LoM) and Navy Officers get only 25% of the usual sale price.I think this can be archived since it's done.
after 3.5 we will look at it again and see if we need to enhance it
yesUnmodded as in 'skipping past skill modifiers', right?
It's still taken in accountDo they take into account how the ship was acquired? Normally that does also make a difference so you get less for pirated ships.
it's checking by:And it is the same for privateers, I think?
IsInAnyService()
Ah, of course; I did that.it's checking by:
Code:IsInAnyService()
Serves you right. What sort of pirate - er, privateer - are you that you pay for a ship?
The game does indeed distinguish between ships you obtained in different ways.More seriously, I thought the game was capable of distinguishing between ships you bought, ships you captured under a LoM and ships you pirated. If so, why can't the 25% be applied only to ships captured under a LoM? (Possibly pirated ships too; the shipyard will want its cut of the proceeds, plus there's the trouble of disposing of a stolen ship.)