Difference between revisions of "Template:Infobox main/testing"
Jump to navigation
Jump to search
(Moved category declaration to doc subpage.) |
(Updating testing page to current standard for future testing.) |
||
Line 1: | Line 1: | ||
− | <includeonly>{{#vardefine:Name|{{{name|{{BASEPAGENAME}}}}}}} | + | <includeonly>{{#vardefine:Name|{{{name|{{BASEPAGENAME}}}}}}} <div class="infobox float:right; {{#if:{{{1|}}}|{{#switch:{{{1}}}|<!-- |
− | <div class="infobox float:right; {{#if:{{{1|}}}|{{#switch:{{{1}}}|<!-- | ||
--> animal = c_08 |<!-- | --> animal = c_08 |<!-- | ||
--> plant = c_14 |<!-- | --> plant = c_14 |<!-- | ||
Line 12: | Line 11: | ||
<p class="heading">{{#var:Name}}</p> | <p class="heading">{{#var:Name}}</p> | ||
<div class="wrapper"> | <div class="wrapper"> | ||
− | <div class="image_wrapper" title="{{#var:Name}}"> | + | <div class="image_wrapper" title="{{#var:Name}}">[[File:{{{image|{{#var:Name}}}}}|{{{imagesize|250px}}}|link={{#var:Name}}|{{#var:Name}}]]</div> |
− | <p class="text-center" style="display:block; font-size:89%; padding: .5em;">{{#if:{{{description|}}}|{{{description|}}}{{#set:Description = {{{description|}}}}}}}</p>{{#set:Image = [[File:{{{image|{{ | + | <p class="text-center" style="display:block; font-size:89%; padding: .5em;">{{#if:{{{description|}}}|{{{description|}}}{{#set:Description = {{{description|}}}}}}}</p>{{#set:Image = [[File:{{{image|{{#var:Name}}.png}}}]]}} |
---- | ---- | ||
<dl> | <dl> | ||
Line 28: | Line 27: | ||
:{{{rotatable|}}}}} | :{{{rotatable|}}}}} | ||
− | + | {{#if: {{{size|}}}|{{#set:Size = {{{size|}}} }} | |
− | {{#if: {{{size| | ||
;Size | ;Size | ||
− | :{{ | + | :{{{size|}}}}} |
− | }} | ||
{{#if: {{{efficiency|}}}|{{#set:Efficiency= {{{efficiency|}}} }} | {{#if: {{{efficiency|}}}|{{#set:Efficiency= {{{efficiency|}}} }} | ||
Line 46: | Line 43: | ||
:{{{deterioration|}}}}} | :{{{deterioration|}}}}} | ||
+ | <!-- If market value defined, use that, else, if possible, calculate the value and use that instead but make a note that it is calculated.--> | ||
{{#if: {{{marketvalue|}}}|{{#set: Market Value Base = {{{marketvalue|}}} }} | {{#if: {{{marketvalue|}}}|{{#set: Market Value Base = {{{marketvalue|}}} }} | ||
;Market Value | ;Market Value | ||
− | :{{Market Value | {{{marketvalue|}}}}} {{Icon Small|silver}} }} | + | :{{Market Value | {{{marketvalue|}}}}} {{Icon Small|silver}} | {{#if: {{{resource 1|}}}| {{#if: {{{work to make|}}} | {{#ifeq: {{{resource 1|}}} | Stuff | | {{#set: Market Value Base = {{Market Value Calculator}} }} {{#set: Calculated Market Value = True }} |
+ | ;Market Value | ||
+ | :{{Market Value | {{Market Value Calculator}}}} {{Icon Small|silver}} {{H:title|link=no|This value is automatically calculated by the wiki and may not be correct|<sup>[Note]</sup>}} }} }} }} | ||
+ | }} | ||
{{#if: {{{beauty|}}}|{{#set:Beauty Base = {{{beauty|}}} }} | {{#if: {{{beauty|}}}|{{#set:Beauty Base = {{{beauty|}}} }} | ||
Line 79: | Line 80: | ||
;{{H:title|link=no|See Apparel for how this is applied|Insulation Factor - Heat}} | ;{{H:title|link=no|See Apparel for how this is applied|Insulation Factor - Heat}} | ||
:{{{insulationheatfactor|}}}x }} | :{{{insulationheatfactor|}}}x }} | ||
+ | |||
+ | {{#if: {{{armorsharp|}}}|{{#set:Armor - Sharp = {{{armorsharp|}}} }} | ||
+ | ;Armor - Sharp | ||
+ | :{{{armorsharp|}}}%}} | ||
{{#if: {{{armorblunt|}}}|{{#set:Armor - Blunt= {{{armorblunt|}}} }} | {{#if: {{{armorblunt|}}}|{{#set:Armor - Blunt= {{{armorblunt|}}} }} | ||
;Armor - Blunt | ;Armor - Blunt | ||
:{{{armorblunt|}}}%}} | :{{{armorblunt|}}}%}} | ||
− | |||
− | |||
− | |||
− | |||
{{#if: {{{armorheat|}}}|{{#set:Armor - Heat = {{{armorheat|}}} }} | {{#if: {{{armorheat|}}}|{{#set:Armor - Heat = {{{armorheat|}}} }} | ||
;Armor - Heat | ;Armor - Heat | ||
:{{{armorheat|}}}%}} | :{{{armorheat|}}}%}} | ||
+ | |||
+ | {{#if: {{{armorsharpfactor|}}}|{{#set:Armor Factor - Sharp = {{{armorsharpfactor|}}} }} | ||
+ | ;Armor Factor - Sharp | ||
+ | :{{{armorsharpfactor|}}}}} | ||
{{#if: {{{armorbluntfactor|}}}|{{#set:Armor Factor - Blunt= {{{armorbluntfactor|}}} }} | {{#if: {{{armorbluntfactor|}}}|{{#set:Armor Factor - Blunt= {{{armorbluntfactor|}}} }} | ||
;Armor Factor - Blunt | ;Armor Factor - Blunt | ||
:{{{armorbluntfactor|}}}}} | :{{{armorbluntfactor|}}}}} | ||
− | |||
− | |||
− | |||
− | |||
{{#if: {{{armorheatfactor|}}}|{{#set:Armor Factor - Heat = {{{armorheatfactor|}}} }} | {{#if: {{{armorheatfactor|}}}|{{#set:Armor Factor - Heat = {{{armorheatfactor|}}} }} | ||
Line 111: | Line 112: | ||
;Coverage | ;Coverage | ||
:{{{coverage|}}}}} | :{{{coverage|}}}}} | ||
+ | |||
+ | {{#if: {{{layer|}}}|{{#set:layer= {{{layer|}}} }} | ||
+ | ;Layer | ||
+ | :{{{layer|}}}}} | ||
<!-- All pawns (animals, humanoids, mechanoids) --> | <!-- All pawns (animals, humanoids, mechanoids) --> | ||
Line 122: | Line 127: | ||
{{#if: {{{massyoung|{{{massadult|}}}}}}|{{#set:Mass - Young= {{{massyoung|{{#expr:{{{massadult}}}/5}}}}} }} | {{#if: {{{massyoung|{{{massadult|}}}}}}|{{#set:Mass - Young= {{{massyoung|{{#expr:{{{massadult}}}/5}}}}} }} | ||
;Mass - Young | ;Mass - Young | ||
− | :{{{massyoung|{{#expr:{{{massadult}}}/5}}}}}kg}} | + | :{{{massyoung|{{#expr:{{{massadult}}}/5}}}}} kg}} |
− | {{#if: {{{ | + | {{#if: {{{massjuvenile|{{{massadult|}}}}}}|{{#set:Mass - Juvenile= {{{massjuvenile|{{#expr:{{{massadult}}}/2}}}}} }} |
;Mass - Juvenile | ;Mass - Juvenile | ||
− | :{{{ | + | :{{{massjuvenile|{{#expr:{{{massadult}}}/2}}}}} kg}} |
{{#if: {{{massadult|}}}|{{#set:Mass - Adult= {{{massadult|}}} }} | {{#if: {{{massadult|}}}|{{#set:Mass - Adult= {{{massadult|}}} }} | ||
;Mass - Adult | ;Mass - Adult | ||
− | :{{{massadult|}}}kg}} | + | :{{{massadult|}}} kg}} |
{{#if: {{{attack1dmg|}}}{{{attack1type|}}}{{{attack1part|}}}{{{attack1cool|}}}| | {{#if: {{{attack1dmg|}}}{{{attack1type|}}}{{{attack1part|}}}{{{attack1cool|}}}| | ||
Line 140: | Line 145: | ||
{{#set: Attack 1 DPS = {{#var: Attack1DPS}} }} | {{#set: Attack 1 DPS = {{#var: Attack1DPS}} }} | ||
;Attack{{#if: {{{attack2dmg|}}}| 1}} | ;Attack{{#if: {{{attack2dmg|}}}| 1}} | ||
− | :{{{attack1part|Body part?}}}<br>{{{attack1dmg|?}}} dmg ({{{attack1type|type?}}})<br>{{ticks|{{{attack1cool|0}}}}} }}<!-- | + | :{{{attack1part|Body part?}}}<br>{{{attack1dmg|?}}} dmg ({{{attack1type|type?}}})<br>{{#expr: ({{{attack1dmg|}}}*1.5-0.001) round 0}}% AP<br>{{ticks|{{{attack1cool|0}}}}} }}<!-- |
-->{{#if: {{{attack1stun|}}}|{{#set:Attack 1 Stun = {{{attack1stun|}}}}}<br>Stun for {{ticks|{{{attack1stun|0}}}*20}} on first strike}} | -->{{#if: {{{attack1stun|}}}|{{#set:Attack 1 Stun = {{{attack1stun|}}}}}<br>Stun for {{ticks|{{{attack1stun|0}}}*20}} on first strike}} | ||
Line 151: | Line 156: | ||
{{#set: Attack 2 DPS = {{#var: Attack2DPS}} }} | {{#set: Attack 2 DPS = {{#var: Attack2DPS}} }} | ||
;Attack 2 | ;Attack 2 | ||
− | :{{{attack2part|Body part?}}}<br>{{{attack2dmg|?}}} dmg ({{{attack2type|type?}}})<br>{{ticks|{{{attack2cool|0}}}}} }}<!-- | + | :{{{attack2part|Body part?}}}<br>{{{attack2dmg|?}}} dmg ({{{attack2type|type?}}})<br>{{#expr: ({{{attack1dmg|}}}*1.5-0.001) round 0}}% AP<br>{{ticks|{{{attack2cool|0}}}}} }}<!-- |
-->{{#if: {{{attack2stun|}}}|{{#set:Attack 2 Stun = {{{attack2stun|}}}}}<br>Stun for {{ticks|{{{attack2stun|0}}}*20}} on first strike}} | -->{{#if: {{{attack2stun|}}}|{{#set:Attack 2 Stun = {{{attack2stun|}}}}}<br>Stun for {{ticks|{{{attack2stun|0}}}*20}} on first strike}} | ||
Line 162: | Line 167: | ||
{{#set: Attack 3 DPS = {{#var: Attack3DPS}} }} | {{#set: Attack 3 DPS = {{#var: Attack3DPS}} }} | ||
;Attack 3 | ;Attack 3 | ||
− | :{{{attack3part|Body part?}}}<br>{{{attack3dmg|?}}} dmg ({{{attack3type|type?}}})<br>{{ticks|{{{attack3cool|0}}}}} }}<!-- | + | :{{{attack3part|Body part?}}}<br>{{{attack3dmg|?}}} dmg ({{{attack3type|type?}}})<br>{{#expr: ({{{attack1dmg|}}}*1.5-0.001) round 0}}% AP<br>{{ticks|{{{attack3cool|0}}}}} }}<!-- |
-->{{#if: {{{attack3stun|}}}|{{#set:Attack 3 Stun = {{{attack3stun|}}}}}<br>Stun for {{ticks|{{{attack3stun|0}}}*20}} on first strike}} | -->{{#if: {{{attack3stun|}}}|{{#set:Attack 3 Stun = {{{attack3stun|}}}}}<br>Stun for {{ticks|{{{attack3stun|0}}}*20}} on first strike}} | ||
Line 173: | Line 178: | ||
{{#set: Attack 4 DPS = {{#var: Attack4DPS}} }} | {{#set: Attack 4 DPS = {{#var: Attack4DPS}} }} | ||
;Attack 4 | ;Attack 4 | ||
− | :{{{attack4part|Body part?}}}<br>{{{attack4dmg|?}}} dmg ({{{attack4type|type?}}})<br>{{ticks|{{{attack4cool|0}}}}} on first strike}}<!-- | + | :{{{attack4part|Body part?}}}<br>{{{attack4dmg|?}}} dmg ({{{attack4type|type?}}})<br>{{#expr: ({{{attack1dmg|}}}*1.5-0.001) round 0}}% AP<br>{{ticks|{{{attack4cool|0}}}}} on first strike}}<!-- |
-->{{#if: {{{attack4stun|}}}|{{#set:Attack 4 Stun = {{{attack4stun|}}}}}<br>Stun for {{ticks|{{{attack4stun|0}}}*20}}}} | -->{{#if: {{{attack4stun|}}}|{{#set:Attack 4 Stun = {{{attack4stun|}}}}}<br>Stun for {{ticks|{{{attack4stun|0}}}*20}}}} | ||
Line 218: | Line 223: | ||
{{#ifeq: {{{type|}}} | Animals | | {{#ifeq: {{{type|}}} | Animals | | ||
{{#vardefine: MeatName | {{{meatname | {{#var:Name}} meat}}} }} | {{#vardefine: MeatName | {{{meatname | {{#var:Name}} meat}}} }} | ||
− | {{#vardefine: LeatherName | {{{leathername | {{#var:Name}} leather}}} }} | + | {{#vardefine: LeatherName | {{{leathername | {{#var:Name}} leather}}} }} |
{{#if: {{{is exotic species|}}}|{{#set: Is Exotic Species = true}}|{{#set: Is Exotic Species = false}}}}| | {{#if: {{{is exotic species|}}}|{{#set: Is Exotic Species = true}}|{{#set: Is Exotic Species = false}}}}| | ||
}} | }} | ||
− | {{#if: {{ | + | {{#if: {{#var:LeatherName }}| |
− | {{#set: | + | {{#set: Leather Name = {{#var:LeatherName}}}} }} |
+ | |||
− | + | {{#if: {{{bodysize|}}}|{{#set:Body Size = {{{bodysize|}}} }} | |
+ | ;Body Size | ||
+ | :{{{bodysize|}}} | ||
+ | |||
+ | {{#if:{{#var:MeatName}}|{{#vardefine: MeatYield | {{{meatyield | {{#expr: 90 * {{{bodysize}}} round 0}}}}} }} | ||
{{#set: Meat Yield = {{#var: MeatYield}} }} | {{#set: Meat Yield = {{#var: MeatYield}} }} | ||
;Meat Yield | ;Meat Yield | ||
− | :{{#var: MeatYield}} [[Meat|{{lc:{{#var:MeatName}}}}]] | + | :{{#var: MeatYield}} [[Meat|{{lc:{{#var:MeatName}}}}]]}} |
{{#vardefine: CarryingCapacity | {{#expr: 75 * {{{bodysize|}}} round0}} }} | {{#vardefine: CarryingCapacity | {{#expr: 75 * {{{bodysize|}}} round0}} }} | ||
Line 237: | Line 247: | ||
<!-- Use leatheryield when set, otherwise (incorrectly in some cases) assume 30 * bodysize --> | <!-- Use leatheryield when set, otherwise (incorrectly in some cases) assume 30 * bodysize --> | ||
<!-- See Property:Leather_Yield for details --> | <!-- See Property:Leather_Yield for details --> | ||
− | + | {{#if:{{#var:LeatherName}}|{{#vardefine: LeatherYield | {{{leatheryield | {{#expr: 30 * {{{bodysize}}} round 0}} }}} }} | |
{{#set: Leather Yield = {{#var: LeatherYield}} }} | {{#set: Leather Yield = {{#var: LeatherYield}} }} | ||
;Leather Yield | ;Leather Yield | ||
:{{#var: LeatherYield}} [[{{#var: LeatherName}}|{{lc:{{#var: LeatherName}}}}]] }} | :{{#var: LeatherYield}} [[{{#var: LeatherName}}|{{lc:{{#var: LeatherName}}}}]] }} | ||
+ | |||
+ | {{#vardefine: FilthRate | {{#expr: 1.25 * {{{bodysize|}}} * {{#if: {{{petness|}}}|{{#expr: 1 - {{{petness|}}} }}|1}} round2}} }} | ||
+ | {{#set: Animal Filth Rate = {{#var: FilthRate}} }} | ||
+ | ;{{H:title|link=no|The average amount of filth produced on constructed floors per 1000 cells walked by this creature.|Filth Rate}} | ||
+ | :{{#var: FilthRate}} | ||
+ | }} | ||
{{#if: {{{manhunter|}}}|{{#set:Turn Manhunter Chance When Attacked = {{{manhunter|}}} }} | {{#if: {{{manhunter|}}}|{{#set:Turn Manhunter Chance When Attacked = {{{manhunter|}}} }} | ||
Line 251: | Line 267: | ||
{{#if: {{{hungerrate|}}}|{{#set:Base Hunger Rate = {{{hungerrate|}}} }} | {{#if: {{{hungerrate|}}}|{{#set:Base Hunger Rate = {{{hungerrate|}}} }} | ||
− | ;Hunger Rate | + | ;{{H:title|link=no|Nutrition lost per day.|Hunger Rate}} |
− | :{{{hungerrate|}}}}} | + | :{{#expr: {{{hungerrate|}}} * 1.6 round2}} }} |
{{#if: {{{diet|}}}|{{#set:Diet ={{{diet|}}} }} | {{#if: {{{diet|}}}|{{#set:Diet ={{{diet|}}} }} | ||
Line 273: | Line 289: | ||
}} | }} | ||
− | {{#if: {{{ | + | {{#if: {{{wildness|}}}|{{#set:Wildness = {{{wildness|}}} }} |
+ | ;{{H:title|link=no|Wilder creatures are naturally more difficult to tame, train, and handle.|Wildness}} | ||
+ | :{{#expr: {{{wildness|}}} * 100 round0}}% | ||
+ | |||
+ | {{#vardefine: MinHandlingSkill | | ||
+ | {{#ifexpr: | ||
+ | {{{wildness|}}} < .2|0 | ||
+ | |{{#ifexpr: {{{wildness|}}} < .45|1 | ||
+ | |{{#ifexpr: {{{wildness|}}} < .55|4 | ||
+ | |{{#ifexpr: {{{wildness|}}} < .75|5 | ||
+ | |{{#ifexpr: {{{wildness|}}} < .8|7 | ||
+ | |{{#ifexpr: {{{wildness|}}} < .9|8 | ||
+ | |{{#ifexpr: {{{wildness|}}} < .97|9 | ||
+ | |10}} }} }} }} }} }} }} }} | ||
+ | {{#set:Minimum Handling Skill = {{#var: MinHandlingSkill}} }} | ||
+ | {{#ifeq: {{#var: MinHandlingSkill}}|0|| | ||
;{{H:title|link=no|This creature cannot be tamed, trained, or commanded by anyone with less than this skill in animals.|Minimum Handling Skill}} | ;{{H:title|link=no|This creature cannot be tamed, trained, or commanded by anyone with less than this skill in animals.|Minimum Handling Skill}} | ||
− | :{{ | + | :{{#var: MinHandlingSkill}} }} |
+ | }} | ||
− | {{#if: {{{ | + | {{#if: {{{petness|}}}|{{#set: Petness = {{{petness|}}} }} }} |
− | |||
− | |||
{{#ifeq: {{{predator|}}}|true|{{#set:Is Predator = true}}|}} | {{#ifeq: {{{predator|}}}|true|{{#set:Is Predator = true}}|}} | ||
Line 295: | Line 325: | ||
{{#if: {{{wool|}}}| | {{#if: {{{wool|}}}| | ||
{{#set: Wool Amount = {{{wool|}}}}} | {{#set: Wool Amount = {{{wool|}}}}} | ||
− | {{#vardefine: WoolName | {{{ | + | {{#vardefine: WoolName | {{{woolname | {{#var:Name}} wool}}} }} |
+ | {{#set: Wool Name = {{#var:WoolName}}}} | ||
;Wool Amount | ;Wool Amount | ||
:{{{wool|}}} [[{{#var: WoolName}}|{{lc:{{#var: WoolName}}}}]] | :{{{wool|}}} [[{{#var: WoolName}}|{{lc:{{#var: WoolName}}}}]] | ||
Line 304: | Line 335: | ||
;Shearing Interval | ;Shearing Interval | ||
:{{{sheartime|}}} days}} | :{{{sheartime|}}} days}} | ||
+ | |||
+ | {{#if: {{{nuzzleMtb|}}}|{{#set: Nuzzle Mtb Hours = {{{nuzzleMtb|}}} }} | ||
+ | ;{{H:title|link=no|How often an animal will nuzzle friendly colonists, on average.|Nuzzle Interval}} | ||
+ | {{#ifexpr: {{{nuzzleMtb|}}} <= 24 | ||
+ | |{{#switch: {{{nuzzleMtb|}}} | ||
+ | |24 = :1 day | ||
+ | |1 = :1 hour | ||
+ | |#default = :{{{nuzzleMtb|}}} hours}} | ||
+ | |:{{#expr: {{{nuzzleMtb|}}} / 24 round1}} days}} }} | ||
+ | |||
{{#if: {{{eggsmin|}}}|{{#set: Eggs Per Clutch Minimum = {{{eggsmin|}}} }} | {{#if: {{{eggsmin|}}}|{{#set: Eggs Per Clutch Minimum = {{{eggsmin|}}} }} | ||
Line 316: | Line 357: | ||
{{#if: {{{eggs_avg|}}}|{{#set: Eggs Per Clutch Average = {{{eggs_avg|}}} }} }} | {{#if: {{{eggs_avg|}}}|{{#set: Eggs Per Clutch Average = {{{eggs_avg|}}} }} }} | ||
+ | |||
+ | {{#if: {{{eggs_unfertilized|}}}|{{#set: Can Lay Unfertilized Eggs = {{{eggs_unfertilized|}}} }} | ||
+ | ;Can Lay Unfertilized Eggs | ||
+ | :{{{eggs_unfertilized|}}} }} | ||
{{#if: {{{gestation|}}}|{{#set: Gestation Period Days = {{{gestation|}}} }} | {{#if: {{{gestation|}}}|{{#set: Gestation Period Days = {{{gestation|}}} }} | ||
Line 331: | Line 376: | ||
{{#if: {{{maturityage|}}}|{{#set: Maturity Age = {{{maturityage|}}} }} | {{#if: {{{maturityage|}}}|{{#set: Maturity Age = {{{maturityage|}}} }} | ||
;Maturity Age | ;Maturity Age | ||
− | :{{{maturityage|}}} }} | + | :{{{maturityage|}}} years {{#ifexpr: {{{maturityage|}}} < 1 | ({{formatnum: {{#expr: ({{formatnum:{{{maturityage|}}}|R}}*60)round 0}} }} days) }} |}} |
+ | |||
+ | {{#if: {{{min comfortable temperature|}}}|{{#set: Min Comfortable Temperature = {{{min comfortable temperature|}}} }} | ||
+ | {{#if: {{{max comfortable temperature|}}}|{{#set: Max Comfortable Temperature = {{{max comfortable temperature|}}} }} | ||
+ | ;Comfortable Temp Range | ||
+ | :{{{min comfortable temperature|}}}°C - {{{max comfortable temperature|}}}°C}} | ||
+ | }} | ||
{{#if: {{{livesin_aridshrubland|}}}|{{#set: Lives in Arid Shrubland = true}} }} | {{#if: {{{livesin_aridshrubland|}}}|{{#set: Lives in Arid Shrubland = true}} }} | ||
Line 342: | Line 393: | ||
{{#if: {{{livesin_tropicalrainforest|}}}|{{#set: Lives in Tropical Rainforest = true}} }} | {{#if: {{{livesin_tropicalrainforest|}}}|{{#set: Lives in Tropical Rainforest = true}} }} | ||
{{#if: {{{livesin_tundra|}}}|{{#set: Lives in Tundra = true}} }} | {{#if: {{{livesin_tundra|}}}|{{#set: Lives in Tundra = true}} }} | ||
+ | |||
Line 366: | Line 418: | ||
{{#if: {{{facility|}}}|{{#set:Facility = {{{facility|}}} }}}} | {{#if: {{{facility|}}}|{{#set:Facility = {{{facility|}}} }}}} | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
<!--Floors--> | <!--Floors--> | ||
Line 424: | Line 459: | ||
:{{{mode|}}}}} | :{{{mode|}}}}} | ||
− | + | ||
− | {{#if: {{{damage type|}}}|{{#set:Damage Type = {{{damage type|} | + | |
+ | |||
+ | |||
+ | {{#if: {{{damage type|}}}|{{#set:Damage Type = {{{damage type|}}} }} | ||
;Dmg Type | ;Dmg Type | ||
− | :{{{damage type| | + | :{{{damage type|}}} }} |
+ | {{#if: {{{damage|}}}| | ||
<!--the following determines if the item is a melee weapon, else assumes it's ranged, then sets relevant property--> | <!--the following determines if the item is a melee weapon, else assumes it's ranged, then sets relevant property--> | ||
Line 453: | Line 492: | ||
}} | }} | ||
− | + | {{#if: {{{armorPenetration|}}}|{{#set:ArmorPenetration= {{{armorPenetration|}}} }} | |
− | |||
− | {{#if: {{{ | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
;Armor penetration | ;Armor penetration | ||
:{{{armorPenetration|}}}%}} | :{{{armorPenetration|}}}%}} | ||
Line 589: | Line 555: | ||
:{{ #expr: ((( {{{damage|}}} * {{#if: {{{burst|}}}|{{{burst|}}}|1}} ) / (( {{#if: {{{cooldown|}}}|{{{cooldown|}}}|1}} + {{#if: {{{warmup|}}}|{{{warmup|}}}|0}} + ( {{#if: {{{burstTicks|}}}|{{{burstTicks|}}}|1}} * ( {{#if: {{{burst|}}}|{{{burst|}}}|1}} - 1 ))) / 60))) round2 }} {{#if: {{{accuracyTouch|}}}| {{#if: {{{accuracyShort|}}}| {{#if: {{{accuracyMedium|}}}| {{#if: {{{accuracyLong|}}}|({{ #expr: ((( {{{damage|}}} * {{#if: {{{burst|}}}|{{{burst|}}}|1}} ) / (( {{#if: {{{cooldown|}}}|{{{cooldown|}}}|1}} + {{#if: {{{warmup|}}}|{{{warmup|}}}|0}} + ( {{#if: {{{burstTicks|}}}|{{{burstTicks|}}}|1}} * ( {{#if: {{{burst|}}}|{{{burst|}}}|1}} - 1 ))) / 60)) * ({{{accuracyAvg|}}} / 100)) round2 }})}}}}}}}} | :{{ #expr: ((( {{{damage|}}} * {{#if: {{{burst|}}}|{{{burst|}}}|1}} ) / (( {{#if: {{{cooldown|}}}|{{{cooldown|}}}|1}} + {{#if: {{{warmup|}}}|{{{warmup|}}}|0}} + ( {{#if: {{{burstTicks|}}}|{{{burstTicks|}}}|1}} * ( {{#if: {{{burst|}}}|{{{burst|}}}|1}} - 1 ))) / 60))) round2 }} {{#if: {{{accuracyTouch|}}}| {{#if: {{{accuracyShort|}}}| {{#if: {{{accuracyMedium|}}}| {{#if: {{{accuracyLong|}}}|({{ #expr: ((( {{{damage|}}} * {{#if: {{{burst|}}}|{{{burst|}}}|1}} ) / (( {{#if: {{{cooldown|}}}|{{{cooldown|}}}|1}} + {{#if: {{{warmup|}}}|{{{warmup|}}}|0}} + ( {{#if: {{{burstTicks|}}}|{{{burstTicks|}}}|1}} * ( {{#if: {{{burst|}}}|{{{burst|}}}|1}} - 1 ))) / 60)) * ({{{accuracyAvg|}}} / 100)) round2 }})}}}}}}}} | ||
{{#set:Maximum DPS={{ #expr: ((( {{{damage|}}} * {{#if: {{{burst|}}}|{{{burst|}}}|1}} ) / (( {{#if: {{{cooldown|}}}|{{{cooldown|}}}|1}} + {{#if: {{{warmup|}}}|{{{warmup|}}}|0}} + ( {{#if: {{{burstTicks|}}}|{{{burstTicks|}}}|1}} * ( {{#if: {{{burst|}}}|{{{burst|}}}|1}} - 1 ))) / 60))) round2 }}}} | {{#set:Maximum DPS={{ #expr: ((( {{{damage|}}} * {{#if: {{{burst|}}}|{{{burst|}}}|1}} ) / (( {{#if: {{{cooldown|}}}|{{{cooldown|}}}|1}} + {{#if: {{{warmup|}}}|{{{warmup|}}}|0}} + ( {{#if: {{{burstTicks|}}}|{{{burstTicks|}}}|1}} * ( {{#if: {{{burst|}}}|{{{burst|}}}|1}} - 1 ))) / 60))) round2 }}}} | ||
− | {{#set: | + | {{#set:Average DPS={{#if: {{{accuracyTouch|}}}| {{#if: {{{accuracyShort|}}}| {{#if: {{{accuracyMedium|}}}| {{#if: {{{accuracyLong|}}}|{{#expr: ((( {{{damage|}}} * {{#if: {{{burst|}}}|{{{burst|}}}|1}} ) / (( {{#if: {{{cooldown|}}}|{{{cooldown|}}}|1}} + {{#if: {{{warmup|}}}|{{{warmup|}}}|0}} + ( {{#if: {{{burstTicks|}}}|{{{burstTicks|}}}|1}} * ( {{#if: {{{burst|}}}|{{{burst|}}}|1}} - 1 ))) / 60)) * ({{{accuracyAvg|}}} / 100)) round 2 }}}}}}}}}}}} |
}} | }} | ||
Line 596: | Line 562: | ||
:{{{stoppingPower|}}}}} | :{{{stoppingPower|}}}}} | ||
− | |||
− | |||
− | |||
− | {{#if:{{{ | + | <!-- New melee starting from Beta 18 --> |
− | {{#if: {{{ | + | |
− | ; | + | {{#if: {{{meleeattack1dmg|}}}{{{meleeattack1type|}}}{{{meleeattack1part|}}}{{{meleeattack1cool|}}}| |
− | :{{{ | + | {{#set:Attack 1 Damage = {{{meleeattack1dmg|}}} }} |
+ | {{#set:Attack 1 Type = {{{meleeattack1type|}}} }} | ||
+ | {{#set:Attack 1 Part = {{{meleeattack1part|}}} }} | ||
+ | {{#set:Attack 1 Cooldown = {{{meleeattack1cool|}}} }} | ||
+ | {{#set:Attack 1 AP = {{{meleeattack1ap|}}} }} | ||
+ | {{#vardefine: MeleeAttack1DPS | {{#expr: {{{meleeattack1dmg|}}} / ({{{meleeattack1cool}}}) }} }} | ||
+ | {{#vardefine: MeleeAttack1Chance | {{#expr: {{{meleeattack1dmg|}}} ^ 2 }} }} | ||
+ | ;Melee Attack{{#if: {{{meleeattack1dmg|}}}| 1}} | ||
+ | :{{{meleeattack1part|Body part?}}}<br>{{{meleeattack1dmg|?}}} dmg ({{{meleeattack1type|type?}}})<br>{{{meleeattack1cool|0}}} seconds cooldown <br>{{{meleeattack1ap|0}}}% armor penetration}} | ||
+ | |||
+ | {{#if: {{{meleeattack2dmg|}}}{{{meleeattack2type|}}}{{{meleeattack2part|}}}{{{meleeattack2cool|}}}| | ||
+ | {{#set:Attack 2 Damage = {{{meleeattack2dmg|}}} }} | ||
+ | {{#set:Attack 2 Type = {{{meleeattack2type|}}} }} | ||
+ | {{#set:Attack 2 Part = {{{meleeattack2part|}}} }} | ||
+ | {{#set:Attack 2 Cooldown = {{{meleeattack2cool|}}} }} | ||
+ | {{#set:Attack 2 AP = {{{meleeattack2ap|}}} }} | ||
+ | {{#vardefine: MeleeAttack2DPS | {{#expr: {{{meleeattack2dmg|}}} / ({{{meleeattack2cool}}}) }} }} | ||
+ | {{#vardefine: MeleeAttack2Chance | {{#expr: {{{meleeattack2dmg|}}} ^ 2 }} }} | ||
+ | ;Melee Attack 2{{#if: {{{meleeattack2dmg|}}}| }} | ||
+ | :{{{meleeattack2part|Body part?}}}<br>{{{meleeattack2dmg|?}}} dmg ({{{meleeattack2type|type?}}})<br>{{{meleeattack2cool|0}}} seconds cooldown <br>{{{meleeattack2ap|0}}}% armor penetration}} | ||
+ | |||
+ | {{#if: {{{meleeattack3dmg|}}}{{{meleeattack3type|}}}{{{meleeattack3part|}}}{{{meleeattack3cool|}}}| | ||
+ | {{#set:Attack 3 Damage = {{{meleeattack3dmg|}}} }} | ||
+ | {{#set:Attack 3 Type = {{{meleeattack3type|}}} }} | ||
+ | {{#set:Attack 3 Part = {{{meleeattack3part|}}} }} | ||
+ | {{#set:Attack 3 Cooldown = {{{meleeattack3cool|}}} }} | ||
+ | {{#set:Attack 3 AP = {{{meleeattack3ap|}}} }} | ||
+ | {{#vardefine: MeleeAttack3DPS | {{#expr: {{{meleeattack3dmg|}}} / ({{{meleeattack3cool}}}) }} }} | ||
+ | {{#vardefine: MeleeAttack3Chance | {{#expr: {{{meleeattack3dmg|}}} ^ 2 }} }} | ||
+ | ;Melee Attack 3{{#if: {{{meleeattack3dmg|}}}| }} | ||
+ | :{{{meleeattack3part|Body part?}}}<br>{{{meleeattack3dmg|?}}} dmg ({{{meleeattack3type|type?}}})<br>{{{meleeattack3cool|0}}} seconds cooldown <br>{{{meleeattack3ap|0}}}% armor penetration}} | ||
+ | |||
+ | {{#if: {{{meleeattack4dmg|}}}{{{meleeattack4type|}}}{{{meleeattack4part|}}}{{{meleeattack4cool|}}}| | ||
+ | {{#set:Attack 4 Damage = {{{meleeattack4dmg|}}} }} | ||
+ | {{#set:Attack 4 Type = {{{meleeattack4type|}}} }} | ||
+ | {{#set:Attack 4 Part = {{{meleeattack4part|}}} }} | ||
+ | {{#set:Attack 4 Cooldown = {{{meleeattack4cool|}}} }} | ||
+ | {{#set:Attack 4 AP = {{{meleeattack4ap|}}} }} | ||
+ | {{#vardefine: MeleeAttack4DPS | {{#expr: {{{meleeattack4dmg|}}} / ({{{meleeattack4cool}}}) }} }} | ||
+ | {{#vardefine: MeleeAttack4Chance | {{#expr: {{{meleeattack4dmg|}}} ^ 2 }} }} | ||
+ | ;Melee Attack 4{{#if: {{{meleeattack3dmg|}}}| }} | ||
+ | :{{{meleeattack4part|Body part?}}}<br>{{{meleeattack4dmg|?}}} dmg ({{{meleeattack4type|type?}}})<br>{{{meleeattack4cool|0}}} seconds cooldown <br>{{{meleeattack4ap|0}}}% armor penetration}} | ||
+ | |||
+ | |||
+ | {{#if: {{{MeleeWeaponAverageDPS|}}}|{{#set:MeleeDPS= {{{MeleeWeaponAverageDPS|}}} }} | ||
+ | ;Melee Average DPS | ||
+ | :{{{MeleeWeaponAverageDPS|}}} }} | ||
+ | |||
+ | {{#if: {{{MeleeWeaponAverageAP|}}}|{{#set:MeleeAP= {{{MeleeWeaponAverageAP|}}} }} | ||
+ | ;Melee Average AP | ||
+ | :{{{MeleeWeaponAverageAP|}}}%}} | ||
+ | |||
+ | |||
+ | <!-- was supposed to calculate stuff but then decided it's just better to use the value provided by the game | ||
+ | |||
+ | {{#ifeq: {{#varexists: MeleeAttack3Chance}}|1| | ||
+ | {{#vardefine: TotalChance | {{#expr: ({{#var: MeleeAttack1Chance}} + {{#var: MeleeAttack2Chance}} + {{#var: MeleeAttack3Chance}}) }} }}| | ||
+ | {{#ifeq: {{#varexists: MeleeAttack2Chance}}|1| | ||
+ | {{#vardefine: TotalChance | {{#expr: ({{#var: MeleeAttack1Chance}} + {{#var: MeleeAttack2Chance}})}} }}| | ||
+ | {{#ifeq: {{#varexists: MeleeAttack1Chance}}|1| | ||
+ | {{#vardefine: TotalChance | {{#expr: {{#var: MeleeAttack1Chance}}}} }} }} }} }} | ||
+ | |||
+ | {{#ifeq: {{#varexists: MeleeAttack3DPS}}|1| | ||
+ | {{#vardefine: MeleeWeaponAverageDPS | {{#expr: ({{#var: MeleeAttack1DPS}} * {{#var: MeleeAttack1Chance}} + {{#var: MeleeAttack2DPS}} * {{#var: MeleeAttack2Chance}} + {{#var: MeleeAttack3DPS}} * {{#var: MeleeAttack3Chance}} ) / {{#var: TotalChance}} }} }}| | ||
+ | {{#ifeq: {{#varexists: MeleeAttack2DPS}}|1| | ||
+ | {{#vardefine: MeleeWeaponAverageDPS | {{#expr: ({{#var: MeleeAttack1DPS}} * {{#var: MeleeAttack1Chance}} + {{#var: meleeattack2dmg}} * {{#var: MeleeAttack2Chance}} ) / {{#var: TotalChance}} }} }}| | ||
+ | {{#ifeq: {{#varexists: MeleeAttack1DPS}}|1| | ||
+ | {{#vardefine: MeleeWeaponAverageDPS | {{#expr: {{#var: MeleeAttack1DPS}} }} }} }} }} }} | ||
+ | |||
+ | ---------- Line to separate the mess above from the other stuff below ---------- --> | ||
+ | |||
+ | |||
<!-- Work to make should be specified in *ticks*, like in the game files. This has been inconsistent in the past --> | <!-- Work to make should be specified in *ticks*, like in the game files. This has been inconsistent in the past --> | ||
Line 613: | Line 647: | ||
{{#if: {{{resources to make|}}}| | {{#if: {{{resources to make|}}}| | ||
;Resources to make | ;Resources to make | ||
− | :{{{resources to make|}}} | + | :{{{resources to make|}}} [[Category:Resource Update Needed]] |
+ | }} | ||
+ | |||
+ | {{#if: {{{stuff tags|}}}|{{#set:Stuff Tags = {{{stuff tags}}}}} | ||
+ | ;{{H:title|link=no|The types of resource that can be substituted for the generic resource type|Stuff tags}} | ||
+ | :{{{stuff tags|}}} | ||
}} | }} | ||
+ | |||
+ | {{#if: {{{resource 1|}}}|{{#set:Resource 1 = {{{resource 1|}}} }}}} | ||
+ | {{#if: {{{resource 2|}}}|{{#set:Resource 2 = {{{resource 2|}}} }}}} | ||
+ | {{#if: {{{resource 3|}}}|{{#set:Resource 3 = {{{resource 3|}}} }}}} | ||
+ | {{#if: {{{resource 4|}}}|{{#set:Resource 4 = {{{resource 4|}}} }}}} | ||
+ | {{#if: {{{resource 5|}}}|{{#set:Resource 5 = {{{resource 5|}}} }}}} | ||
+ | {{#if: {{{resource 6|}}}|{{#set:Resource 6 = {{{resource 6|}}} }}}} | ||
+ | {{#if: {{{resource 1 amount|}}}|{{#set:Resource 1 Amount = {{{resource 1 amount|}}} }}}} | ||
+ | {{#if: {{{resource 2 amount|}}}|{{#set:Resource 2 Amount = {{{resource 2 amount|}}} }}}} | ||
+ | {{#if: {{{resource 3 amount|}}}|{{#set:Resource 3 Amount = {{{resource 3 amount|}}} }}}} | ||
+ | {{#if: {{{resource 4 amount|}}}|{{#set:Resource 4 Amount = {{{resource 4 amount|}}} }}}} | ||
+ | {{#if: {{{resource 5 amount|}}}|{{#set:Resource 5 Amount = {{{resource 5 amount|}}} }}}} | ||
+ | {{#if: {{{resource 6 amount|}}}|{{#set:Resource 6 Amount = {{{resource 6 amount|}}} }}}} | ||
+ | |||
+ | {{#if: {{{resource 1|}}}| | ||
+ | ;Resources to make | ||
+ | :{{#ifeq: Stuff | {{{resource 1|}}} |{{Icon|buildingmat}}|{{Icon Small|{{{resource 1|}}}|16}}}} {{{resource 1 amount|}}} {{#if: {{{resource 2|}}}| + {{Icon Small|{{{resource 2|}}}|16}} {{{resource 2 amount|}}}|}} {{#if: {{{resource 3|}}}| + {{Icon Small|{{{resource 3|}}}|16}} {{{resource 3 amount|}}}|}}{{#if: {{{resource 4|}}}| + {{Icon Small|{{{resource 4|}}}|16}} {{{resource 4 amount|}}}|}}{{#if: {{{resource 5|}}}| + {{Icon Small|{{{resource 5|}}}|16}} {{{resource 5 amount|}}}|}}{{#if: {{{resource 6|}}}| + {{Icon Small|{{{resource 6|}}}|16}} {{{resource 6 amount|}}}|}} | ||
+ | |}} | ||
+ | |||
+ | <!---If resource 1 is set to stuff, but theres no stuff tags, make note of it---> | ||
+ | {{#ifeq: Stuff | {{{resource 1|}}} | {{#if: {{{stuff tags|}}}| | | ||
+ | ;{{H:title|link=no|The types of resource that can be substituted for the generic resource type|Stuff tags}} | ||
+ | :<span style="color:red">'''ERROR: NO STUFF TAGS'''</span> | ||
+ | }} | ||
+ | |}} | ||
{{#if: {{{deconstruct yield|}}}| | {{#if: {{{deconstruct yield|}}}| | ||
Line 620: | Line 684: | ||
:{{{deconstruct yield|}}} | :{{{deconstruct yield|}}} | ||
}} | }} | ||
+ | |||
+ | {{#if: {{{page verified for version|}}}|{{Verified|{{{page verified for version|}}}}}| {{Verified}} }} | ||
+ | |||
<br style="clear: both; height: 0px;" /> | <br style="clear: both; height: 0px;" /> | ||
</dl></div></div></includeonly><noinclude> | </dl></div></div></includeonly><noinclude> | ||
{{documentation}}</noinclude><!-- Add categories and interwikis to the /doc subpage, not here! --> | {{documentation}}</noinclude><!-- Add categories and interwikis to the /doc subpage, not here! --> |
Revision as of 03:25, 8 February 2021
This is a testing version of Template:Infobox main for trying out changes without breaking the site.
Example #1
Muffalo
"A large herding herbivore descended from buffalo and adapted for both cold and warm environments. While enraged muffalo are deadly, tamed muffalo are quite docile and can be used as pack animals.
Nobody is quite sure why they're blue - it might even be some early genetic modification test that just never got changed."
- Move Speed
- 4.50
- Mass - Young
- 29.4 kg
- Mass - Juvenile
- 73.5 kg
- Mass - Adult
- 147 kg
- Attack 1
- head
10 dmg (blunt)
15% AP
2.6 ticks (0.04 secs) - Attack 2
- left hoof
10 dmg (blunt)
15% AP
2 ticks (0.03 secs) - Attack 3
- right hoof
10 dmg (blunt)
15% AP
2 ticks (0.03 secs) - Attack 4
- Teeth
10 dmg (bite)
15% AP
2 ticks (0.03 secs) on first strike - Average DPS
- 175.27
- Body Size
- 2.1
- Meat Yield
- 189 muffalo meat
- Carrying Capacity
- 158
- Leather Yield
- 63 bluefur
- Filth Rate
- 2.63
- Manhunter Chance
- 1.3%
- Hunger Rate
- 1.36
- Diet
- herbivorous
- Life Expectancy
- 15
- Trainable Intelligence
- simple
- Wildness
- 60%
- Minimum Handling Skill
- 5
- Wool Amount
- 100 muffalo wool
- Shearing Interval
- 25 days
- Gestation Period
- 28 days
- Offspring Per Birth
- 1
- Maturity Age
- 0.5 years (30 days)
- Comfortable Temp Range
- -55°C - 45°C
{{infobox main/testing|animal| |name = Muffalo |image = Muffalo east.png |description = Desc |type = Animals |type2 = Wild |bodysize = 2.1 |healthscale = 1.75 |movespeed = 4.50 |attack1dmg = 10 |attack1type = blunt |attack1part = head |attack1cool = 156 |attack2dmg = 10 |attack2type = blunt |attack2part = left hoof |attack2cool = 120 |attack3dmg = 10 |attack3type = blunt |attack3part = right hoof |attack3cool = 120 |attack4dmg = 10 |attack4type = bite |attack4part = Teeth |attack4cool = 120 |attack4chance = 0.5 |leathername = bluefur |leatheryield = 63 |woolname = muffalo wool |wool = 100 |sheartime = 25 |manhunter = 0.013 |hungerrate = 0.85 |diet = herbivorous |trainable = simple |wildness = 0.6 |gestation = 28 |lifespan = 15 |offspring = 1 |massadult = 147 |maturityage = 0.5 |marketvalue = 300 |livesin_aridshrubland = true |livesin_borealforest = true |livesin_icesheet = true |livesin_seaice = true |livesin_temperateforest = true |livesin_tundra = true |min comfortable temperature = -55 |max comfortable temperature = 45 }}
The above documentation is transcluded from Template:Infobox main/testing/doc. (edit | history) Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages. Please add categories to the /doc subpage. Subpages of this template. |