User:Kiokurashi/sandbox2: Difference between revisions
From IdleOn MMO Wiki
Kiokurashi (talk | contribs) mNo edit summary Tag: Reverted |
Kiokurashi (talk | contribs) mNo edit summary Tag: Reverted |
||
Line 1: | Line 1: | ||
<includeonly> | <includeonly><table class="FirstImage Building"> | ||
<tr> | |||
<td rowspan='2'>[[File:{{{name}}}.png]]</td> | |||
<td rowspan='2' style="width:40%;"> | |||
===={{{name}}}==== | ===={{{name}}}==== | ||
{{{description}}} | {{{description}}} | ||
{{#vardefine:tiptext|{{#ifeq:{{{name}}}|Cost Cruncher|Includes Cost Cruncher's own effect.|Cost as Cost Cruncher Building at Level 0}}}} | {{#vardefine:tiptext|{{#ifeq:{{{name}}}|Cost Cruncher|Includes Cost Cruncher's own effect.|Cost as Cost Cruncher Building at Level 0}}}} | ||
{{#if:{{{shrinebonus|}}}|'''Shrine Bonus: '''{{{shrinebonus}}}<br/>}}{{#if:{{{basebonus|}}}|'''Base Con. Bonus: '''{{{basebonus}}}<br/>}}{{#if:{{{levelbonus|}}}|'''Con. Level Bonus: '''{{{levelbonus}}}<br/>}}'''Max Con. Level:''' {{{maxlvl|0}}}{{#if:{{{bonuslevels|}}}| '''{{Tooltip|nocolor=y|Increases from other sources|(+ {{{bonuslevels}}}}}'''}} | {{#if:{{{shrinebonus|}}}|'''Shrine Bonus: '''{{{shrinebonus}}}<br/>}}{{#if:{{{basebonus|}}}|'''Base Con. Bonus: '''{{{basebonus}}}<br/>}}{{#if:{{{levelbonus|}}}|'''Con. Level Bonus: '''{{{levelbonus}}}<br/>}}'''Max Con. Level:''' {{{maxlvl|0}}}{{#if:{{{bonuslevels|}}}| '''{{Tooltip|nocolor=y|Increases from other sources|(+ {{{bonuslevels}}}}}'''}}</td> | ||
<td style="width:1e5%;"> | |||
{{#if:{{{salt|}}}|{{CraftReq|{{{salt}}}}}{{#invoke:ConsCalcs|salt|sb={{{saltbase|0}}}|cc={{#ifeq:{{{name}}}|Cost Cruncher|1|0}}|maxTL={{{maxlvl|1}}}|bonusTL={{{bonuslevels|0}}}}} | {{#if:{{{salt|}}}|{{CraftReq|{{{salt}}}}}{{#invoke:ConsCalcs|salt|sb={{{saltbase|0}}}|cc={{#ifeq:{{{name}}}|Cost Cruncher|1|0}}|maxTL={{{maxlvl|1}}}|bonusTL={{{bonuslevels|0}}}}} | ||
<br>Base Cost: {{{saltbase|0}}}{{#if:{{#var:cargo}}|{{Usedin/datarow|icon=Construction Table|item={{{salt}}}|amount={{#var:saltNormal}}|type=Construction}}}} | <br>Base Cost: {{{saltbase|0}}}{{#if:{{#var:cargo}}|{{Usedin/datarow|icon=Construction Table|item={{{salt}}}|amount={{#var:saltNormal}}|type=Construction}}}}<br>{{Tooltip|{{#var:tiptext}}|Cost To Max: {{Numdisplay|{{#var:saltNormal}}}}|nocolor=y}} | ||
<br>{{Tooltip|{{#var:tiptext}}|Cost To Max: {{Numdisplay|{{#var:saltNormal}}}}|nocolor=y}} | |||
{{#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}}}}}}}}}}} | ||
}} | }}</td> | ||
</tr><tr> | |||
<td style="width:15%;">{{#if:{{{material|}}}|{{CraftReq|{{{material}}}}}{{#invoke:ConsCalcs|mat|mb={{{matbase|0}}}|ms={{{matscale|0}}}|cc={{#ifeq:{{{name}}}|Cost Cruncher|1|0}}|maxTL={{{maxlvl|1}}}|bonusTL={{{bonuslevels|0}}}}} | |||
<br>Base Cost: {{{matbase|0}}}{{#if:{{#var:cargo}}|{{Usedin/datarow|icon=Construction Table|item={{{material}}}|amount={{#var:matNormal}}}|type=Construction}}}} | <br>Base Cost: {{{matbase|0}}}{{#if:{{#var:cargo}}|{{Usedin/datarow|icon=Construction Table|item={{{material}}}|amount={{#var:matNormal}}}|type=Construction}}}}<br>{{Tooltip|{{#var:tiptext}}|Cost To Max: {{Numdisplay|{{#var:matNormal}}}}|nocolor=y}} | ||
<br>{{Tooltip|{{#var:tiptext}}|Cost To Max: {{Numdisplay|{{#var:matNormal}}}}|nocolor=y}} | |||
{{#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}}}}}}}}}}} | ||
}}</includeonly><noinclude> Used to construct the infotable for Construction Buildings | }}</td></tr></table> | ||
</includeonly><noinclude> Used to construct the infotable for Construction Buildings | |||
<pre> | <pre> | ||
{{Building | {{Building |
Revision as of 19:25, 20 November 2023
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). }}