Difference between revisions of "Template:Infobox main/testing"
Jump to navigation
Jump to search
(Updating testing page to current standard for future testing.) |
(First, very rough pass) |
||
Line 63: | Line 63: | ||
:{{#expr:{{{flammability|}}}*100}}%}} | :{{#expr:{{{flammability|}}}*100}}%}} | ||
− | <! | + | {{#if: {{{insulationcold|}}} {{{insulationheat|}}} {{{insulationcoldfactor|}}} {{{insulationheatfactor|}}} {{{armorsharp|}}} {{{armorblunt|}}} {{{armorheat|}}} {{{armorsharpfactor|}}} {{{armorbluntfactor|}}} {{{armorheatfactor|}}} {{{painshockthreshold|}}} {{{coverage|}}} {{{layer|}}}| |
+ | </dl>{{clear}} | ||
+ | <p class='subheading' style='height: 1.75em !important; padding: 0.25em 0 0.5em !important; margin: 0.5em 0 0.5em !important'>'''Apparel'''</p> | ||
+ | <dl> | ||
+ | }} | ||
{{#if: {{{insulationcold|}}}|{{#set:Insulation - Cold Base= {{{insulationcold|}}} }} | {{#if: {{{insulationcold|}}}|{{#set:Insulation - Cold Base= {{{insulationcold|}}} }} | ||
Line 118: | Line 122: | ||
<!-- All pawns (animals, humanoids, mechanoids) --> | <!-- All pawns (animals, humanoids, mechanoids) --> | ||
+ | |||
+ | {{#if: {{{bodysize|}}}|{{#set:Body Size = {{{bodysize|}}} }} | ||
+ | ;Body Size | ||
+ | :{{{bodysize|}}} | ||
{{#ifeq: {{{type|}}}|Animals|{{#set: Type = {{{type2|}}}}}}} | {{#ifeq: {{{type|}}}|Animals|{{#set: Type = {{{type2|}}}}}}} | ||
Line 137: | Line 145: | ||
:{{{massadult|}}} kg}} | :{{{massadult|}}} kg}} | ||
− | {{ | + | </dl>{{clear}} |
− | + | <p class='subheading' style='height: 1.75em !important; padding: 0.25em 0 0.5em !important; margin: 0.5em 0 0.5em !important'>'''Production'''</p> | |
− | + | <dl> | |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | ; | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | ; | ||
− | : | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
{{#ifeq: {{{type|}}} | Animals | | {{#ifeq: {{{type|}}} | Animals | | ||
Line 230: | Line 158: | ||
{{#set: Leather Name = {{#var:LeatherName}}}} }} | {{#set: Leather Name = {{#var:LeatherName}}}} }} | ||
− | |||
− | |||
− | |||
− | |||
{{#if:{{#var:MeatName}}|{{#vardefine: MeatYield | {{{meatyield | {{#expr: 90 * {{{bodysize}}} round 0}}}}} }} | {{#if:{{#var:MeatName}}|{{#vardefine: MeatYield | {{{meatyield | {{#expr: 90 * {{{bodysize}}} round 0}}}}} }} | ||
Line 257: | Line 181: | ||
:{{#var: FilthRate}} | :{{#var: FilthRate}} | ||
}} | }} | ||
+ | |||
+ | {{#if: {{{milk|}}}|{{#set: Milk Amount = {{{milk|}}} }} | ||
+ | ;[[Milk]] Amount | ||
+ | :{{{milk|}}} }} | ||
+ | |||
+ | {{#if: {{{milktime|}}}|{{#set: Milking Interval Days = {{{milktime|}}} }} | ||
+ | {{#set: Daily Milk Average = {{#expr: {{{milk|}}}/{{{milktime|}}}round2}} }} | ||
+ | ;Milking Interval | ||
+ | :{{{milktime|}}} days}} | ||
+ | |||
+ | {{#if: {{{wool|}}}| | ||
+ | {{#set: Wool Amount = {{{wool|}}}}} | ||
+ | {{#vardefine: WoolName | {{{woolname | {{#var:Name}} wool}}} }} | ||
+ | {{#set: Wool Name = {{#var:WoolName}}}} | ||
+ | ;Wool Amount | ||
+ | :{{{wool|}}} [[{{#var: WoolName}}|{{lc:{{#var: WoolName}}}}]] | ||
+ | }} | ||
+ | |||
+ | {{#if: {{{sheartime|}}}|{{#set: Shearing Interval Days = {{{sheartime|}}} }} | ||
+ | {{#set: Daily Wool Average = {{#expr: {{{wool|}}}/{{{sheartime}}}round2}} }} | ||
+ | ;Shearing Interval | ||
+ | :{{{sheartime|}}} days}} | ||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
{{#if: {{{manhunter|}}}|{{#set:Turn Manhunter Chance When Attacked = {{{manhunter|}}} }} | {{#if: {{{manhunter|}}}|{{#set:Turn Manhunter Chance When Attacked = {{{manhunter|}}} }} | ||
Line 312: | Line 265: | ||
{{#ifeq: {{{predator|}}}|true|{{#set:Is Predator = true}}|}} | {{#ifeq: {{{predator|}}}|true|{{#set:Is Predator = true}}|}} | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
{{#if: {{{nuzzleMtb|}}}|{{#set: Nuzzle Mtb Hours = {{{nuzzleMtb|}}} }} | {{#if: {{{nuzzleMtb|}}}|{{#set: Nuzzle Mtb Hours = {{{nuzzleMtb|}}} }} | ||
Line 344: | Line 274: | ||
|#default = :{{{nuzzleMtb|}}} hours}} | |#default = :{{{nuzzleMtb|}}} hours}} | ||
|:{{#expr: {{{nuzzleMtb|}}} / 24 round1}} days}} }} | |:{{#expr: {{{nuzzleMtb|}}} / 24 round1}} days}} }} | ||
− | |||
{{#if: {{{eggsmin|}}}|{{#set: Eggs Per Clutch Minimum = {{{eggsmin|}}} }} | {{#if: {{{eggsmin|}}}|{{#set: Eggs Per Clutch Minimum = {{{eggsmin|}}} }} | ||
Line 487: | Line 416: | ||
|Weapons/Row/Ranged/NoInclude=False | |Weapons/Row/Ranged/NoInclude=False | ||
}} }} |}} | }} }} |}} | ||
+ | |||
+ | </dl>{{clear}} | ||
+ | <p class='subheading' style='height: 1.75em !important; padding: 0.25em 0 0.5em !important; margin: 0.5em 0 0.5em !important'>'''Ranged Combat'''</p> | ||
+ | <dl> | ||
;Damage | ;Damage | ||
Line 562: | Line 495: | ||
:{{{stoppingPower|}}}}} | :{{{stoppingPower|}}}}} | ||
+ | |||
+ | </dl>{{clear}} | ||
+ | <p class='subheading' style='height: 1.75em !important; padding: 0.25em 0 0.5em !important; margin: 0.5em 0 0.5em !important'>'''Melee Combat'''</p> | ||
+ | <dl> | ||
+ | {{#if: {{{attack1dmg|}}}{{{attack1type|}}}{{{attack1part|}}}{{{attack1cool|}}}| | ||
+ | {{#set:Attack 1 Damage = {{{attack1dmg|}}} }} | ||
+ | {{#set:Attack 1 Type = {{{attack1type|}}} }} | ||
+ | {{#set:Attack 1 Part = {{{attack1part|}}} }} | ||
+ | {{#set:Attack 1 Cooldown = {{{attack1cool|}}} }} | ||
+ | {{#vardefine: Attack1DPS | {{#expr: {{{attack1dmg|}}} / ({{{attack1cool}}} / 60) }} }} | ||
+ | {{#set: Attack 1 DPS = {{#var: Attack1DPS}} }} | ||
+ | ;Attack{{#if: {{{attack2dmg|}}}| 1}} | ||
+ | :{{{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: {{{attack2dmg|}}}{{{attack2type|}}}{{{attack2part|}}}{{{attack2cool|}}}| | ||
+ | {{#set:Attack 2 Damage = {{{attack2dmg|}}} }} | ||
+ | {{#set:Attack 2 Type = {{{attack2type|}}} }} | ||
+ | {{#set:Attack 2 Part = {{{attack2part|}}} }} | ||
+ | {{#set:Attack 2 Cooldown = {{{attack2cool|}}} }} | ||
+ | {{#vardefine: Attack2DPS | {{#expr: {{{attack2dmg|}}} / ({{{attack2cool}}} / 60) }} }} | ||
+ | {{#set: Attack 2 DPS = {{#var: Attack2DPS}} }} | ||
+ | ;Attack 2 | ||
+ | :{{{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: {{{attack3dmg|}}}{{{attack3type|}}}{{{attack3part|}}}{{{attack3cool|}}}| | ||
+ | {{#set:Attack 3 Damage = {{{attack3dmg|}}} }} | ||
+ | {{#set:Attack 3 Type = {{{attack3type|}}} }} | ||
+ | {{#set:Attack 3 Part = {{{attack3part|}}} }} | ||
+ | {{#set:Attack 3 Cooldown = {{{attack3cool|}}} }} | ||
+ | {{#vardefine: Attack3DPS | {{#expr: {{{attack3dmg|}}} / ({{{attack3cool}}} / 60) }} }} | ||
+ | {{#set: Attack 3 DPS = {{#var: Attack3DPS}} }} | ||
+ | ;Attack 3 | ||
+ | :{{{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: {{{attack4dmg|}}}{{{attack4type|}}}{{{attack4part|}}}{{{attack4cool|}}}| | ||
+ | {{#set:Attack 4 Damage = {{{attack4dmg|}}} }} | ||
+ | {{#set:Attack 4 Type = {{{attack4type|}}} }} | ||
+ | {{#set:Attack 4 Part = {{{attack4part|}}} }} | ||
+ | {{#set:Attack 4 Cooldown = {{{attack4cool|}}} }} | ||
+ | {{#vardefine: Attack4DPS | {{#expr: {{{attack4dmg|}}} / ({{{attack4cool}}} / 60) }} }} | ||
+ | {{#set: Attack 4 DPS = {{#var: Attack4DPS}} }} | ||
+ | ;Attack 4 | ||
+ | :{{{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}}}} | ||
+ | |||
+ | {{#ifeq: {{#varexists: Attack4DPS}}|1| | ||
+ | {{#vardefine: MobAverageDPS | {{#expr: ({{#var: Attack1DPS}} + {{#var: Attack2DPS}} + {{#var: Attack3DPS}} + {{#var: Attack4DPS}})/4 * 0.62 round 2}} }}| | ||
+ | {{#ifeq: {{#varexists: Attack3DPS}}|1| | ||
+ | {{#vardefine: MobAverageDPS | {{#expr: ({{#var: Attack1DPS}} + {{#var: Attack2DPS}} + {{#var: Attack3DPS}})/3 * 0.62 round 2}} }}| | ||
+ | {{#ifeq: {{#varexists: Attack2DPS}}|1| | ||
+ | {{#vardefine: MobAverageDPS | {{#expr: ({{#var: Attack1DPS}} + {{#var: Attack2DPS}})/2 * 0.62 round 2}} }}| | ||
+ | {{#ifeq: {{#varexists: Attack1DPS}}|1| | ||
+ | {{#vardefine: MobAverageDPS | {{#expr: {{#var: Attack1DPS}} * 0.62 round 2}} }} }} }} }} }} | ||
+ | |||
+ | {{#ifeq: {{#varexists: MobAverageDPS}}|1| | ||
+ | ;Average DPS | ||
+ | :{{#var: MobAverageDPS}} | ||
+ | {{#set: Mob Average DPS = {{#var: MobAverageDPS}} }} }} | ||
+ | |||
+ | {{#if: {{{mobdamage|}}}|{{#set:Melee Damage Base = {{{mobdamage|}}} }} | ||
+ | ;Damage | ||
+ | :{{{mobdamage|}}}}} | ||
+ | |||
+ | {{#if: {{{mobdamagetype|}}}|{{#set:Melee Damage Def = {{{mobdamagetype|}}} }} | ||
+ | ;Damage Type | ||
+ | :{{{mobdamagetype|}}}}} | ||
+ | |||
+ | {{#if: {{{mobdamage2|}}}|{{#set:Melee Damage Base = {{{mobdamage2|}}} }} | ||
+ | ;Damage | ||
+ | :{{{mobdamage2|}}}}} | ||
+ | |||
+ | {{#if: {{{mobdamagetype2|}}}|{{#set:Melee Damage Def = {{{mobdamagetype2|}}} }} | ||
+ | ;Damage Type | ||
+ | :{{{mobdamagetype2|}}}}} | ||
+ | |||
+ | {{#if: {{{mobdamage3|}}}|{{#set:Melee Damage Base = {{{mobdamage3|}}} }} | ||
+ | ;Damage | ||
+ | :{{{mobdamage3|}}}}} | ||
+ | |||
+ | {{#if: {{{mobdamagetype3|}}}|{{#set:Melee Damage Def = {{{mobdamagetype3|}}} }} | ||
+ | ;Damage Type | ||
+ | :{{{mobdamagetype3|}}}}} | ||
+ | |||
+ | {{#if: {{{mobdamageaverage|}}}|{{#set:Average Melee Damage = {{{mobdamageaverage|}}}}}}} | ||
<!-- New melee starting from Beta 18 --> | <!-- New melee starting from Beta 18 --> | ||
+ | |||
{{#if: {{{meleeattack1dmg|}}}{{{meleeattack1type|}}}{{{meleeattack1part|}}}{{{meleeattack1cool|}}}| | {{#if: {{{meleeattack1dmg|}}}{{{meleeattack1type|}}}{{{meleeattack1part|}}}{{{meleeattack1cool|}}}| | ||
Line 637: | Line 658: | ||
---------- Line to separate the mess above from the other stuff below ---------- --> | ---------- Line to separate the mess above from the other stuff below ---------- --> | ||
− | + | {{#IF: {{{work to make|}}} {{{resources to make|}}} {{{stuff tags|}}} {{{deconstruct yield|}}} {{{resource 1|}}} {{{resource 2|}}}{{{resource 3|}}} {{{resource 4|}}} {{{resource 5|}}} {{{resource 6|}}} {{{resource 1 amount|}}} {{{resource 2 amount|}}} {{{resource 3 amount|}}} {{{resource 4 amount|}}} {{{resource 5 amount|}}} {{{resource 6 amount|}}} | | |
+ | </dl>{{clear}} | ||
+ | <p class='subheading' style='height: 1.75em !important; padding: 0.25em 0 0.5em !important; margin: 0.5em 0 0.5em !important'>'''Creation'''</p> | ||
+ | <dl> | ||
+ | }} | ||
<!-- 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 --> |
Revision as of 03:51, 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."
- Body Size
- 2.1
- Move Speed
- 4.50
- Mass - Young
- 29.4 kg
- Mass - Juvenile
- 73.5 kg
- Mass - Adult
- 147 kg
Production
- Meat Yield
- 189 muffalo meat
- Carrying Capacity
- 158
- Leather Yield
- 63 bluefur
- Filth Rate
- 2.63
- Wool Amount
- 100 muffalo wool
- Shearing Interval
- 25 days
- Manhunter Chance
- 1.3%
- Hunger Rate
- 1.36
- Diet
- herbivorous
- Life Expectancy
- 15
- Trainable Intelligence
- simple
- Wildness
- 60%
- Minimum Handling Skill
- 5
- Gestation Period
- 28 days
- Offspring Per Birth
- 1
- Maturity Age
- 0.5 years (30 days)
- Comfortable Temp Range
- -55°C - 45°C
Melee Combat
-
"blunt" is not in the list (Cut, Crush, Blunt, Poke, Demolish, Stab, Scratch, Toxic scratch, Bite, Toxic bite) of allowed values for the "Attack 1 Type" property.
- 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
{{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. |