Template:Building: Difference between revisions

From IdleOn MMO Wiki
mNo edit summary
mNo edit summary
Line 11: Line 11:
{{#if:{{{bonuslevels|}}}|<br/>Cost for {{{bonuslevels}}} More Levels: {{Numdisplay|{{#var:saltBonus}}}}<br/>Total: {{Numdisplay|{{#var:saltTotal}}}}{{#if:{{#var:cargo}}|{{Usedin/datarow|icon=Construction Table|item={{{salt}}}|amount={{#var:saltBonus}}|source={{PAGENAME}}{{!}}{{PAGENAME}} Bonus Levels|type=Bonus Levels {{Tooltip|{{{bonussources|Missing}}}}}}}}}}}
{{#if:{{{bonuslevels|}}}|<br/>Cost for {{{bonuslevels}}} More Levels: {{Numdisplay|{{#var:saltBonus}}}}<br/>Total: {{Numdisplay|{{#var:saltTotal}}}}{{#if:{{#var:cargo}}|{{Usedin/datarow|icon=Construction Table|item={{{salt}}}|amount={{#var:saltBonus}}|source={{PAGENAME}}{{!}}{{PAGENAME}} Bonus Levels|type=Bonus Levels {{Tooltip|{{{bonussources|Missing}}}}}}}}}}}
}}
}}
{{#if:{{{material|}}}|<br/>{{CraftReq|{{{material}}}}}<br>Base Cost: {{{matbase|0}}}{{#invoke:ConsCalcs|mat|mb={{{matbase|0}}}|ms={{{matscale|0}}}|cc={{#ifeq:{{{name}}}|Cost Cruncher|1|0}}|maxTL={{{maxlvl|1}}}|bonusTL={{{bonuslevels|0}}}}}{{#if:{{#var:cargo}}|{{Usedin/datarow|icon=Construction Table|item={{{material}}}|amount={{#var:matNorm}}}|type=Construction}}}}<br>{{Tooltip|{{#var:tiptext}}|Cost To Max:|nocolor=y|nospace=y}} {{Numdisplay|{{#var:matNorm}}}}
{{#if:{{{material|}}}|<br/>{{CraftReq|{{{material}}}}}<br>Base Cost: {{{matbase|0}}}{{#invoke:ConsCalcs|mat|mb={{{matbase|0}}}|ms={{{matscale|0}}}|cc={{#ifeq:{{{name}}}|Cost Cruncher|1|0}}|maxTL={{{maxlvl|1}}}|bonusTL={{{bonuslevels|0}}}}}{{#if:{{#var:cargo}}|{{Usedin/datarow|icon=Construction Table|item={{{material}}}|amount={{#var:matNorm}}|type=Construction}}}}<br>{{Tooltip|{{#var:tiptext}}|Cost To Max:|nocolor=y|nospace=y}} {{Numdisplay|{{#var:matNorm}}}}
{{#if:{{{bonuslevels|}}}|<br/>Cost for {{{bonuslevels}}} More Levels: {{Numdisplay|{{#var:matBonus}}}}<br/>Total: {{Numdisplay|{{#var:matTotal}}}}{{#if:{{#var:cargo}}|{{Usedin/datarow|icon=Construction Table|item={{{material}}}|amount={{#var:matBonus}}|source={{PAGENAME}}{{!}}{{PAGENAME}} Bonus Levels|type=Bonus Levels {{Tooltip|{{{bonussources|Missing}}}}}}}}}}}
{{#if:{{{bonuslevels|}}}|<br/>Cost for {{{bonuslevels}}} More Levels: {{Numdisplay|{{#var:matBonus}}}}<br/>Total: {{Numdisplay|{{#var:matTotal}}}}{{#if:{{#var:cargo}}|{{Usedin/datarow|icon=Construction Table|item={{{material}}}|amount={{#var:matBonus}}|source={{PAGENAME}}{{!}}{{PAGENAME}} Bonus Levels|type=Bonus Levels {{Tooltip|{{{bonussources|Missing}}}}}}}}}}}
}}</td></tr></table>
}}</td></tr></table>

Revision as of 03:52, 17 March 2024

Used to construct the infotable for Construction Buildings
 {{Building
   |name=          Building Name
   |description=   Description of the Building.
   |shrinebonus=   Bonus effect of Shrines.
   |basebonus=     Description of bonus available just for unlocking the Building.
   |levelbonus=    Bonus that improves when leveling the Building.
   |maxlvl=        Max level of the Building without bonuses from other sources (From code).
   |bonuslevels=   Number of extra bonus levels from other sources, if there is any.
   |bonussources=  Short list of the sources those bonus levels come from.
   |salt=          Salt item used to upgrade Building.
   |saltbase=      Base level salt cost (From code).
   |material=      Non-Salt item used to upgrade Building.
   |matbase=       Base level Material cost (From code).
   |matscale=      Rate of scaling Material cost (From code).
 }}