|
|
(2 intermediate revisions by the same user not shown) |
Line 1: |
Line 1: |
− | Source is at https://bitbucket.org/mstrobel/supremacy/ | + | #redirect [[Source Code]] |
− | | |
− | Program Code Language: C#
| |
− | | |
− | | |
− | <img>http://supremacy.square7.ch/wiki-files/images/Supremacy-MicrosoftVisualC2010Express.jpg</img>
| |
− | | |
− | | |
− | == some code ==
| |
− | | |
− | | |
− | {|class="wikitable sortable"
| |
− | ! bgcolor="#dadada" style="border:4px solid #999999;padding:0.2em;padding-top:0.2em;" |where
| |
− | ! bgcolor="#dadada" style="border:4px solid #999999;padding:0.2em;padding-top:0.2em;" |Folder
| |
− | ! bgcolor="#dadada" style="border:4px solid #999999;padding:0.2em;padding-top:0.2em;" |File
| |
− | ! bgcolor="#dadada" style="border:4px solid #999999;padding:0.2em;padding-top:0.2em;" |Function
| |
− | ! bgcolor="#dadada" style="border:4px solid #999999;padding:0.2em;padding-top:0.2em;" |empty
| |
− | ! bgcolor="#dadada" style="border:4px solid #999999;padding:0.2em;padding-top:0.2em;" |Description
| |
− | ! bgcolor="#dadada" style="border:4px solid #999999;padding:0.2em;padding-top:0.2em;" |Custom1
| |
− | ! bgcolor="#dadada" style="border:4px solid #999999;padding:0.2em;padding-top:0.2em;" |Custom2
| |
− | | |
− | |-
| |
− | |style=text-align:left|S-Core
| |
− | |style=text-align:center|Universe
| |
− | |style=text-align:center|Colony.cs
| |
− | |style=text-align:center|GetProductionOutput(ProductionCategory category)
| |
− | |style=text-align:center|
| |
− | |style=text-align:left|
| |
− | 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);
| |
− | |style=text-align:left|
| |
− | |style=text-align:left|
| |
− | |}
| |