Skip to content
Snippets Groups Projects
Commit f80d6b9d authored by deuce's avatar deuce
Browse files

Rename Postion to Sector and store in the ports data file for easier

linking of ports/sectors
parent 0a77de55
No related branches found
No related tags found
No related merge requests found
......@@ -41,6 +41,12 @@ var PortProperties = [
,type:"Integer"
,def:0
}
,{
prop:"Sector"
,name:"Sector"
,type:"Integer"
,def:0
}
];
var ports=new RecordFile(fname("ports.dat"), PortProperties);
......@@ -334,7 +340,7 @@ function InitializePorts()
port.Production=[ports_init[i].OreProduction, ports_init[i].OrgProduction, ports_init[i].EquProduction];
port.PriceVariance=[ports_init[i].OreDeduction,ports_init[i].OrgDeduction,ports_init[i].EquDeduction];
var sector=sectors.Get(ports_init[i].Position);
var sector=sectors.Get(ports_init[i].Sector);
sector.Port=port.Record;
sector.Put();
ports_init[i].LastUpdate=system.datestr(time()-15*86400);
......
This diff is collapsed.
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment