User:Brammigamer/contract sandbox: Difference between revisions

From Captain of Industry Wiki
Jump to: navigation, search
m fixed the syntax errors and added it to the final numbers
m changed modules to a global var
Line 5: Line 5:
-->{{#vardefine: contents|1200}}<!--
-->{{#vardefine: contents|1200}}<!--
-->{{#vardefine: total|{{#expr: {{{ProductPayQty}}}+{{{ProductBuyQty}}}}}}}<!--
-->{{#vardefine: total|{{#expr: {{{ProductPayQty}}}+{{{ProductBuyQty}}}}}}}<!--
-->{{#vardefine: full|{{#expr: floor({{{modules}}}/{{#var:total}})}}}}<!--
-->{{#vardefine: full|{{#expr: floor({{#var:modules}}/{{#var:total}})}}}}<!--
-->{{#vardefine: leftover|{{#expr: {{{modules}}}-{{#var:full}}*{{#var: total}}}}}}<!--
-->{{#vardefine: leftover|{{#expr: {{#var:modules}}-{{#var:full}}*{{#var: total}}}}}}<!--


-->{{#vardefine: pay_amount|{{#expr: {{{ProductPayQty}}}/{{#var:total}}*{{#var:leftover}}}}}}<!--
-->{{#vardefine: pay_amount|{{#expr: {{{ProductPayQty}}}/{{#var:total}}*{{#var:leftover}}}}}}<!--
Line 75: Line 75:
-->
-->
</includeonly>
</includeonly>
<noinclude>{{User:Brammigamer/contract sandbox|ProductBuyName=Coal|ProductBuyQty=5|ProductPayName=Cement|ProductPayQty=1|UnityMonth=0.2001953|UnityQty=0.1103516|UnityEst=18|modules=8}}</noinclude>
<noinclude>{{#vardefine: modules|8}}{{User:Brammigamer/contract sandbox|ProductBuyName=Coal|ProductBuyQty=5|ProductPayName=Cement|ProductPayQty=1|UnityMonth=0.2001953|UnityQty=0.1103516|UnityEst=18}}</noinclude>

Revision as of 17:17, 20 March 2026

1440
7200
:
0.2  /month
0.11  /ship
18  Establish