User:Brammigamer/contract sandbox: Difference between revisions

From Captain of Industry Wiki
Jump to: navigation, search
m changed modules to a global var
m corrected the per ship unity amount
 
(One intermediate revision by the same user not shown)
Line 33: Line 33:


-->{{#ifexpr: {{#expr:{{#var: buy_opt1}}+{{#var:pay_opt1}}}}<{{#expr:{{#var: buy_opt2}}+{{#var:pay_opt2}}}}
-->{{#ifexpr: {{#expr:{{#var: buy_opt1}}+{{#var:pay_opt1}}}}<{{#expr:{{#var: buy_opt2}}+{{#var:pay_opt2}}}}
   |{{#vardefine: pay_amount|{{#expr: {{{ProductPayQty}}}*{{#var: full}}*{{#var: contents}}+{{#var: pay_opt2}}}}}}<!--
   |{{#vardefine: pay_amount|{{#expr: floor({{{ProductPayQty}}}*{{#var: full}}*{{#var: contents}}+{{#var: pay_opt2}})}}}}<!--
  -->{{#vardefine: buy_amount|{{#expr: {{{ProductBuyQty}}}*{{#var: full}}*{{#var: contents}}+{{#var: buy_opt2}}}}}}
  -->{{#vardefine: buy_amount|{{#expr: floor({{{ProductBuyQty}}}*{{#var: full}}*{{#var: contents}}+{{#var: buy_opt2}})}}}}
   |{{#vardefine: pay_amount|{{#expr: {{{ProductPayQty}}}*{{#var: full}}*{{#var: contents}}+{{#var: pay_opt1}}}}}}<!--
   |{{#vardefine: pay_amount|{{#expr: floor({{{ProductPayQty}}}*{{#var: full}}*{{#var: contents}}+{{#var: pay_opt1}})}}}}<!--
  -->{{#vardefine: buy_amount|{{#expr: {{{ProductBuyQty}}}*{{#var: full}}*{{#var: contents}}+{{#var: buy_opt1}}}}}} }}<!--
  -->{{#vardefine: buy_amount|{{#expr: floor({{{ProductBuyQty}}}*{{#var: full}}*{{#var: contents}}+{{#var: buy_opt1}})}}}} }}<!--




Line 66: Line 66:
     --></div><!--
     --></div><!--
     --><div><!--
     --><div><!--
       -->{{#expr: {{{UnityQty}}} round 2}}&nbsp;{{#var: unity_icon}}&nbsp;/ship<!--
       -->{{#expr: {{{UnityQty}}}/100*{{#var:buy_amount}} round 1}}&nbsp;{{#var: unity_icon}}&nbsp;/ship<!--
     --></div><!--
     --></div><!--
     --><div class="lower"><!--
     --><div class="lower"><!--

Latest revision as of 17:23, 20 March 2026

1440
7200
:
0.2  /month
7.9  /ship
18  Establish