CT Trade under development
I've added the ability to search for trade for those ships using Classic Traveller. The buy/sell is not there yet, but should be simple to implement as the cargos are all the same regardless of version.
I converted my v1. XML file to CSV for CT (a 10 minute program saved me a few hours of typing - I may be getting better at this!):
Nice thing for the trade class, is that you pass in the ship & world you are at, so that you just call 'findcargo(ship, world)' and it automatically finds the correct version of trade based on the ship.Version (CT, T5, MT or CU).
Once I get that part done I may release the stub files (as above) and the program, although I am thinking I will rework the XML cargo nodes to be a match for the cargo structure I use, to simplify things.
edit: And I've forgotten to multiply the price x tonnage.
I've added the ability to search for trade for those ships using Classic Traveller. The buy/sell is not there yet, but should be simple to implement as the cargos are all the same regardless of version.
I converted my v1. XML file to CSV for CT (a 10 minute program saved me a few hours of typing - I may be getting better at this!):
Code:
# Classic Traveller trade goods
#d66,description,base price,quantity,purchase DMS,resale DMS
#d66 - D1 + D1; use appropriate mods according to T&C rules
#quantity - 3Dx6 = 3 d6 * 6
#purchase & resale DMs: 6 of each in the following order:
# agriculteral, non-agri, industrial, non-industrial, rich, poor
11,Textiles,3000,3Dx5,-7,-5,0,-3,0,0,-7,-5,0,-3,0,0,
Nice thing for the trade class, is that you pass in the ship & world you are at, so that you just call 'findcargo(ship, world)' and it automatically finds the correct version of trade based on the ship.Version (CT, T5, MT or CU).
Once I get that part done I may release the stub files (as above) and the program, although I am thinking I will rework the XML cargo nodes to be a match for the cargo structure I use, to simplify things.
edit: And I've forgotten to multiply the price x tonnage.