Ok.
Finished a new mining system based on interaction dialogs. Its simple as hell, but effective.
Surveying the asteroid field. I`m using asteroid fields level rather than asteroids level for my mining script. This way i can store less data in saved games and reduce the need to visually remember the exact asteroid you have visited previously. So - DATA FOR ASTEROID RICHNESS IS SAVED PER SYSTEM.
http://www.lordsofthestars.com/other/scr1.pngInitially we have a simple check if we have already surveyed this system`s asteroid field. YES - goto mining options, NO - pick up a survey option. There are two types of survey - using (consuming) an expensive Mineral Scanner or sending out survey teams. First provides the best values per mineral type. Second give mediocre results often ending up with very-close-to-0 chances of exotic minerals.
http://www.lordsofthestars.com/other/scr3.pngMining. I used my Mineral Scanner here and good pretty good results for common and rare resources. Exotic are extremely rare ocasion in this asteroid field (but may become more available the more miners i bring to the party). The new mining screen show some approximate values per type of mineral. All you need to know is that ABUNDANT means a value of 1 +- 0.25. This is good for mining as the new formula looks like this: asteroid_richness*mining_efficiency*25 - Math.random()*25. So if you have a 0 for the type of the mineral - you`ll never get it from these asteroids.
There are two options for conducting mining operations. One standard that uses all basic values for mining and consumes exact amounts of supplies listed in ship`s description. It also has a 10% hit on combat readiness.
The second one is conducted at tripple rates. Basically it just tripples the first part of the formula making it easier to break the -25*random barrier. It eats additional 50% of supplies and reduces CR by 30%. But the most important part of this operation is its ability to trigger an incident:
http://www.lordsofthestars.com/other/scr4.pngIn my case i got a serious CR hit to one of my random ships in the fleet. It is the least dangerous incident currently available.
As you can see on the screen - i`ve mined quite a bunch of common ores and got some rares too. The bottom text displays my current cargo capacity, mining efficiency (Scrapper mod.2 has just 0.9 ME) and CR rating. I can afford another such overharvesting operation, but i decided to go on standard procedures.
http://www.lordsofthestars.com/other/scr5.pngAs you can see standard mining operations are not that profitable for a single low-ME miner. My crew is Regular and thus i have neither penalties nor bonuses to mining efficiency. However they are safe and will become profitable the more miners/better crew i get.
On the last screen i`m showing the exact amounts of minerals mined and a pic of the Mineral Scanner. I`ve consumed just ~90 supplies to get that amount of minerals (2 standard for 25 and one overharvesting for 37). Its a profit, especially if i bring it to ISA Orbital factory...
http://www.lordsofthestars.com/other/scr6.pngI will experiment a bit more with the values so that 1 ship mining would be profitable even without mineral scanner. Eventually i`ll add mining skills to controll ME, supply consumption, survey results and visibility of these results.