Hello Rustem
nice work, another scheme you can consider is for the sun size/colour to be 'almost orthogonal' to the other system parameters by using the highest nibble of the sixth system seed, discussed under
Default Suns, which would make it mostly independent of the planet radius, economy, name etc.
In Oolite I believe the sixth seed is the last integer in the string
system.info.random_seed. For Galaxy 1 the first planet
Tibedied has seeds
"74 90 72 2 83 183". For
Lave you should find the seeds change to
"56 173 156 20 29 21". The last integer divided by 16 then gives the range
0x0 to
0xF used in
Elite-B to index into the list
0x0 Red Dwarf
0x1 Orange Dwarf
0x2 Orange Dwarf
0x3 Orange Dwarf
0x4 Orange Dwarf
0x5 Yellow Dwarf
0x6 Yellow Dwarf
0x7 Yellow Dwarf
0x8 Yellow Dwarf
0x9 Yellow-white
0xA Yellow-white
0xB Blue-white
0xC Blue-white
0xD Red Giant
0xE Red Giant
0xF Blue Giant
So you would need some code along the lines of
Code: Select all
parseInt(system.info.random_seed.match(/\d+$/), 10)/16
(apologies if my javascript is not up to it) to match this list (Lave orbits an Orange dwarf etc.) and add more detail.
In Elite-B there is a certain dread to visiting systems with large stars on the short range chart - both the sun to planet distance is large and difficult to sun-skim at.