Program Code

From Supremacy Wiki
Revision as of 14:31, 1 January 2014 by Reg (talk | contribs) (GetProductionOutput)

Jump to: navigation, search

Source is at https://bitbucket.org/mstrobel/supremacy/

Program Code Language: C#



some code

where Folder File Function empty Description Custom1 Custom2
S-Core Universe Colony.cs GetProductionOutput(ProductionCategory category)

see last line, too !

  • Food: minimum 10
  • Research:
                       float moraleMod = _morale.CurrentValue / (0.5f * MoraleHelper.MaxValue);
                       baseOutput = (int)(moraleMod * baseOutput);
  • Industry: minimum 10 !
                       float moraleMod = _morale.CurrentValue / (0.5f * MoraleHelper.MaxValue);
                       baseOutput = (int)(moraleMod * baseOutput);
  • last line: return ((int)(baseOutput + (baseOutput * modifier.Efficiency)) + modifier.Bonus);