Ist das eigentlich noch aufm Schirm? Also, dass die Amortisationszeit der Plasmatechnik etwa als halb so viel berechnet wird, als Tatsache wäre.
Falls jemand mal Lust und Laune hat, hier wäre der Quellcode dazu:
Code
- public function getPlasmaCosts() {
- $var = pow(2, $this->plasmaSt);
- return array('met' => 1000*$var, 'crys' => 2000*$var, 'deut' => 500*$var);
- }
- public function getPlasmaAmortisationTime($k_met = 3, $k_kris = 2) {
- $costs = $this->getPlasmaCosts();
- $divisor = $this->getMorePlasmaProd('met') + ($k_met/$k_kris)*$this->getMorePlasmaProd('crys') + $k_met*$this->getMorePlasmaProd('deut');
- if($divisor == 0)
- return 0;
- return ($costs['met']+ ($k_met/$k_kris)*$costs['crys'] + $k_met*$costs['deut']) / $divisor;
- }
- public function getMorePlasmaProd($res) {
- $this->plasmaSt++;
- $newProd = $this->getProduction($res, true, false);
- $this->plasmaSt--;
- return $newProd-$this->getProduction($res, true, false);
- }