Difference between revisions of "Template:Food"
From Salem Wiki
(adding average per tick properties) |
|||
Line 1: | Line 1: | ||
+ | |||
<includeonly> | <includeonly> | ||
|- | |- | ||
− | ! style="color:white; font-size:1.4em" | '''Healing and Gluttony | + | ! 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: | + | ! style="width:18%" |[[Blood]] |
− | ! style="width: | + | ! style="width:18%" |[[Phlegm]] |
− | ! style="width: | + | ! style="width:18%" |[[Yellow Bile|Yellow]] |
− | ! style="width: | + | ! 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 }}]] | ||
− | <!-- | + | <!-- Gluttony Row--> |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
|- style="background:#FFFFFF; color:#000000" | |- style="background:#FFFFFF; color:#000000" | ||
− | | style="background:#efebe5; text-align:right" | ''' | + | | style="background:#efebe5; text-align:right" | '''Glutton min:''' |
− | | [[ | + | | [[GluttonBloodMin::{{#explode: {{{GluttonMin}}} |,| 0 }}]] |
− | | [[ | + | | [[GluttonPhlegmMin::{{#explode: {{{GluttonMin}}} |,| 1 }}]] |
− | | [[ | + | | [[GluttonYellowMin::{{#explode: {{{GluttonMin}}} |,| 2 }}]] |
− | | [[ | + | | [[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="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: | + | | style="background:#efebe5; text-align:left" | '''Number of uses for Healing:''' |
− | | [[ | + | | |
+ | {| 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: | + | {{#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" | ||
− | {{ | + | {{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:
- Template:Foraged if the food item is foraged.
- Template:Crafted if the food item is crafted.
See Help:Contributing for instructions and examples for adding a new page to the wiki.