When stripping a ship before selling or berthing it I get no money for items sold and when I do sell it it gets a reduced price.
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 -
I made a separate issue from this so we won't forget to look at it.There used to be.
int UnApplyTun (int _idx, string _improvement)
{
[...]
cost = GetCostTun(_idx, _improvement, PRICE_TYPE_SELL)/10;
[...]
if (cost > 0) { AddMoneytoCharacter(char, cost); }
return 0;
}
//Levis take upgrades into account:
string attributeName;
int idx=0;
for (int i = 0; i < SHIPUPGRADES_QUANTITY; i++) {
idx++;
attributeName = "pic" + idx;
string upgrade = GetShipUpgradeID(i);
if (cn >= 0 && CheckTun(cn, upgrade) == true) {
price += makeint(GetCostTun(cn, upgrade, PRICE_TYPE_SELL)/10); //If an upgrade is applied, you get a percentage of the real price. This can be max of 10%
}
}
if (cost > 0) { AddMoneytoCharacter(char, cost); }
if (cost > 0) {Characters[GetMainCharacterIndex()].Money = sti(Characters[GetMainCharacterIndex()].Money) + cost; }
It is in KB_routines.c and only called from an interface file.And the unapplytun is in a interface file now I think.
Indeed changing the cost line in the manual 'UnApplyTun' to that in UnApplyTunBerth did sort out the reported lack of remuneration for a companion ship manual sale of upgrades. So the two functions were even more alike. I have added a bool variable (berth) into the function call to allow time to be ignored when berthing so they can now use the same function call.@pedrwyth: I hope post #6 above makes sense to you.
If possible, it would be nice also to merge the 'UnApplyTun' and 'UnApplyTunBerth' functions.
It looks like the only difference is the length of time that passes, so it should be possible to get rid of some double coding there.
Ok made a bug report for the minor graphical glitch.Could you make a new bugreport for the things you mentioned? I could look into the interface problem next week probably
@pedrwyth: "not sure why it should only be 1/10th time to remove??"
^ I assume because maybe the original modder figured that removing goes faster than installing?
That is all I can think of anyway....