Difference between revisions of "Template:Food"

From Salem Wiki
Jump to: navigation, search
(adding average per tick properties)
Line 1: Line 1:
 +
 
<includeonly>
 
<includeonly>
 
|-
 
|-
! style="color:white; font-size:1.4em" | '''Healing and Gluttony / per "tick":'''
+
! style="color:white; font-size:1.4em" | '''Healing and Gluttony:'''
 
|-
 
|-
 
|
 
|
 
{| style="width:100%; border:black 2px solid; background:#efebe5; padding=10px; vertical-align:bottom; text-align:center;"
 
{| style="width:100%; border:black 2px solid; background:#efebe5; padding=10px; vertical-align:bottom; text-align:center;"
 
!
 
!
! style="width:20%" |[[Blood]]
+
! style="width:18%" |[[Blood]]
! style="width:20%" |[[Phlegm]]
+
! style="width:18%" |[[Phlegm]]
! style="width:20%" |[[Yellow Bile|Yellow]]
+
! style="width:18%" |[[Yellow Bile|Yellow]]
! style="width:20%" |[[Black Bile|Black]]
+
! style="width:18%" |[[Black Bile|Black]]
 
<!-- Heal Row-->
 
<!-- Heal Row-->
 
|- style="background:#FFFFFF; color:#000000"
 
|- style="background:#FFFFFF; color:#000000"
Line 17: Line 18:
 
| [[Heals Yellow::{{#explode: {{{Heals}}} |,| 2 }}]]
 
| [[Heals Yellow::{{#explode: {{{Heals}}} |,| 2 }}]]
 
| [[Heals Black::{{#explode: {{{Heals}}} |,| 3 }}]]
 
| [[Heals Black::{{#explode: {{{Heals}}} |,| 3 }}]]
<!-- Salt Row-->
+
<!-- Gluttony Row-->
|- style="background:darkred; color:#ffffff"
 
| style="background:#efebe5; text-align:right" | '''[[Salt|Salt:]]'''
 
| [[Salt Blood::{{#explode: {{{Salt}}} |,| 0 }}]]  / [[Salt Blood PT::{{#expr: {{#explode: {{{Salt}}} |,| 0 }} /{{{eatingTime|999}}} round1 }}]]
 
| [[Salt Phlegm::{{#explode: {{{Salt}}} |,| 1 }}]]  / [[Salt Phlegm PT::{{#expr: {{#explode: {{{Salt}}} |,| 1 }} /{{{eatingTime|999}}} round1 }}]]
 
| [[Salt Yellow::{{#explode: {{{Salt}}} |,| 2 }}]]  / [[Salt Yellow PT::{{#expr: {{#explode: {{{Salt}}} |,| 2 }} /{{{eatingTime|999}}} round1 }}]]
 
| [[Salt Black::{{#explode: {{{Salt}}} |,| 3 }}]]  / [[Salt Black PT::{{#expr: {{#explode: {{{Salt}}} |,| 3 }} /{{{eatingTime|999}}} round1 }}]]
 
<!-- Mercury Row-->
 
|- style="background:darkgreen; color:#ffffff"
 
| style="background:#efebe5; text-align:right" | '''[[Mercury|Mercury:]]'''
 
| [[Mercury Blood::{{#explode: {{{Mercury}}} |,| 0 }}]]  / [[Mercury Blood PT::{{#expr: {{#explode: {{{Mercury}}} |,| 0 }} /{{{eatingTime|999}}} round1 }}]]
 
| [[Mercury Phlegm::{{#explode: {{{Mercury}}} |,| 1 }}]]  / [[Mercury Phlegm PT::{{#expr: {{#explode: {{{Mercury}}} |,| 1 }} /{{{eatingTime|999}}} round1 }}]]
 
| [[Mercury Yellow::{{#explode: {{{Mercury}}} |,| 2 }}]]  / [[Mercury Yellow PT::{{#expr: {{#explode: {{{Mercury}}} |,| 2 }} /{{{eatingTime|999}}} round1 }}]]
 
| [[Mercury Black::{{#explode: {{{Mercury}}} |,| 3 }}]]  / [[Mercury Black PT::{{#expr: {{#explode: {{{Mercury}}} |,| 3 }} /{{{eatingTime|999}}} round1 }}]]
 
<!-- Sulphur Row-->
 
|- style="background:darkblue; color:#ffffff"
 
| style="background:#efebe5; text-align:right" | '''[[Sulphur|Sulphur:]]'''
 
| [[Sulphur Blood::{{#explode: {{{Sulphur}}} |,| 0 }}]]  / [[Sulphur Blood PT::{{#expr: {{#explode: {{{Sulphur}}} |,| 0 }} / {{{eatingTime|999}}} round1 }}]]
 
| [[Sulphur Phlegm::{{#explode: {{{Sulphur}}} |,| 1 }}]]  / [[Sulphur Phlegm PT::{{#expr: {{#explode: {{{Sulphur}}} |,| 1 }} /{{{eatingTime|999}}} round1 }}]]
 
| [[Sulphur Yellow::{{#explode: {{{Sulphur}}} |,| 2 }}]]  / [[Sulphur Yellow PT::{{#expr: {{#explode: {{{Sulphur}}} |,| 2 }} /{{{eatingTime|999}}} round1  }}]]
 
| [[Sulphur Black::{{#explode: {{{Sulphur}}} |,| 3 }}]]  / [[Sulphur Black PT::{{#expr: {{#explode: {{{Sulphur}}} |,| 3 }} /{{{eatingTime|999}}} round1  }}]]
 
<!-- Lead Row-->
 
|- style="background:darkgoldenrod; color:#ffffff"
 
| style="background:#efebe5; text-align:right" | '''[[Lead|Lead:]]'''
 
| [[Lead Blood::{{#explode: {{{Lead}}} |,| 0 }}]]  / [[Lead Blood PT::{{#expr: {{#explode: {{{Lead}}} |,| 0 }} /{{{eatingTime|999}}} round1 }}]]
 
| [[Lead Phlegm::{{#explode: {{{Lead}}} |,| 1 }}]]  / [[Lead Phlegm PT::{{#expr: {{#explode: {{{Lead}}} |,| 1 }} /{{{eatingTime|999}}} round1 }}]]
 
| [[Lead Yellow::{{#explode: {{{Lead}}} |,| 2 }}]]  / [[Lead Yellow PT::{{#expr: {{#explode: {{{Lead}}} |,| 2 }} /{{{eatingTime|999}}} round1 }}]]
 
| [[Lead Black::{{#explode: {{{Lead}}} |,| 3 }}]]  / [[Lead Black PT::{{#expr: {{#explode: {{{Lead}}} |,| 3 }} /{{{eatingTime|999}}} round1 }}]]
 
<!-- Average Row-->
 
 
|- style="background:#FFFFFF; color:#000000"
 
|- style="background:#FFFFFF; color:#000000"
| style="background:#efebe5; text-align:right" | '''Average:'''
+
| style="background:#efebe5; text-align:right" | '''Glutton min:'''
| [[Average Blood::{{#expr: ({{#explode: {{{Salt}}} |,| 0 }} + {{#explode: {{{Mercury}}} |,| 0 }} + {{#explode: {{{Sulphur}}} |,| 0 }} + {{#explode: {{{Lead}}} |,| 0 }})/ 4 round1 }}]] / [[Average Blood PT::{{#expr: ({{#explode: {{{Salt}}} |,| 0 }} + {{#explode: {{{Mercury}}} |,| 0 }} + {{#explode: {{{Sulphur}}} |,| 0 }} + {{#explode: {{{Lead}}} |,| 0 }}) / 4 / {{{eatingTime|999}}} round1 }}]]
+
| [[GluttonBloodMin::{{#explode: {{{GluttonMin}}} |,| 0 }}]]
| [[Average Phlegm::{{#expr: ({{#explode: {{{Salt}}} |,| 1 }} + {{#explode: {{{Mercury}}} |,| 1 }} + {{#explode: {{{Sulphur}}} |,| 1 }} + {{#explode: {{{Lead}}} |,| 1 }})/ 4 round1 }}]] / [[Average Phlegm PT::{{#expr: ({{#explode: {{{Salt}}} |,| 1 }} + {{#explode: {{{Mercury}}} |,| 1 }} + {{#explode: {{{Sulphur}}} |,| 1 }} + {{#explode: {{{Lead}}} |,| 1 }}) / 4 / {{{eatingTime|999}}} round1 }}]]
+
| [[GluttonPhlegmMin::{{#explode: {{{GluttonMin}}} |,| 1 }}]]
| [[Average Yellow::{{#expr: ({{#explode: {{{Salt}}} |,| 2 }} + {{#explode: {{{Mercury}}} |,| 2 }} + {{#explode: {{{Sulphur}}} |,| 2 }} + {{#explode: {{{Lead}}} |,| 2 }})/ 4 round11 }}]] / [[Average Yellow PT::{{#expr: ({{#explode: {{{Salt}}} |,| 2 }} + {{#explode: {{{Mercury}}} |,| 2 }} + {{#explode: {{{Sulphur}}} |,| 2 }} + {{#explode: {{{Lead}}} |,| 2 }}) / 4 / {{{eatingTime|999}}} round1 }}]]
+
| [[GluttonYellowMin::{{#explode: {{{GluttonMin}}} |,| 2 }}]]
| [[Average Black::{{#expr: ({{#explode: {{{Salt}}} |,| 3 }} + {{#explode: {{{Mercury}}} |,| 3 }} + {{#explode: {{{Sulphur}}} |,| 3 }} + {{#explode: {{{Lead}}} |,| 3 }})/ 4 round1 }}]] / [[Average Black PT::{{#expr: ({{#explode: {{{Salt}}} |,| 3 }} + {{#explode: {{{Mercury}}} |,| 3 }} + {{#explode: {{{Sulphur}}} |,| 3 }} + {{#explode: {{{Lead}}} |,| 3 }}) / 4 / {{{eatingTime|999}}} round1 }}]]
+
| [[GluttonBlackMin::{{#explode: {{{GluttonMin}}} |,| 3 }}]]
 +
|- style="background:#FFFFFF; color:#000000"
 +
| style="background:#efebe5; text-align:right" | '''Glutton max:'''
 +
| [[GluttonBloodMax::{{#explode: {{{GluttonMax}}} |,| 0 }}]]
 +
| [[GluttonPhlegmMax::{{#explode: {{{GluttonMax}}} |,| 1 }}]]
 +
| [[GluttonYellowMax::{{#explode: {{{GluttonMax}}} |,| 2 }}]]
 +
| [[GluttonBlackMax::{{#explode: {{{GluttonMax}}} |,| 3 }}]]
 +
|- style="background:#FFFFFF; color:#000000"
 +
| style="background:#efebe5; text-align:right" | '''Glutton avg:'''
 +
| [[Blood Avg::{{#expr: ({{#explode: {{{GluttonMax}}} |,| 0 }}+{{#explode: {{{GluttonMin}}} |,| 0 }})/2}}]]
 +
| [[Phlegm Avg::{{#expr: ({{#explode: {{{GluttonMax}}} |,| 1 }}+{{#explode: {{{GluttonMin}}} |,| 1 }})/2}}]]
 +
| [[Yellow Avg::{{#expr: ({{#explode: {{{GluttonMax}}} |,| 2 }}+{{#explode: {{{GluttonMin}}} |,| 2 }})/2}}]]
 +
| [[Black Avg::{{#expr: ({{#explode: {{{GluttonMax}}} |,| 3 }}+{{#explode: {{{GluttonMin}}} |,| 3 }})/2}}]]
 
|}
 
|}
 +
 
{| style="width:100%; border:black 2px solid; background:#efebe5; padding=10px; vertical-align:bottom; text-align:center;"
 
{| style="width:100%; border:black 2px solid; background:#efebe5; padding=10px; vertical-align:bottom; text-align:center;"
!
+
 
! style="width:40%"|
+
|- style="background:#FFFFFF; color:#000000"
 +
| style="background:#efebe5; text-align:left" | '''Full and fed up for:'''
 +
|
 +
{| style="text-align:right"
 +
|{{{FullAndFedUp}}} minutes
 +
|-
 +
|}
 
|- style="background:#FFFFFF; color:#000000"
 
|- style="background:#FFFFFF; color:#000000"
| style="background:#efebe5; text-align:right" | '''Eating time (in "ticks"):'''
+
| style="background:#efebe5; text-align:left" | '''Number of uses for Healing:'''
| [[EatingTime::{{{eatingTime|999}}}]]
+
|
 +
{| style="text-align:right"
 +
|[[FoodUses:: {{{Uses}}}]]
 +
|}
 +
|}
 +
{| style="width:100%; border:black 2px solid; background:#efebe5; padding=10px; vertical-align:bottom; text-align:center;"
 +
| style="vertical-align:top; width:0px; text-align:left" |
 +
|
 +
{| style="text-align:left"
 +
{{#if: {{{ReduceBerries}}} | {{!}} {{#ifexpr: {{{ReduceBerries}}} < 0 | Reduces | Restores }} {{PropVals/getIcon|Berries Gluttony}}[[Berries Gluttony|Berries]] with {{#expr: abs {{{ReduceBerries}}}}}%  ({{{BerriesChance}}}% chance)| }}
 +
|-
 +
{{#if: {{{ReduceBread}}} | {{!}} {{#ifexpr: {{{ReduceBread}}} < 0 | Reduces | Restores }} {{PropVals/getIcon|Bread Gluttony}}[[Bread Gluttony|Bread]] with {{#expr: abs {{{ReduceBread}}}}}%  ({{{BreadChance}}}% chance)| }}
 +
|-
 +
{{#if: {{{ReduceCabbages}}} | {{!}} {{#ifexpr: {{{ReduceCabbages}}} < 0 | Reduces | Restores }} {{PropVals/getIcon|Cabbages Gluttony}}[[Cabbages Gluttony|Cabbages]] with {{#expr: abs {{{ReduceCabbages}}}}}%  ({{{CabbagesChance}}}% chance)| }}
 +
|-
 +
{{#if: {{{ReduceCandy}}} | {{!}} {{#ifexpr: {{{ReduceCandy}}} < 0 | Reduces | Restores }} {{PropVals/getIcon|Candy & Sweet Gluttony}}[[Candy & Sweet Gluttony|Candy]] with {{#expr: abs {{{ReduceCandy}}}}}%  ({{{CandyChance}}}% chance)| }}
 +
|-
 +
{{#if: {{{ReduceCereal}}} | {{!}} {{#ifexpr: {{{ReduceCereal}}} < 0 | Reduces | Restores }} {{PropVals/getIcon|Cereal & Grain Gluttony}}[[Cereal & Grain Gluttony|Cereal]] with {{#expr: abs {{{ReduceCereal}}}}}%  ({{{CerealChance}}}% chance)| }}
 +
|-
 +
{{#if: {{{ReduceCookies}}} | {{!}} {{#ifexpr: {{{ReduceCookies}}} < 0 | Reduces | Restores }} {{PropVals/getIcon|Cookies & Crakers Gluttony}}[[Cookies & Crakers Gluttony|Cookies]] with {{#expr: abs {{{ReduceCookies}}}}}%  ({{{CookiesChance}}}% chance)| }}
 +
|-
 +
{{#if: {{{ReduceCrustacea}}} | {{!}} {{#ifexpr: {{{ReduceCrustacea}}} < 0 | Reduces | Restores }} {{PropVals/getIcon|Crustacea & Shellfish Gluttony}}[[Crustacea & Shellfish Gluttony|Crustacea]] with {{#expr: abs {{{ReduceCrustacea}}}}}%  ({{{CrustaceaChance}}}% chance)| }}
 +
|-
 +
{{#if: {{{ReduceFish}}} | {{!}} {{#ifexpr: {{{ReduceFish}}} < 0 | Reduces | Restores }} {{PropVals/getIcon|Fish Gluttony}}[[Fish Gluttony|Fish]] with {{#expr: abs {{{ReduceFish}}}}}%  ({{{FishChance}}}% chance)| }}
 +
|-
 +
{{#if: {{{ReduceFlower}}} | {{!}} {{#ifexpr: {{{ReduceFlower}}} < 0 | Reduces | Restores }} {{PropVals/getIcon|Flower & Herbs Gluttony}}[[Flower & Herbs Gluttony|Flower]] with {{#expr: abs {{{ReduceFlower}}}}}%  ({{{FlowerChance}}}% chance)| }}
 +
|-
 +
{{#if: {{{ReduceFood}}} | {{!}} {{#ifexpr: {{{ReduceFood}}} < 0 | Reduces | Restores }} {{PropVals/getIcon|Food Gluttony}}[[Food Gluttony|Food]] with {{#expr: abs {{{ReduceFood}}}}}%  ({{{FoodChance}}}% chance)| }}
 +
|-
 +
{{#if: {{{ReduceForage}}} | {{!}} {{#ifexpr: {{{ReduceForage}}} < 0 | Reduces | Restores }} {{PropVals/getIcon|Forage Gluttony}}[[Forage Gluttony|Forage]] with {{#expr: abs {{{ReduceForage}}}}}%  ({{{ForageChance}}}% chance)| }}
 +
|-
 +
{{#if: {{{ReduceGame}}} | {{!}} {{#ifexpr: {{{ReduceGame}}} < 0 | Reduces | Restores }} {{PropVals/getIcon|Game Gluttony}}[[Game Gluttony|Game]] with {{#expr: abs {{{ReduceGame}}}}}%  ({{{GameChance}}}% chance)| }}
 +
|-
 +
{{#if: {{{ReduceMeat}}} | {{!}} {{#ifexpr: {{{ReduceMeat}}} < 0 | Reduces | Restores }} {{PropVals/getIcon|Meat Gluttony}}[[Meat Gluttony|Meat]] with {{#expr: abs {{{ReduceMeat}}}}}%  ({{{MeatChance}}}% chance)| }}
 +
|-
 +
{{#if: {{{ReduceMushrooms}}} | {{!}} {{#ifexpr: {{{ReduceMushrooms}}} < 0 | Reduces | Restores }} {{PropVals/getIcon|Mushrooms Gluttony}}[[Mushrooms Gluttony|Mushrooms]] with {{#expr: abs {{{ReduceMushrooms}}}}}%  ({{{MushroomsChance}}}% chance)| }}
 +
|-
 +
{{#if: {{{ReduceNuts}}} | {{!}} {{#ifexpr: {{{ReduceNuts}}} < 0 | Reduces | Restores }} {{PropVals/getIcon|Nuts & Seeds Gluttony}}[[Nuts & Seeds Gluttony|Nuts]] with {{#expr: abs {{{ReduceNuts}}}}}%  ({{{NutsChance}}}% chance)| }}
 +
|-
 +
{{#if: {{{ReduceOffal}}} | {{!}} {{#ifexpr: {{{ReduceOffal}}} < 0 | Reduces | Restores }} {{PropVals/getIcon|Offal Gluttony}}[[Offal Gluttony|Offal]] with {{#expr: abs {{{ReduceOffal}}}}}%  ({{{OffalChance}}}% chance)| }}
 +
|-
 +
{{#if: {{{ReducePies}}} | {{!}} {{#ifexpr: {{{ReducePies}}} < 0 | Reduces | Restores }} {{PropVals/getIcon|Pies Gluttony}}[[Pies Gluttony|Pies]] with {{#expr: abs {{{ReducePies}}}}}%  ({{{PiesChance}}}% chance)| }}
 +
|-
 +
{{#if: {{{ReducePoultry}}} | {{!}} {{#ifexpr: {{{ReducePoultry}}} < 0 | Reduces | Restores }} {{PropVals/getIcon|Poultry Gluttony}}[[Poultry Gluttony|Poultry]] with {{#expr: abs {{{ReducePoultry}}}}}%  ({{{PoultryChance}}}% chance)| }}
 +
|-
 +
{{#if: {{{ReducePumpkin}}} | {{!}} {{#ifexpr: {{{ReducePumpkin}}} < 0 | Reduces | Restores }} {{PropVals/getIcon|Pumpkin Gluttony}}[[Pumpkin Gluttony|Pumpkin]] with {{#expr: abs {{{ReducePumpkin}}}}}%  ({{{PumpkinChance}}}% chance)| }}
 +
|-
 +
{{#if: {{{ReduceSeafood}}} | {{!}} {{#ifexpr: {{{ReduceSeafood}}} < 0 | Reduces | Restores }} {{PropVals/getIcon|Seafood Gluttony}}[[Seafood Gluttony|Seafood]] with {{#expr: abs {{{ReduceSeafood}}}}}%  ({{{SeafoodChance}}}% chance)| }}
 +
|-
 +
{{#if: {{{ReduceSlugs}}} | {{!}} {{#ifexpr: {{{ReduceSlugs}}} < 0 | Reduces | Restores }} {{PropVals/getIcon|Slugs, Bugs & Kritter Gluttony}}[[Slugs, Bugs & Kritter Gluttony|Slugs]] with {{#expr: abs {{{ReduceSlugs}}}}}%  ({{{SlugsChance}}}% chance)| }}
 +
|-
 +
{{#if: {{{ReduceVegetables}}} | {{!}} {{#ifexpr: {{{ReduceVegetables}}} < 0 | Reduces | Restores }} {{PropVals/getIcon|Vegetables & Greens Gluttony}}[[Vegetables & Greens Gluttony|Vegetables]] with {{#expr: abs {{{ReduceVegetables}}}}}%  ({{{VegetablesChance}}}% chance)| }}
 +
|-
 +
|}
 
|}
 
|}
 +
{{#if: {{{Ingredient1}}}| {{{{{Ingredient1}}}}} | }}
 +
{{#if: {{{Ingredient2}}}| {{{{{Ingredient2}}}}} | }}
 
|}
 
|}
  
{{#IFEQ: {{PAGENAME}} | Contributing | | [[Category:Food]] }}</includeonly>
+
{{#IFEQ: {{PAGENAME}} | Contributing | | [[Category:NewFood]] }}</includeonly>
 
<noinclude>'''NOTE:''' This is a MODULAR template. It MUST be used after one the the following templates:
 
<noinclude>'''NOTE:''' This is a MODULAR template. It MUST be used after one the the following templates:
 
*[[Template:Foraged]] if the food item is foraged.
 
*[[Template:Foraged]] if the food item is foraged.
Line 73: Line 120:
 
{| style="float:left; width:320px; padding:0.2em; border:black 2px solid; border-radius:0.4em; background:#71583b; font-family:Calibri; margin-right:25px"
 
{| style="float:left; width:320px; padding:0.2em; border:black 2px solid; border-radius:0.4em; background:#71583b; font-family:Calibri; margin-right:25px"
  
{{Food | Heals=1,2,3,4 | Salt=2,3,4,5 | Mercury=3,4,5,6 | Sulphur=4,5,6,7 | Lead=5,6,7,8 | eatingTime=5}}</noinclude>
+
{{NewFood
 +
| Heals=1,2,3,4
 +
| GluttonMin=10,20,30,40
 +
| GluttonMax=30,50,70,90
 +
| FullAndFedUp=9
 +
| Uses=1
 +
| Ticks=
 +
| ReduceBerries=-10
 +
| BerriesChance=12
 +
| ReduceBread=-100
 +
| BreadChance=120
 +
| ReduceCandy=101
 +
| CandyChance=121
 +
| ReduceCabbages=101
 +
| CabbagesChance=121
 +
| ReduceCereal=-101
 +
| CerealChance=121
 +
| ReduceCookies=102
 +
| CookiesChance=122
 +
| ReduceCrustacea=-302
 +
| CrustaceaChance=322
 +
| ReduceFish=13
 +
| FishChance=15
 +
| ReduceFood=133
 +
| FoodChance=153
 +
| ReduceForage=333
 +
| ForageChance=353
 +
| ReduceFlower=16
 +
| FlowerChance=18
 +
| ReduceGame=19
 +
| GameChance=21
 +
| ReduceMeat=22
 +
| MeatChance=24
 +
| ReduceMushrooms=25
 +
| MushroomsChance=27
 +
| ReduceNuts=254
 +
| NutsChance=274
 +
| ReduceOffal=254
 +
| OffalChance=274
 +
| ReducePies=256
 +
| PiesChance=276
 +
| ReducePoultry=28
 +
| PoultryChance=30
 +
| ReducePumpkin=28
 +
| PumpkinChance=30
 +
| ReduceSeafood=31
 +
| SeafoodChance=33
 +
| ReduceSlugs=34
 +
| SlugsChance=36
 +
| ReduceVegetables=349
 +
| VegetablesChance=369
 +
| Ingredient1= MeatIngredient
 +
| Ingredient2= FlourIngredient
 +
| Ingredient3=
 +
| Ingredient4=
 +
}}
 +
</noinclude>

Revision as of 22:18, 14 March 2014


NOTE: This is a MODULAR template. It MUST be used after one the the following templates:


See Help:Contributing for instructions and examples for adding a new page to the wiki.


Template:NewFood