• New Horizons on Maelstrom
    Maelstrom New Horizons


    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!

Reordering the goods in the store

LarryHookins

Buccaneer
Staff member
Storm Modder
I've reordered the goods in the store so that cannon ammo appears first, then gunpowder, then wheat and rum, then the rest ordered by base value. You shouldn't have to scroll the list so much this way. The good thing is, it works on a saved game if you hit the "I" key to reinit.

When you're ransacking a ship, the goods are ordered the same way. So you get the necessities first, then the rest. Because the ransack screen only shows the goods both ships actually have, you can determine what to take and what to leave easier, because the more valuable stuff will appear first in the list.

The value ordering is determined only on the base price of the goods, so some goods will be more valuable than indicated. For example, contraband will be much more valuable than its place in the list indicates. But if you know what goods are contraband at the island you're at, you'll know to take those first -- if you either have the Trustworthy Lad perk or are into selling contraband.

Hook
 
Sounds great, Hook. Well done. <img src="style_emoticons/<#EMO_DIR#>/me.gif" style="vertical-align:middle" emoid=":onya" border="0" alt="me.gif" /> Will this be in a Build 13 Beta update or will it be Post B13?

Cheers <img src="style_emoticons/<#EMO_DIR#>/par-ty.gif" style="vertical-align:middle" emoid=":cheers" border="0" alt="par-ty.gif" />
 
Useful thing. <img src="style_emoticons/<#EMO_DIR#>/me.gif" style="vertical-align:middle" emoid=":onya" border="0" alt="me.gif" />
 
<!--quoteo(post=165693:date=Oct 5 2006, 11:37 AM:name=Jack Davidson)--><div class='quotetop'>QUOTE(Jack Davidson @ Oct 5 2006, 11:37 AM) [snapback]165693[/snapback]</div><div class='quotemain'><!--quotec-->
Sounds great, Hook. Well done. Will this be in a Build 13 Beta update or will it be Post B13?
<!--QuoteEnd--></div><!--QuoteEEnd-->
That's up to Pieter. But it's a simple enough change that you can use it right now if you wish.

Download the attached file, make a backup of your Program/Store/goods.h file, then unzip the attached file and put the new goods.h in the Program/Store folder.

I'd also recommend changing silver from weight 1 to weight 2, as in the following line from initGoods.c:

Goods[GOOD_SILVER].Weight = 2; // LDH was 1

Otherwise, silver is more valuable than gold.

IF YOU USE THIS IN A SAVED GAME, BE SURE TO HIT THE "I" KEY TO REINIT THE GAME or you might get some weirdness. If all else fails, go back to your goods.h backup file. You *did* make a backup file, right? <img src="style_emoticons/<#EMO_DIR#>/biggrin.gif" style="vertical-align:middle" emoid=":D" border="0" alt="biggrin.gif" />

[attachmentid=725]

Hook
 
Thanks, mate.

Cheers <img src="style_emoticons/<#EMO_DIR#>/par-ty.gif" style="vertical-align:middle" emoid=":cheers" border="0" alt="par-ty.gif" />
 
Excellent idea, Hook! This will certainly be added to Build 13. I don't think there is any chance of introducing bugs with this change. But it WILL make a good improvement! <img src="style_emoticons/<#EMO_DIR#>/w00t.gif" style="vertical-align:middle" emoid=":woot" border="0" alt="w00t.gif" />
 
I just got tired of having to scroll through the store looking for rum and gunpowder, so went looking through the code for what needed to be changed to fix it. The change itself was so simple and unobtrusive that I figured I might as well publish it here.

It might be fun to put the estimated value of the cargo on the ransack screen, based either on the sale price at the local island, or the base price if you're at sea.

Hook
 
Back
Top