Difference between revisions of "Template:Infobox main"
Arcangelus (talk | contribs) m (Minor edit that sets the property "Average Offspring Per Birth" at 1 by default IF a "offspring" is defined but not an average. As this only happens when offspring is 1, the main benefit is for templates (and consistency).) |
|||
(43 intermediate revisions by 4 users not shown) | |||
Line 149: | Line 149: | ||
:{{%| {{{spoiling rate per degree per tick|}}} }} | :{{%| {{{spoiling rate per degree per tick|}}} }} | ||
}} | }} | ||
+ | |||
+ | <!-- Other --> | ||
+ | {{#if: {{{rotatable|}}} | | ||
+ | {{#if: {{#var:setProperty}} | {{#set:Rotatable = {{{rotatable|}}} }} }} | ||
+ | ;Rotatable | ||
+ | :{{ucfirst:{{{rotatable|}}} }} | ||
+ | }} | ||
+ | |||
+ | {{#if: {{{path cost|}}} | | ||
+ | {{#if: {{#var:setProperty}} | {{#set:Path Cost = {{{path cost|}}} }} }} | ||
+ | ;Path Cost | ||
+ | :{{{path cost|}}} ({{%|1 / (1 + {{{path cost|}}} * 0.077) round 2}}) | ||
+ | }} | ||
+ | |||
+ | {{#if: {{{livesin_temperateforest|}}} | {{#if: {{#var:setProperty}} | {{#set:Lives In Temperate Forest = true }} }} }} | ||
+ | {{#if: {{{livesin_temperateswamp|}}} | {{#if: {{#var:setProperty}} | {{#set:Lives In Temperate Swamp = true }} }} }} | ||
+ | {{#if: {{{livesin_tropicalrainforest|}}} | {{#if: {{#var:setProperty}} | {{#set:Lives In Tropical Rainforest = true }} }} }} | ||
+ | {{#if: {{{livesin_tropicalswamp|}}} | {{#if: {{#var:setProperty}} | {{#set:Lives In Tropical Swamp = true }} }} }} | ||
+ | {{#if: {{{livesin_aridshrubland|}}} | {{#if: {{#var:setProperty}} | {{#set:Lives In Arid Shrubland = true }} }} }} | ||
+ | {{#if: {{{livesin_desert|}}} | {{#if: {{#var:setProperty}} | {{#set:Lives In Desert = true }} }} }} | ||
+ | {{#if: {{{livesin_extremedesert|}}} | {{#if: {{#var:setProperty}} | {{#set:Lives In Extreme Desert = true }} }} }} | ||
+ | {{#if: {{{livesin_borealforest|}}} | {{#if: {{#var:setProperty}} | {{#set:Lives In Boreal Forest = true }} }} }} | ||
+ | {{#if: {{{livesin_coldbog|}}} | {{#if: {{#var:setProperty}} | {{#set:Lives In Cold Bog = true }} }} }} | ||
+ | {{#if: {{{livesin_tundra|}}} | {{#if: {{#var:setProperty}} | {{#set:Lives In Tundra = true }} }} }} | ||
+ | {{#if: {{{livesin_icesheet|}}} | {{#if: {{#var:setProperty}} | {{#set:Lives In Ice Sheet = true }} }} }} | ||
+ | {{#if: {{{livesin_seaice|}}} | {{#if: {{#var:setProperty}} | {{#set:Lives In Sea Ice = true }} }} }} | ||
<!-- Refuelable --> | <!-- Refuelable --> | ||
+ | {{#if: {{{fuel filter|}}} {{{fuel capacity|}}} {{{fuel consumption rate|}}} | | ||
+ | </dl>{{clear}} | ||
+ | <p class='subheading' style='height: 1em !important; padding: 0.25em 0 0.5em !important'>Fuel</p> | ||
+ | <dl> | ||
{{#if: {{{fuel filter|}}} | | {{#if: {{{fuel filter|}}} | | ||
{{#if: {{#var:setProperty}} | {{#set:Fuel Filter = {{{fuel filter|}}} }} }} | {{#if: {{#var:setProperty}} | {{#set:Fuel Filter = {{{fuel filter|}}} }} }} | ||
− | ;Usable | + | ;Usable Item(s) |
:{{Icon Small|{{{fuel filter|}}}|16}} [[{{{fuel filter|}}}]] | :{{Icon Small|{{{fuel filter|}}}|16}} [[{{{fuel filter|}}}]] | ||
}} | }} | ||
Line 159: | Line 189: | ||
{{#if: {{{fuel capacity|}}} | | {{#if: {{{fuel capacity|}}} | | ||
{{#if: {{#var:setProperty}} | {{#set:Fuel Capacity = {{{fuel capacity|}}} }} }} | {{#if: {{#var:setProperty}} | {{#set:Fuel Capacity = {{{fuel capacity|}}} }} }} | ||
− | ;<abbr title="Maximum Capacity of Fuel in Units"> | + | ;<abbr title="Maximum Capacity of Fuel in Units">Capacity</abbr> |
:{{{fuel capacity|}}} | :{{{fuel capacity|}}} | ||
}} | }} | ||
Line 165: | Line 195: | ||
{{#if: {{{fuel consumption rate|}}} | | {{#if: {{{fuel consumption rate|}}} | | ||
{{#if: {{#var:setProperty}} | {{#set:Fuel Consumption Rate = {{{fuel consumption rate|}}} }} }} | {{#if: {{#var:setProperty}} | {{#set:Fuel Consumption Rate = {{{fuel consumption rate|}}} }} }} | ||
− | ;<abbr title="Units of Fuel Consumed per Day/Charge"> | + | ;<abbr title="Units of Fuel Consumed per Day/Charge">Consumption Rate</abbr> |
:{{{fuel consumption rate|}}} | :{{{fuel consumption rate|}}} | ||
+ | }} | ||
+ | |||
}} | }} | ||
<!-- Mineable --> | <!-- Mineable --> | ||
+ | {{#if: {{{mineable thing|}}} {{{mineable yield|}}} {{{mineable scatter commonality|}}} {{{mineable scatter lump size range|}}} | | ||
+ | </dl>{{clear}} | ||
+ | <p class='subheading' style='height: 1em !important; padding: 0.25em 0 0.5em !important'>Ore</p> | ||
+ | <dl> | ||
{{#if: {{{mineable thing|}}} | | {{#if: {{{mineable thing|}}} | | ||
{{#if: {{#var:setProperty}} | {{#set:Mineable Thing = {{{mineable thing|}}} }} }} | {{#if: {{#var:setProperty}} | {{#set:Mineable Thing = {{{mineable thing|}}} }} }} | ||
Line 177: | Line 213: | ||
{{#if: {{#var:setProperty}} | {{#set:Mineable Yield = {{{mineable yield|}}} }} }} | {{#if: {{#var:setProperty}} | {{#set:Mineable Yield = {{{mineable yield|}}} }} }} | ||
;Resource Base Yield | ;Resource Base Yield | ||
− | :{{{mineable | + | :{{Icon Small|{{{mineable thing|}}}||{{{mineable yield|}}}}} [[{{{mineable thing|}}}]] |
}} | }} | ||
Line 192: | Line 228: | ||
}} | }} | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
}} | }} | ||
− | |||
<!-- 3. BUILDING --> | <!-- 3. BUILDING --> | ||
Line 211: | Line 235: | ||
<p class='subheading' style='height: 1em !important; padding: 0.25em 0 0.5em !important; margin: 0.5em 0 0.5em !important'>Building</p> | <p class='subheading' style='height: 1em !important; padding: 0.25em 0 0.5em !important; margin: 0.5em 0 0.5em !important'>Building</p> | ||
<dl> | <dl> | ||
− | |||
{{#if: {{{size|}}} | {{#vardefine: size | {{#replace:{{#replace:{{#replace:{{#replace:{{#replace:{{#replace:{{{size|}}}|}}|×| × }}|*| × }}|x| × }}|ˣ| × }}|+| +}} }} | {{#if: {{{size|}}} | {{#vardefine: size | {{#replace:{{#replace:{{#replace:{{#replace:{{#replace:{{#replace:{{{size|}}}|}}|×| × }}|*| × }}|x| × }}|ˣ| × }}|+| +}} }} | ||
Line 301: | Line 324: | ||
<!-- Building - Furniture --> | <!-- Building - Furniture --> | ||
+ | {{#if: {{{glowradius|}}} | | ||
+ | {{#if: {{#var:setProperty}} | {{#set:Glow Radius = {{{glowradius|}}} }} }} | ||
+ | }} | ||
{{#if: {{{glowcolor|}}} | | {{#if: {{{glowcolor|}}} | | ||
+ | {{#if: {{#var:setProperty}} | {{#set:Glow Color = {{{glowcolor|}}} }} }} | ||
{{#vardefine:Red | {{#replace:{{#explode:{{{glowcolor|}}}|,|0}}|(}} }} | {{#vardefine:Red | {{#replace:{{#explode:{{{glowcolor|}}}|,|0}}|(}} }} | ||
{{#vardefine:Green| {{#explode:{{{glowcolor|}}}|,|1}} }} | {{#vardefine:Green| {{#explode:{{{glowcolor|}}}|,|1}} }} | ||
Line 403: | Line 430: | ||
;Efficiency | ;Efficiency | ||
:{{%| {{{efficiency|}}} }} | :{{%| {{{efficiency|}}} }} | ||
+ | }} | ||
+ | |||
+ | {{#if: {{{paintable|}}} | <!-- Paintable property. --> | ||
+ | {{#if: {{#var:setProperty}} | {{#set:Paintable= {{{paintable|}}} }} }} | ||
+ | ;Paintable | ||
+ | :{{ucfirst:{{{paintable|}}} }} | ||
}} | }} | ||
Line 412: | Line 445: | ||
}} | }} | ||
+ | }} | ||
− | <!-- | + | <!-- MECHANOID --> |
− | {{#if: {{{ | + | {{#if: {{{EMP resistance|}}} {{{bandwidth cost|}}} {{{wastepacks per recharge|}}} {{{control taking time|}}} {{{repair energy cost|}}} | |
</dl>{{clear}} | </dl>{{clear}} | ||
− | <p class='subheading' style='height: 1em !important; padding: 0.25em 0 0.5em !important; margin: 0.5em 0 0.5em !important'> | + | <p class='subheading' style='height: 1em !important; padding: 0.25em 0 0.5em !important; margin: 0.5em 0 0.5em !important'>Mechanoid</p> |
<dl> | <dl> | ||
+ | |||
+ | {{#if: {{{EMP resistance|}}} | | ||
+ | {{#if: {{#var:setProperty}} | {{#set:EMP Resistance = {{{EMP resistance|}}} }} }} | ||
+ | ;EMP Resistance | ||
+ | :{{%| {{{EMP resistance|}}} }} | ||
}} | }} | ||
− | {{#if: {{{insulationcold|}}} | | + | {{#if: {{{bandwidth cost|}}} | |
− | {{#if: {{#var:setProperty}} | {{#set:Insulation - Cold Base= {{{insulationcold|}}} }} }} | + | {{#if: {{#var:setProperty}} | {{#set:Bandwidth Cost = {{{bandwidth cost|}}} }} }} |
− | ;Insulation - Cold | + | ;Bandwidth Cost |
− | :{{Temperature| {{{insulationcold|}}} || delta}} | + | :{{{bandwidth cost|}}} |
+ | }} | ||
+ | |||
+ | {{#if: {{{wastepacks per recharge|}}} | | ||
+ | {{#if: {{#var:setProperty}} | {{#set:Wastepacks Per Recharge = {{{wastepacks per recharge|}}} }} }} | ||
+ | ;Wastepacks Per Recharge | ||
+ | :{{{wastepacks per recharge|}}} | ||
+ | }} | ||
+ | |||
+ | {{#if: {{{control taking time|}}} | | ||
+ | {{#if: {{#var:setProperty}} | {{#set:Control Taking Time = {{{control taking time|}}} }} }} | ||
+ | ;Control Taking Time | ||
+ | :{{{control taking time|}}}s | ||
+ | }} | ||
+ | |||
+ | {{#if: {{{repair energy cost|}}} | | ||
+ | {{#if: {{#var:setProperty}} | {{#set:repair energy cost = {{{repair energy cost|}}} }} }} | ||
+ | ;repair energy cost | ||
+ | :{{--|{{%| {{{repair energy cost|}}} }}}} / 100 {{HP}} | ||
+ | }} | ||
+ | |||
+ | }} | ||
+ | |||
+ | |||
+ | <!-- 4. APPAREL --> | ||
+ | {{#if: {{{insulationcold|}}} {{{insulationheat|}}} {{{insulationcoldfactor|}}} {{{insulationheatfactor|}}} {{{armorsharp|}}} {{{armorblunt|}}} {{{armorheat|}}} {{{armorsharpfactor|}}} {{{armorbluntfactor|}}} {{{armorheatfactor|}}} {{{painshockthreshold|}}} {{{coverage|}}} {{{layer|}}} | | ||
+ | </dl>{{clear}} | ||
+ | <p class='subheading' style='height: 1em !important; padding: 0.25em 0 0.5em !important; margin: 0.5em 0 0.5em !important'>{{#ifeq: {{{type|}}} | Gear | Apparel| Armor}}</p> | ||
+ | <dl> | ||
+ | |||
+ | {{#if: {{{insulationcold|}}} | | ||
+ | {{#if: {{#var:setProperty}} | {{#set:Insulation - Cold Base= {{{insulationcold|}}} }} }} | ||
+ | ;Insulation - Cold | ||
+ | :{{Temperature| {{{insulationcold|}}} || delta}} | ||
}} | }} | ||
Line 451: | Line 523: | ||
{{#if: {{{armorblunt|}}} | | {{#if: {{{armorblunt|}}} | | ||
− | {{#if: {{#var:setProperty}} | {{#set:Armor - Blunt= {{{armorblunt|}}} }} }} | + | {{#if: {{#var:setProperty}} | {{#set:Armor - Blunt = {{{armorblunt|}}} }} }} |
;Armor - Blunt | ;Armor - Blunt | ||
:{{{armorblunt|}}}% | :{{{armorblunt|}}}% | ||
Line 495: | Line 567: | ||
| #default = | | #default = | ||
}} | }} | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
{{#if: {{{coverage|}}} | | {{#if: {{{coverage|}}} | | ||
Line 514: | Line 579: | ||
:{{{layer|}}} | :{{{layer|}}} | ||
}} | }} | ||
+ | |||
+ | }} | ||
+ | |||
+ | {{#if: {{{lifestage|}}} | <!-- Was below the switch and above coverage. Taken outside "Appeal" as the Biomutation lance seems to use it. --> | ||
+ | {{#if: {{#var:setProperty}} | {{#set:Lifestage = {{{lifestage|}}} }} }} | ||
+ | ;Lifestage | ||
+ | :{{{lifestage|}}} | ||
+ | }} | ||
+ | |||
<!-- 5. PAWN STATS --> | <!-- 5. PAWN STATS --> | ||
<!-- Animal Health ---> | <!-- Animal Health ---> | ||
− | {{#if: {{{movespeed|}}} {{{massyoung|}}} {{{massjuvenile|}}} {{{massadult|}}} {{{healthscale|}}} {{{bodysize|}}} {{{ridingspeed|}}} {{{hungerrate|}}} {{{diet|}}} {{{lifespan|}}} {{{manhunter|}}} {{{manhuntertame|}}} {{{trainable|}}} {{{wildness|}}} {{{petness|}}} {{{predator|}}} {{{roamMtb|}}} {{{nuzzleMtb|}}} {{{maturityage|}}} {{{juvenileage|}}} {{{ | + | {{#if: {{{combatPower|}}} {{{movespeed|}}} {{{massyoung|}}} {{{massjuvenile|}}} {{{massadult|}}} {{{healthscale|}}} {{{bodysize|}}} {{{ridingspeed|}}} {{{hungerrate|}}} {{{diet|}}} {{{lifespan|}}} {{{manhunter|}}} {{{manhuntertame|}}} {{{trainable|}}} {{{wildness|}}} {{{petness|}}} {{{predator|}}} {{{roamMtb|}}} {{{nuzzleMtb|}}} {{{maturityage|}}} {{{juvenileage|}}} {{{psychic sensitivity|}}} {{{toxic resistance|}}} {{{toxic environment resistance|}}} | |
</dl>{{clear}} | </dl>{{clear}} | ||
<p class='subheading' style='height: 1em !important; padding: 0.25em 0 0.5em !important; margin: 0.5em 0 0.5em !important'>Pawn Stats</p> | <p class='subheading' style='height: 1em !important; padding: 0.25em 0 0.5em !important; margin: 0.5em 0 0.5em !important'>Pawn Stats</p> | ||
Line 528: | Line 602: | ||
;Combat Power | ;Combat Power | ||
:{{{combatPower}}} | :{{{combatPower}}} | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
}} | }} | ||
Line 545: | Line 613: | ||
{{#if: {{#var:setProperty}} | {{#set:Health Scale = {{{healthscale|}}} }} }} | {{#if: {{#var:setProperty}} | {{#set:Health Scale = {{{healthscale|}}} }} }} | ||
;Health Scale | ;Health Scale | ||
− | :{{{healthscale|}}} | + | :{{%|{{{healthscale|}}} }} {{HP}} |
}} | }} | ||
Line 553: | Line 621: | ||
:{{{bodysize|}}} | :{{{bodysize|}}} | ||
− | + | <!-- Moved outside as this is always used. There is no performance difference. --> | |
{{#vardefine:MassAdult | {{#expr: 60 * {{{bodysize}}} }} }} | {{#vardefine:MassAdult | {{#expr: 60 * {{{bodysize}}} }} }} | ||
{{#if: {{#var:setProperty}} | {{#set:Mass - Adult = {{#var:MassAdult}} }} }} | {{#if: {{#var:setProperty}} | {{#set:Mass - Adult = {{#var:MassAdult}} }} }} | ||
+ | {{#vardefine:PackCapacity | {{#expr: {{{bodysize|}}} * 35 }} }} | ||
+ | |||
+ | {{#ifeq: {{{type|}}} | Mechanoid | | ||
;Mass | ;Mass | ||
:{{#var:MassAdult}} kg | :{{#var:MassAdult}} kg | ||
− | |||
− | |||
{{#if: {{#var:setProperty}} | {{#set:Pack Capacity = {{#var:PackCapacity}} }} }} | {{#if: {{#var:setProperty}} | {{#set:Pack Capacity = {{#var:PackCapacity}} }} }} | ||
;Pack Capacity | ;Pack Capacity | ||
:{{#var:PackCapacity}} kg | :{{#var:PackCapacity}} kg | ||
+ | | | ||
+ | |||
+ | {{#ifeq: {{{type|}}} | Entity | | ||
+ | ;Mass | ||
+ | :{{#var:MassAdult}} kg | ||
| | | | ||
<!-- Most animal babies are 0.2 the size of the adults, but birds are 0.1 --> | <!-- Most animal babies are 0.2 the size of the adults, but birds are 0.1 --> | ||
Line 581: | Line 655: | ||
:{{#var:MassJuvenile}} kg | :{{#var:MassJuvenile}} kg | ||
− | |||
− | |||
;Mass - Adult | ;Mass - Adult | ||
:{{#var:MassAdult}} kg | :{{#var:MassAdult}} kg | ||
{{#ifeq: {{lc:{{{packanimal|}}} }} | true | | {{#ifeq: {{lc:{{{packanimal|}}} }} | true | | ||
− | |||
{{#if: {{#var:setProperty}} | {{#set:Pack Capacity = {{#var:PackCapacity}} }} }} | {{#if: {{#var:setProperty}} | {{#set:Pack Capacity = {{#var:PackCapacity}} }} }} | ||
;Pack Capacity | ;Pack Capacity | ||
:{{#var:PackCapacity}} kg | :{{#var:PackCapacity}} kg | ||
+ | }} | ||
}} | }} | ||
}} | }} | ||
− | {{#vardefine: CarryingCapacity | {{#expr: 75 * {{{bodysize|}}} round0}} }} | + | {{#ifeq: {{{type|}}} | Entity | | |
+ | {{#vardefine: CarryingCapacity | {{#expr: 75 * {{{bodysize|}}} -0.000001 round0}} }} | ||
{{#if: {{#var:setProperty}} | {{#set:Carrying Capacity = {{#var:CarryingCapacity}} }} }} | {{#if: {{#var:setProperty}} | {{#set:Carrying Capacity = {{#var:CarryingCapacity}} }} }} | ||
;Carrying Capacity | ;Carrying Capacity | ||
− | :{{#var:CarryingCapacity}} | + | :{{#var:CarryingCapacity}} |
}} | }} | ||
− | |||
− | |||
}} | }} | ||
Line 670: | Line 741: | ||
{{#vardefine: MinHandlingSkill | {{#if: {{{min handling skill|}}} | {{{min handling skill|}}} | {{#expr: | {{#vardefine: MinHandlingSkill | {{#if: {{{min handling skill|}}} | {{{min handling skill|}}} | {{#expr: | ||
− | + | {{#expr: | |
− | + | {{#ifexpr: {{{wildness|}}} < 0.151 | 0 | {{#expr: {{{wildness|}}}*10 - 0.01 - {{#ifexpr: {{{wildness|}}} > 0.7 | 0 | 1 }} round 0 }} }} | |
− | + | }} <!-- Changed to use the formula described in [[Minimum_Handling_Skill]]. The "-0.01" is to simulate the rounding half down. This could be changed to return values against a table, but this is clearer and seemlingly faster.--> | |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
{{#ifeq: {{#var:Name}} | Human | + 7 }} | {{#ifeq: {{#var:Name}} | Human | + 7 }} | ||
}} }} }} | }} }} }} | ||
+ | |||
{{#if: {{#var:setProperty}} | {{#set:Minimum Handling Skill = {{#var:MinHandlingSkill}} }} }} | {{#if: {{#var:setProperty}} | {{#set:Minimum Handling Skill = {{#var:MinHandlingSkill}} }} }} | ||
{{#ifeq: {{#var:MinHandlingSkill}}|0|| | {{#ifeq: {{#var:MinHandlingSkill}}|0|| | ||
Line 726: | Line 792: | ||
}} | }} | ||
+ | {{#if: {{{psychic sensitivity|}}} | | ||
+ | {{#if: {{#var:setProperty}} | {{#set:Psychic Sensitivity = {{{psychic sensitivity|}}} }} }} | ||
+ | ;Psychic Sensitivity | ||
+ | :{{%|{{{psychic sensitivity|}}} }} | ||
+ | }} | ||
+ | |||
+ | {{#if: {{{toxic resistance|}}} | | ||
+ | {{#if: {{#var:setProperty}} | {{#set:Toxic Resistance = {{{toxic resistance|}}} }} }} | ||
+ | ;Toxic Resistance | ||
+ | :{{%|{{{toxic resistance|}}} }} | ||
+ | }} | ||
+ | |||
+ | {{#if: {{{toxic environment resistance|}}} | | ||
+ | {{#if: {{#var:setProperty}} | {{#set:Toxic Environment Resistance = {{{toxic environment resistance|}}} }} }} | ||
+ | ;Toxic Environment Resistance | ||
+ | :{{%|{{{toxic environment resistance|}}} }} | ||
+ | }} | ||
{{#if: {{{min comfortable temperature|}}} | | {{#if: {{{min comfortable temperature|}}} | | ||
Line 735: | Line 818: | ||
}} }} | }} }} | ||
− | + | }} | |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
<!-- 6. PRODUCTION --> | <!-- 6. PRODUCTION --> | ||
Line 753: | Line 825: | ||
<p class='subheading' style='height: 1em !important; padding: 0.25em 0 0.5em !important; margin: 0.5em 0 0.5em !important'>Production</p> | <p class='subheading' style='height: 1em !important; padding: 0.25em 0 0.5em !important; margin: 0.5em 0 0.5em !important'>Production</p> | ||
<dl> | <dl> | ||
− | |||
{{#ifexpr: {{{meatyield|1}}} * {{{basemeatamount|1}}} | {{#ifexpr: {{{meatyield|1}}} * {{{basemeatamount|1}}} | ||
Line 776: | Line 847: | ||
;Meat Yield | ;Meat Yield | ||
:{{#switch: {{#var:MeatName}} | :{{#switch: {{#var:MeatName}} | ||
− | | Human meat = {{#var:MeatYield}} [[ | + | | Human meat = {{Icon Small|Human meat||{{#var:MeatYield}}}} [[Human meat]] |
− | | Insect meat = {{#var:MeatYield}} [[ | + | | Insect meat = {{Icon Small|Insect meat||{{#var:MeatYield}}}} [[Insect meat]] |
− | | Twisted meat = {{#var:MeatYield}} [[ | + | | Twisted meat = {{Icon Small|Twisted meat||{{#var:MeatYield}}}} [[Twisted meat]] |
− | | #default = {{#var:MeatYield}} [[Meat|{{lc:{{#var:MeatName}} }}]] | + | | #default = {{#if: {{{bodysize|}}} | {{#ifexpr: {{{bodysize|}}} < 0.7 | [[File:Meat small c.png|16px|{{#var:MeatName}}|link=Meat]] | [[File:Meat big c.png|16px|{{#var:MeatName}}|link=Meat]]}} }} {{#var:MeatYield}} [[Meat|{{lc:{{#var:MeatName}} }}]] |
}} | }} | ||
}} | }} | ||
Line 803: | Line 874: | ||
;Leather Yield | ;Leather Yield | ||
− | :{{#var: | + | : {{Icon Small|{{#var:LeatherName}}||{{#var:LeatherYield}}}} [[{{lc:{{#var:LeatherName}} }}]] |
}} | }} | ||
Line 811: | Line 882: | ||
{{#if: {{#var:setProperty}} | {{#set:Milk Name = {{#var:MilkName}} }} }} | {{#if: {{#var:setProperty}} | {{#set:Milk Name = {{#var:MilkName}} }} }} | ||
;Milk Amount | ;Milk Amount | ||
− | :{{{milk|}}} [[{{#var:MilkName}}|{{lc:{{#var:MilkName}} }}]] | + | :{{Icon Small|{{#var:MilkName}}||{{{milk|}}}}} [[{{#var:MilkName}}|{{lc:{{#var:MilkName}} }}]] |
}} | }} | ||
Line 827: | Line 898: | ||
{{#if: {{#var:setProperty}} | {{#set:Wool Name = {{#var:WoolName}} }} }} | {{#if: {{#var:setProperty}} | {{#set:Wool Name = {{#var:WoolName}} }} }} | ||
;Wool Amount | ;Wool Amount | ||
− | :{{ | + | :{{Icon Small|{{#var:WoolName}}||{{{wool|}}}}} [[{{lc:{{#var:WoolName}} }}]] |
}} | }} | ||
Line 870: | Line 941: | ||
{{#if: {{{offspring|}}} {{{avg offspring|}}} | | {{#if: {{{offspring|}}} {{{avg offspring|}}} | | ||
− | + | {{#if: {{#var:setProperty}} | | |
− | + | {{#set:Offspring Per Birth = {{{offspring|}}}|Average Offspring Per Birth = {{{avg offspring|1}}} }} | |
+ | }} | ||
;Offspring Per Birth | ;Offspring Per Birth | ||
:{{{offspring|}}} {{#if:{{{avg offspring|}}}|({{{avg offspring|}}} avg)}} | :{{{offspring|}}} {{#if:{{{avg offspring|}}}|({{{avg offspring|}}} avg)}} | ||
}} | }} | ||
+ | }} | ||
<!-- 7. INGESTION --> | <!-- 7. INGESTION --> | ||
Line 882: | Line 955: | ||
<p class='subheading' style='height: 1em !important; padding: 0.25em 0 0.5em !important; margin: 0.5em 0 0.5em !important'>Ingestion</p> | <p class='subheading' style='height: 1em !important; padding: 0.25em 0 0.5em !important; margin: 0.5em 0 0.5em !important'>Ingestion</p> | ||
<dl> | <dl> | ||
− | |||
{{#if: {{{nutrition|}}} | | {{#if: {{{nutrition|}}} | | ||
Line 937: | Line 1,009: | ||
:{{ticks| {{{ingestion time|}}} }} | :{{ticks| {{{ingestion time|}}} }} | ||
}} | }} | ||
− | + | }} | |
<!-- 8. STAT MODIFIERS (for Materials) --> | <!-- 8. STAT MODIFIERS (for Materials) --> | ||
Line 944: | Line 1,016: | ||
<p class='subheading' style='height: 1em !important; padding: 0.25em 0 0.5em !important; margin: 0.5em 0 0.5em !important'>Stat Modifiers</p> | <p class='subheading' style='height: 1em !important; padding: 0.25em 0 0.5em !important; margin: 0.5em 0 0.5em !important'>Stat Modifiers</p> | ||
<dl> | <dl> | ||
− | |||
{{#if: {{{beauty factor|}}} | | {{#if: {{{beauty factor|}}} | | ||
Line 1,046: | Line 1,117: | ||
;Rest Effectiveness | ;Rest Effectiveness | ||
:×{{{rest effectiveness factor|}}} | :×{{{rest effectiveness factor|}}} | ||
+ | }} | ||
}} | }} | ||
+ | <!-- MECHANITOR --> | ||
+ | {{#if: {{{mech bandwidth|}}} {{{mech control groups|}}} {{{mech gestation speed|}}} {{{mech remote repair distance|}}} {{{mech remote shield distance|}}} {{{mech remote shield energy|}}} {{{mech repair speed|}}} {{{mech work speed offset|}}} | | ||
+ | </dl>{{clear}} | ||
+ | <p class='subheading' style='height: 1em !important; padding: 0.25em 0 0.5em !important; margin: 0.5em 0 0.5em !important'>Mechanitor</p> | ||
+ | <dl> | ||
− | <!-- 9. MEDICAL --> | + | {{#if: {{{mech bandwidth|}}} | |
+ | {{#if: {{#var:setProperty}} | {{#set:Mech Bandwidth = {{{mech bandwidth|}}} }} }} | ||
+ | ;Bandwidth | ||
+ | :{{+|{{{mech bandwidth|}}}}} | ||
+ | }} | ||
+ | |||
+ | {{#if: {{{mech control groups|}}} | | ||
+ | {{#if: {{#var:setProperty}} | {{#set:Mech Control Groups = {{{mech control groups|}}} }} }} | ||
+ | ;Control Groups | ||
+ | :{{+|{{{mech control groups|}}}}} | ||
+ | }} | ||
+ | |||
+ | {{#if: {{{mech gestation speed|}}} | | ||
+ | {{#if: {{#var:setProperty}} | {{#set:Mech Gestation Speed = {{{mech gestation speed|}}} }} }} | ||
+ | ;Gestation Speed | ||
+ | :{{+|{{%| {{{mech gestation speed|}}} }}}} | ||
+ | }} | ||
+ | |||
+ | {{#if: {{{mech remote repair distance|}}} | | ||
+ | {{#if: {{#var:setProperty}} | {{#set:Mech Remote Repair Distance = {{{mech remote repair distance|}}} }} }} | ||
+ | ;Remote Repair Distance | ||
+ | :{{{mech remote repair distance|}}} c | ||
+ | }} | ||
+ | |||
+ | {{#if: {{{mech remote shield distance|}}} | | ||
+ | {{#if: {{#var:setProperty}} | {{#set:Mech Remote Shield Distance = {{{mech remote shield distance|}}} }} }} | ||
+ | ;Remote Shield Distance | ||
+ | :{{{mech remote shield distance|}}} c | ||
+ | }} | ||
+ | |||
+ | {{#if: {{{mech remote shield energy|}}} | | ||
+ | {{#if: {{#var:setProperty}} | {{#set:Mech Remote Shield Energy = {{{mech remote shield energy|}}} }} }} | ||
+ | ;Remote Shield Energy | ||
+ | :{{{mech remote shield energy|}}} | ||
+ | }} | ||
+ | |||
+ | {{#if: {{{mech repair speed|}}} | | ||
+ | {{#if: {{#var:setProperty}} | {{#set:Mech Repair Speed = {{{mech repair speed|}}} }} }} | ||
+ | ;Repair Speed | ||
+ | :{{+|{{%| {{{mech repair speed|}}} }}}} | ||
+ | }} | ||
+ | |||
+ | {{#if: {{{mech work speed offset|}}} | | ||
+ | {{#if: {{#var:setProperty}} | {{#set:Mech Work Speed Offset = {{{mech work speed offset|}}} }} }} | ||
+ | ;Work Speed Offset | ||
+ | :{{+|{{%| {{{mech work speed offset|}}} }}}} | ||
+ | }} | ||
+ | }} | ||
+ | |||
+ | <!-- 9. MEDICAL --> | ||
{{#if: {{{medical potency base|}}} {{{medical quality max|}}} | | {{#if: {{{medical potency base|}}} {{{medical quality max|}}} | | ||
</dl>{{clear}} | </dl>{{clear}} | ||
<p class='subheading' style='height: 1em !important; padding: 0.25em 0 0.5em !important; margin: 0.5em 0 0.5em !important'>Medical</p> | <p class='subheading' style='height: 1em !important; padding: 0.25em 0 0.5em !important; margin: 0.5em 0 0.5em !important'>Medical</p> | ||
<dl> | <dl> | ||
− | |||
{{#if: {{{medical potency base|}}} | | {{#if: {{{medical potency base|}}} | | ||
Line 1,067: | Line 1,192: | ||
:{{%| {{{medical quality max|}}} }} | :{{%| {{{medical quality max|}}} }} | ||
}} | }} | ||
− | + | }} | |
<!-- 10. PLANT STATS --> | <!-- 10. PLANT STATS --> | ||
Line 1,074: | Line 1,199: | ||
<p class='subheading' style='height: 1em !important; padding: 0.25em 0 0.5em !important; margin: 0.5em 0 0.5em !important'>Plant Stats</p> | <p class='subheading' style='height: 1em !important; padding: 0.25em 0 0.5em !important; margin: 0.5em 0 0.5em !important'>Plant Stats</p> | ||
<dl> | <dl> | ||
− | |||
{{#if: {{{grow days|}}} | | {{#if: {{{grow days|}}} | | ||
Line 1,132: | Line 1,256: | ||
}} | }} | ||
− | {{#if: {{{fertility sensitivity|}}} | | + | {{#if: {{{fertility sensitivity|}}} | <!-- Combined, due to prior redundant condition --> |
{{#if: {{#var:setProperty}} | {{#set:Fertility Sensitivity = {{{fertility sensitivity|}}} }} }} | {{#if: {{#var:setProperty}} | {{#set:Fertility Sensitivity = {{{fertility sensitivity|}}} }} }} | ||
;Fertility Sensitivity | ;Fertility Sensitivity | ||
:{{%| {{{fertility sensitivity|}}} }} | :{{%| {{{fertility sensitivity|}}} }} | ||
− | |||
− | |||
{{#if: {{#var:setProperty}} | {{#set:Min Grow Light = {{{min grow light|0.5}}} }} }} | {{#if: {{#var:setProperty}} | {{#set:Min Grow Light = {{{min grow light|0.5}}} }} }} | ||
;Min light to grow | ;Min light to grow | ||
Line 1,150: | Line 1,272: | ||
}} }} }} | }} }} }} | ||
+ | }} | ||
<!-- WEAPONS --> | <!-- WEAPONS --> | ||
− | <!-- 11. RANGED COMBAT --> | + | <!-- 11. RANGED COMBAT --> <!-- "Damage type" removed from this IF because it requires a defined "damage" field to be set. Replaced with "mode". --> |
− | {{#if: {{{ | + | {{#if: {{{mode|}}} {{{damage|}}} {{{armorPenetration|}}} {{{warmup|}}} {{{cooldown|}}} {{{range|}}} {{{minrange|}}} {{{accuracy|}}} {{{accuracyTouch|}}} {{{accuracyShort|}}} {{{accuracyMedium|}}} {{{accuracyLong|}}} {{{velocity|}}} {{{burst|}}} {{{burstTicks|}}} {{{missRadius|}}} {{{blastRadius|}}} {{{DPS|}}} {{{stoppingPower|}}} | |
</dl>{{clear}} | </dl>{{clear}} | ||
<p class='subheading' style='height: 1em !important; padding: 0.25em 0 0.5em !important; margin: 0.5em 0 0.5em !important'>Ranged Combat</p> | <p class='subheading' style='height: 1em !important; padding: 0.25em 0 0.5em !important; margin: 0.5em 0 0.5em !important'>Ranged Combat</p> | ||
<dl> | <dl> | ||
− | |||
{{#if: {{{mode|}}} | | {{#if: {{{mode|}}} | | ||
Line 1,218: | Line 1,340: | ||
:{{{accuracyTouch|}}}% - {{{accuracyShort|}}}% - {{{accuracyMedium|}}}% - {{{accuracyLong|}}}% | :{{{accuracyTouch|}}}% - {{{accuracyShort|}}}% - {{{accuracyMedium|}}}% - {{{accuracyLong|}}}% | ||
}} }} }} }} | }} }} }} }} | ||
− | |||
− | |||
− | |||
{{#if: {{{velocity|}}} | | {{#if: {{{velocity|}}} | | ||
Line 1,253: | Line 1,372: | ||
{{#if: {{{DPS|}}} | | {{#if: {{{DPS|}}} | | ||
− | {{#vardefine:maximumDPS | {{#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}} }} | + | {{#vardefine:maximumDPS | {{#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: {{#var:setProperty}} | {{#set:Maximum DPS = {{#var:maximumDPS}} }} }} | {{#if: {{#var:setProperty}} | {{#set:Maximum DPS = {{#var:maximumDPS}} }} }} | ||
+ | {{#vardefine:maximumBandolierDPS | {{#expr: ((( {{{damage|}}} * {{#if: {{{burst|}}} | {{{burst|}}} | 1 }} ) / (( {{#if: {{{cooldown|}}} | {{{cooldown|}}} | 1 }} * 0.8 + {{#if: {{{warmup|}}} | {{{warmup|}}} | 0 }} + ( {{#if: {{{burstTicks|}}} | {{{burstTicks|}}} | 1 }} * ( {{#if: {{{burst|}}} | {{{burst|}}}|1}} - 1 ) )) / 60) )) round2}} }} | ||
+ | {{#if: {{#var:setProperty}} | {{#set:Maximum Bandolier DPS = {{#var:maximumBandolierDPS}} }} }} | ||
+ | {{#vardefine:maximumTriggerhappyDPS | {{#expr: ((( {{{damage|}}} * {{#if: {{{burst|}}} | {{{burst|}}} | 1 }} ) / (( {{#if: {{{cooldown|}}} | {{{cooldown|}}} | 1 }} + {{#if: {{{warmup|}}} | {{{warmup|}}} | 0 }}*0.5 + ( {{#if: {{{burstTicks|}}} | {{{burstTicks|}}} | 1 }} * ( {{#if: {{{burst|}}} | {{{burst|}}}|1}} - 1 ) )) / 60) )) round2}} }} | ||
+ | {{#if: {{#var:setProperty}} | {{#set:Maximum Triggerhappy DPS = {{#var:maximumTriggerhappyDPS}} }} }} | ||
+ | {{#vardefine:maximumBandolierTriggerhappyDPS | {{#expr: ((( {{{damage|}}} * {{#if: {{{burst|}}} | {{{burst|}}} | 1 }} ) / (( {{#if: {{{cooldown|}}} | {{{cooldown|}}} | 1 }} * 0.8 + {{#if: {{{warmup|}}} | {{{warmup|}}} | 0 }}*0.5 + ( {{#if: {{{burstTicks|}}} | {{{burstTicks|}}} | 1 }} * ( {{#if: {{{burst|}}} | {{{burst|}}}|1}} - 1 ) )) / 60) )) round2}} }} | ||
+ | {{#if: {{#var:setProperty}} | {{#set:Maximum BandolierTriggerhappy DPS = {{#var:maximumBandolierTriggerhappyDPS}} }} }} | ||
;<abbr title="Formatted as: Maximum damage per second">DPS</abbr> | ;<abbr title="Formatted as: Maximum damage per second">DPS</abbr> | ||
:{{#var:maximumDPS}} | :{{#var:maximumDPS}} | ||
}} | }} | ||
− | |||
{{#if: {{{stoppingPower|}}} | | {{#if: {{{stoppingPower|}}} | | ||
Line 1,264: | Line 1,388: | ||
;<abbr title="Ability of a weapon to 'stagger' targets, slowing them down for a short while. Larger values allow the weapon to stagger targets with bigger body sizes.">Stopping power</abbr> | ;<abbr title="Ability of a weapon to 'stagger' targets, slowing them down for a short while. Larger values allow the weapon to stagger targets with bigger body sizes.">Stopping power</abbr> | ||
:{{{stoppingPower|}}} | :{{{stoppingPower|}}} | ||
+ | }} | ||
}} | }} | ||
+ | <!-- 12. MELEE COMBAT --> <!-- Reduced IF as some of these make no sense if the previous ones aren't defined.--> | ||
+ | {{#if: {{{attack1label|}}}{{{attack1labelNoLocation|}}}{{{attack1dmg|}}}{{{attack1ap|}}}{{{attack1type|}}}{{{attack1part|}}}{{{attack1cool|}}}<!-- | ||
+ | -->{{{attack2label|}}}{{{attack2labelNoLocation|}}}{{{attack2dmg|}}}{{{attack2ap|}}}{{{attack2type|}}}{{{attack2part|}}}{{{attack2cool|}}}<!-- | ||
+ | -->{{{attack3label|}}}{{{attack3labelNoLocation|}}}{{{attack3dmg|}}}{{{attack3ap|}}}{{{attack3type|}}}{{{attack3part|}}}{{{attack3cool|}}}<!-- | ||
+ | -->{{{attack4label|}}}{{{attack4labelNoLocation|}}}{{{attack4dmg|}}}{{{attack4ap|}}}{{{attack4type|}}}{{{attack4part|}}}{{{attack4cool|}}}<!-- | ||
+ | -->{{{attack5label|}}}{{{attack5labelNoLocation|}}}{{{attack5dmg|}}}{{{attack5ap|}}}{{{attack5type|}}}{{{attack5part|}}}{{{attack5cool|}}}<!-- | ||
+ | -->{{{attack6label|}}}{{{attack6labelNoLocation|}}}{{{attack6dmg|}}}{{{attack6ap|}}}{{{attack6type|}}}{{{attack6part|}}}{{{attack6cool|}}}<!-- | ||
+ | -->{{{attack7label|}}}{{{attack7labelNoLocation|}}}{{{attack7dmg|}}}{{{attack7ap|}}}{{{attack7type|}}}{{{attack7part|}}}{{{attack7cool|}}}<!-- | ||
+ | -->{{{meleeattack1dmg|}}}{{{meleeattack1type|}}}{{{meleeattack1part|}}}{{{meleeattack1cool|}}} {{{MeleeWeaponAverageDPS|}}} {{{MeleeWeaponAverageAP|}}}| | ||
− | |||
− | |||
</dl>{{clear}} | </dl>{{clear}} | ||
<p class='subheading' style='height: 1em !important; padding: 0.25em 0 0.5em !important; margin: 0.5em 0 0.5em !important'>Melee Combat</p> | <p class='subheading' style='height: 1em !important; padding: 0.25em 0 0.5em !important; margin: 0.5em 0 0.5em !important'>Melee Combat</p> | ||
<dl> | <dl> | ||
− | |||
− | <!-- Animal Melee Combat --> | + | <!-- Animal Melee Combat // This increments depth by 1. I deem the -2500 Preprocessor visited node count, -3000 Post-expand include size, and -100 template size worth it. --> |
{{#if: {{{attack1dmg|}}}{{{attack1type|}}}{{{attack1part|}}}{{{attack1cool|}}} | | {{#if: {{{attack1dmg|}}}{{{attack1type|}}}{{{attack1part|}}}{{{attack1cool|}}} | | ||
+ | {{#if: {{#var:setProperty}} | {{#set:Attack 1 Label = {{{attack1label|}}} }} }} | ||
+ | {{#if: {{#var:setProperty}} | {{#set:Attack 1 Label No Location = {{{attack1labelNoLocation|}}} }} }} | ||
{{#if: {{#var:setProperty}} | {{#set:Attack 1 Damage = {{{attack1dmg|}}} }} }} | {{#if: {{#var:setProperty}} | {{#set:Attack 1 Damage = {{{attack1dmg|}}} }} }} | ||
− | {{# | + | {{#vardefine: Attack1AP | {{{attack1ap|{{#expr: ({{{attack1dmg|}}}*1.5-0.001) round 0}} }}} }} |
+ | {{#if: {{#var:setProperty}} | {{#set:Attack 1 AP = {{#var:Attack1AP}} }} }} | ||
{{#if: {{#var:setProperty}} | {{#set:Attack 1 Type = {{ucfirst:{{{attack1type|}}} }} }} }} | {{#if: {{#var:setProperty}} | {{#set:Attack 1 Type = {{ucfirst:{{{attack1type|}}} }} }} }} | ||
{{#if: {{#var:setProperty}} | {{#set:Attack 1 Part = {{ucfirst:{{{attack1part|}}} }} }} }} | {{#if: {{#var:setProperty}} | {{#set:Attack 1 Part = {{ucfirst:{{{attack1part|}}} }} }} }} | ||
Line 1,285: | Line 1,419: | ||
{{#if: {{#var:setProperty}} | {{#set:Attack 1 DPS = {{#var:Attack1DPS}} }} }} | {{#if: {{#var:setProperty}} | {{#set:Attack 1 DPS = {{#var:Attack1DPS}} }} }} | ||
{{#if: {{#var:setProperty}} | {{#set:Attack 1 Stun = {{{attack1stun|}}} }} }} | {{#if: {{#var:setProperty}} | {{#set:Attack 1 Stun = {{{attack1stun|}}} }} }} | ||
+ | {{#if: {{#var:setProperty}} | {{#set:Attack 1 Ensure Linked Body Parts Group Always Usable = {{{attack1ensureLinkedBodyPartsGroupAlwaysUsable|}}} }} }} | ||
+ | {{#if: {{#var:setProperty}} | {{#set:Attack 1 Always Treat As Weapon = {{{attack1alwaysTreatAsWeapon|}}} }} }} | ||
;Attack{{#if: {{{attack2dmg|}}}| 1}} | ;Attack{{#if: {{{attack2dmg|}}}| 1}} | ||
− | :{{ucfirst:{{{attack1part|Body part?}}} }}<!-- | + | :{{#if: {{{attack1label|}}}|{{#if: {{{attack1labelNoLocation|}}}|{{ucfirst:{{{attack1label|}}}}} ({{ucfirst:{{{attack1labelNoLocation|}}}}})|{{ucfirst:{{{attack1label|}}} }} }}|{{ucfirst:{{{attack1part|Body part?}}}}} }}<!-- |
--><br/>{{{attack1dmg|?}}} dmg ([[Damage Types#{{ucfirst:{{{attack1type|}}} }}|{{ucfirst:{{{attack1type|type?}}} }}]])<!-- | --><br/>{{{attack1dmg|?}}} dmg ([[Damage Types#{{ucfirst:{{{attack1type|}}} }}|{{ucfirst:{{{attack1type|type?}}} }}]])<!-- | ||
--><br/>{{{attack1ap|{{#expr: ({{{attack1dmg|}}}*1.5-0.001) round 0}} }}}% {{AP}}<!-- | --><br/>{{{attack1ap|{{#expr: ({{{attack1dmg|}}}*1.5-0.001) round 0}} }}}% {{AP}}<!-- | ||
Line 1,294: | Line 1,430: | ||
{{#if: {{{attack2dmg|}}}{{{attack2type|}}}{{{attack2part|}}}{{{attack2cool|}}} | | {{#if: {{{attack2dmg|}}}{{{attack2type|}}}{{{attack2part|}}}{{{attack2cool|}}} | | ||
+ | {{#if: {{#var:setProperty}} | {{#set:Attack 2 Label = {{{attack2label|}}} }} }} | ||
+ | {{#if: {{#var:setProperty}} | {{#set:Attack 2 Label No Location = {{{attack2labelNoLocation|}}} }} }} | ||
{{#if: {{#var:setProperty}} | {{#set:Attack 2 Damage = {{{attack2dmg|}}} }} }} | {{#if: {{#var:setProperty}} | {{#set:Attack 2 Damage = {{{attack2dmg|}}} }} }} | ||
− | {{# | + | {{#vardefine: Attack2AP | {{{attack2ap|{{#expr: ({{{attack2dmg|}}}*1.5-0.001) round 0}} }}} }} |
+ | {{#if: {{#var:setProperty}} | {{#set:Attack 2 AP = {{#var:Attack2AP}} }} }} | ||
{{#if: {{#var:setProperty}} | {{#set:Attack 2 Type = {{ucfirst:{{{attack2type|}}} }} }} }} | {{#if: {{#var:setProperty}} | {{#set:Attack 2 Type = {{ucfirst:{{{attack2type|}}} }} }} }} | ||
{{#if: {{#var:setProperty}} | {{#set:Attack 2 Part = {{ucfirst:{{{attack2part|}}} }} }} }} | {{#if: {{#var:setProperty}} | {{#set:Attack 2 Part = {{ucfirst:{{{attack2part|}}} }} }} }} | ||
Line 1,303: | Line 1,442: | ||
{{#if: {{#var:setProperty}} | {{#set:Attack 2 DPS = {{#var:Attack2DPS}} }} }} | {{#if: {{#var:setProperty}} | {{#set:Attack 2 DPS = {{#var:Attack2DPS}} }} }} | ||
{{#if: {{#var:setProperty}} | {{#set:Attack 2 Stun = {{{attack2stun|}}} }} }} | {{#if: {{#var:setProperty}} | {{#set:Attack 2 Stun = {{{attack2stun|}}} }} }} | ||
+ | {{#if: {{#var:setProperty}} | {{#set:Attack 2 Ensure Linked Body Parts Group Always Usable = {{{attack2ensureLinkedBodyPartsGroupAlwaysUsable|}}} }} }} | ||
+ | {{#if: {{#var:setProperty}} | {{#set:Attack 2 Always Treat As Weapon = {{{attack2alwaysTreatAsWeapon|}}} }} }} | ||
;Attack 2 | ;Attack 2 | ||
− | :{{ucfirst:{{{attack2part|Body part?}}} }}<!-- | + | :{{#if: {{{attack2label|}}}|{{#if: {{{attack2labelNoLocation|}}}|{{ucfirst:{{{attack2label|}}}}} ({{ucfirst:{{{attack2labelNoLocation|}}}}})|{{ucfirst:{{{attack2label|}}} }} }}|{{ucfirst:{{{attack2part|Body part?}}}}} }}<!-- |
--><br/>{{{attack2dmg|?}}} dmg ([[Damage Types#{{ucfirst:{{{attack2type|}}} }}|{{ucfirst:{{{attack2type|type?}}} }}]])<!-- | --><br/>{{{attack2dmg|?}}} dmg ([[Damage Types#{{ucfirst:{{{attack2type|}}} }}|{{ucfirst:{{{attack2type|type?}}} }}]])<!-- | ||
--><br/>{{{attack2ap|{{#expr: ({{{attack2dmg|}}}*1.5-0.001) round 0}} }}}% {{AP}}<!-- | --><br/>{{{attack2ap|{{#expr: ({{{attack2dmg|}}}*1.5-0.001) round 0}} }}}% {{AP}}<!-- | ||
Line 1,312: | Line 1,453: | ||
{{#if: {{{attack3dmg|}}}{{{attack3type|}}}{{{attack3part|}}}{{{attack3cool|}}}| | {{#if: {{{attack3dmg|}}}{{{attack3type|}}}{{{attack3part|}}}{{{attack3cool|}}}| | ||
+ | {{#if: {{#var:setProperty}} | {{#set:Attack 3 Label = {{{attack3label|}}} }} }} | ||
+ | {{#if: {{#var:setProperty}} | {{#set:Attack 3 Label No Location = {{{attack3labelNoLocation|}}} }} }} | ||
{{#if: {{#var:setProperty}} | {{#set:Attack 3 Damage = {{{attack3dmg|}}} }} }} | {{#if: {{#var:setProperty}} | {{#set:Attack 3 Damage = {{{attack3dmg|}}} }} }} | ||
− | {{# | + | {{#vardefine: Attack3AP | {{{attack3ap|{{#expr: ({{{attack3dmg|}}}*1.5-0.001) round 0}} }}} }} |
+ | {{#if: {{#var:setProperty}} | {{#set:Attack 3 AP = {{#var:Attack3AP}} }} }} | ||
{{#if: {{#var:setProperty}} | {{#set:Attack 3 Type = {{ucfirst:{{{attack3type|}}} }} }} }} | {{#if: {{#var:setProperty}} | {{#set:Attack 3 Type = {{ucfirst:{{{attack3type|}}} }} }} }} | ||
{{#if: {{#var:setProperty}} | {{#set:Attack 3 Part = {{ucfirst:{{{attack3part|}}} }} }} }} | {{#if: {{#var:setProperty}} | {{#set:Attack 3 Part = {{ucfirst:{{{attack3part|}}} }} }} }} | ||
Line 1,321: | Line 1,465: | ||
{{#if: {{#var:setProperty}} | {{#set:Attack 3 DPS = {{#var:Attack3DPS}} }} }} | {{#if: {{#var:setProperty}} | {{#set:Attack 3 DPS = {{#var:Attack3DPS}} }} }} | ||
{{#if: {{#var:setProperty}} | {{#set:Attack 3 Stun = {{{attack3stun|}}} }} }} | {{#if: {{#var:setProperty}} | {{#set:Attack 3 Stun = {{{attack3stun|}}} }} }} | ||
+ | {{#if: {{#var:setProperty}} | {{#set:Attack 3 Ensure Linked Body Parts Group Always Usable = {{{attack3ensureLinkedBodyPartsGroupAlwaysUsable|}}} }} }} | ||
+ | {{#if: {{#var:setProperty}} | {{#set:Attack 3 Always Treat As Weapon = {{{attack3alwaysTreatAsWeapon|}}} }} }} | ||
;Attack 3 | ;Attack 3 | ||
− | :{{ucfirst:{{{attack3part|Body part?}}} }}<!-- | + | :{{#if: {{{attack3label|}}}|{{#if: {{{attack3labelNoLocation|}}}|{{ucfirst:{{{attack3label|}}}}} ({{ucfirst:{{{attack3labelNoLocation|}}}}})|{{ucfirst:{{{attack3label|}}} }} }}|{{ucfirst:{{{attack3part|Body part?}}}}} }}<!-- |
--><br/>{{{attack3dmg|?}}} dmg ([[Damage Types#{{ucfirst:{{{attack3type|}}} }}|{{ucfirst:{{{attack3type|type?}}} }}]])<!-- | --><br/>{{{attack3dmg|?}}} dmg ([[Damage Types#{{ucfirst:{{{attack3type|}}} }}|{{ucfirst:{{{attack3type|type?}}} }}]])<!-- | ||
--><br/>{{{attack3ap|{{#expr: ({{{attack3dmg|}}}*1.5-0.001) round 0}} }}}% {{AP}}<!-- | --><br/>{{{attack3ap|{{#expr: ({{{attack3dmg|}}}*1.5-0.001) round 0}} }}}% {{AP}}<!-- | ||
Line 1,330: | Line 1,476: | ||
{{#if: {{{attack4dmg|}}}{{{attack4type|}}}{{{attack4part|}}}{{{attack4cool|}}}| | {{#if: {{{attack4dmg|}}}{{{attack4type|}}}{{{attack4part|}}}{{{attack4cool|}}}| | ||
+ | {{#if: {{#var:setProperty}} | {{#set:Attack 4 Label = {{{attack4label|}}} }} }} | ||
+ | {{#if: {{#var:setProperty}} | {{#set:Attack 4 Label No Location = {{{attack4labelNoLocation|}}} }} }} | ||
{{#if: {{#var:setProperty}} | {{#set:Attack 4 Damage = {{{attack4dmg|}}} }} }} | {{#if: {{#var:setProperty}} | {{#set:Attack 4 Damage = {{{attack4dmg|}}} }} }} | ||
− | {{# | + | {{#vardefine: Attack4AP | {{{attack4ap|{{#expr: ({{{attack4dmg|}}}*1.5-0.001) round 0}} }}} }} |
+ | {{#if: {{#var:setProperty}} | {{#set:Attack 4 AP = {{#var:Attack4AP}} }} }} | ||
{{#if: {{#var:setProperty}} | {{#set:Attack 4 Type = {{ucfirst:{{{attack4type|}}} }} }} }} | {{#if: {{#var:setProperty}} | {{#set:Attack 4 Type = {{ucfirst:{{{attack4type|}}} }} }} }} | ||
{{#if: {{#var:setProperty}} | {{#set:Attack 4 Part = {{ucfirst:{{{attack4part|}}} }} }} }} | {{#if: {{#var:setProperty}} | {{#set:Attack 4 Part = {{ucfirst:{{{attack4part|}}} }} }} }} | ||
Line 1,339: | Line 1,488: | ||
{{#if: {{#var:setProperty}} | {{#set:Attack 4 DPS = {{#var:Attack4DPS}} }} }} | {{#if: {{#var:setProperty}} | {{#set:Attack 4 DPS = {{#var:Attack4DPS}} }} }} | ||
{{#if: {{#var:setProperty}} | {{#set:Attack 4 Stun = {{{attack4stun|}}} }} }} | {{#if: {{#var:setProperty}} | {{#set:Attack 4 Stun = {{{attack4stun|}}} }} }} | ||
+ | {{#if: {{#var:setProperty}} | {{#set:Attack 4 Ensure Linked Body Parts Group Always Usable = {{{attack4ensureLinkedBodyPartsGroupAlwaysUsable|}}} }} }} | ||
+ | {{#if: {{#var:setProperty}} | {{#set:Attack 4 Always Treat As Weapon = {{{attack4alwaysTreatAsWeapon|}}} }} }} | ||
;Attack 4 | ;Attack 4 | ||
− | :{{ucfirst:{{{attack4part|Body part?}}} }}<!-- | + | :{{#if: {{{attack4label|}}}|{{#if: {{{attack4labelNoLocation|}}}|{{ucfirst:{{{attack4label|}}}}} ({{ucfirst:{{{attack4labelNoLocation|}}}}})|{{ucfirst:{{{attack4label|}}} }} }}|{{ucfirst:{{{attack4part|Body part?}}}}} }}<!-- |
--><br/>{{{attack4dmg|?}}} dmg ([[Damage Types#{{ucfirst:{{{attack4type|}}} }}|{{ucfirst:{{{attack4type|type?}}} }}]])<!-- | --><br/>{{{attack4dmg|?}}} dmg ([[Damage Types#{{ucfirst:{{{attack4type|}}} }}|{{ucfirst:{{{attack4type|type?}}} }}]])<!-- | ||
--><br/>{{{attack4ap|{{#expr: ({{{attack4dmg|}}}*1.5-0.001) round 0}} }}}% {{AP}}<!-- | --><br/>{{{attack4ap|{{#expr: ({{{attack4dmg|}}}*1.5-0.001) round 0}} }}}% {{AP}}<!-- | ||
Line 1,348: | Line 1,499: | ||
{{#if: {{{attack5dmg|}}}{{{attack5type|}}}{{{attack5part|}}}{{{attack5cool|}}} | | {{#if: {{{attack5dmg|}}}{{{attack5type|}}}{{{attack5part|}}}{{{attack5cool|}}} | | ||
+ | {{#if: {{#var:setProperty}} | {{#set:Attack 5 Label = {{{attack5label|}}} }} }} | ||
+ | {{#if: {{#var:setProperty}} | {{#set:Attack 5 Label No Location = {{{attack5labelNoLocation|}}} }} }} | ||
{{#if: {{#var:setProperty}} | {{#set:Attack 5 Damage = {{{attack5dmg|}}} }} }} | {{#if: {{#var:setProperty}} | {{#set:Attack 5 Damage = {{{attack5dmg|}}} }} }} | ||
− | {{# | + | {{#vardefine: Attack5AP | {{{attack5ap|{{#expr: ({{{attack5dmg|}}}*1.5-0.001) round 0}} }}} }} |
+ | {{#if: {{#var:setProperty}} | {{#set:Attack 5 AP = {{#var:Attack5AP}} }} }} | ||
{{#if: {{#var:setProperty}} | {{#set:Attack 5 Type = {{ucfirst:{{{attack5type|}}} }} }} }} | {{#if: {{#var:setProperty}} | {{#set:Attack 5 Type = {{ucfirst:{{{attack5type|}}} }} }} }} | ||
{{#if: {{#var:setProperty}} | {{#set:Attack 5 Part = {{ucfirst:{{{attack5part|}}} }} }} }} | {{#if: {{#var:setProperty}} | {{#set:Attack 5 Part = {{ucfirst:{{{attack5part|}}} }} }} }} | ||
Line 1,357: | Line 1,511: | ||
{{#if: {{#var:setProperty}} | {{#set:Attack 5 DPS = {{#var:Attack5DPS}} }} }} | {{#if: {{#var:setProperty}} | {{#set:Attack 5 DPS = {{#var:Attack5DPS}} }} }} | ||
{{#if: {{#var:setProperty}} | {{#set:Attack 5 Stun = {{{attack5stun|}}} }} }} | {{#if: {{#var:setProperty}} | {{#set:Attack 5 Stun = {{{attack5stun|}}} }} }} | ||
+ | {{#if: {{#var:setProperty}} | {{#set:Attack 5 Ensure Linked Body Parts Group Always Usable = {{{attack5ensureLinkedBodyPartsGroupAlwaysUsable|}}} }} }} | ||
+ | {{#if: {{#var:setProperty}} | {{#set:Attack 5 Always Treat As Weapon = {{{attack5alwaysTreatAsWeapon|}}} }} }} | ||
;Attack 5 | ;Attack 5 | ||
− | :{{ucfirst:{{{attack5part|Body part?}}} }}<!-- | + | :{{#if: {{{attack5label|}}}|{{#if: {{{attack5labelNoLocation|}}}|{{ucfirst:{{{attack5label|}}}}} ({{ucfirst:{{{attack5labelNoLocation|}}}}})|{{ucfirst:{{{attack5label|}}} }} }}|{{ucfirst:{{{attack5part|Body part?}}}}} }}<!-- |
--><br/>{{{attack5dmg|?}}} dmg ([[Damage Types#{{ucfirst:{{{attack5type|}}} }}|{{ucfirst:{{{attack5type|type?}}} }}]])<!-- | --><br/>{{{attack5dmg|?}}} dmg ([[Damage Types#{{ucfirst:{{{attack5type|}}} }}|{{ucfirst:{{{attack5type|type?}}} }}]])<!-- | ||
--><br/>{{{attack5ap|{{#expr: ({{{attack5dmg|}}}*1.5-0.001) round 0}} }}}% {{AP}}<!-- | --><br/>{{{attack5ap|{{#expr: ({{{attack5dmg|}}}*1.5-0.001) round 0}} }}}% {{AP}}<!-- | ||
Line 1,366: | Line 1,522: | ||
{{#if: {{{attack6dmg|}}}{{{attack6type|}}}{{{attack6part|}}}{{{attack6cool|}}} | | {{#if: {{{attack6dmg|}}}{{{attack6type|}}}{{{attack6part|}}}{{{attack6cool|}}} | | ||
+ | {{#if: {{#var:setProperty}} | {{#set:Attack 6 Label = {{{attack6label|}}} }} }} | ||
+ | {{#if: {{#var:setProperty}} | {{#set:Attack 6 Label No Location = {{{attack6labelNoLocation|}}} }} }} | ||
{{#if: {{#var:setProperty}} | {{#set:Attack 6 Damage = {{{attack6dmg|}}} }} }} | {{#if: {{#var:setProperty}} | {{#set:Attack 6 Damage = {{{attack6dmg|}}} }} }} | ||
− | {{# | + | {{#vardefine: Attack6AP | {{{attack6ap|{{#expr: ({{{attack6dmg|}}}*1.5-0.001) round 0}} }}} }} |
+ | {{#if: {{#var:setProperty}} | {{#set:Attack 6 AP = {{#var:Attack6AP}} }} }} | ||
{{#if: {{#var:setProperty}} | {{#set:Attack 6 Type = {{ucfirst:{{{attack6type|}}} }} }} }} | {{#if: {{#var:setProperty}} | {{#set:Attack 6 Type = {{ucfirst:{{{attack6type|}}} }} }} }} | ||
{{#if: {{#var:setProperty}} | {{#set:Attack 6 Part = {{ucfirst:{{{attack6part|}}} }} }} }} | {{#if: {{#var:setProperty}} | {{#set:Attack 6 Part = {{ucfirst:{{{attack6part|}}} }} }} }} | ||
Line 1,375: | Line 1,534: | ||
{{#if: {{#var:setProperty}} | {{#set:Attack 6 DPS = {{#var:Attack6DPS}} }} }} | {{#if: {{#var:setProperty}} | {{#set:Attack 6 DPS = {{#var:Attack6DPS}} }} }} | ||
{{#if: {{#var:setProperty}} | {{#set:Attack 6 Stun = {{{attack6stun|}}} }} }} | {{#if: {{#var:setProperty}} | {{#set:Attack 6 Stun = {{{attack6stun|}}} }} }} | ||
+ | {{#if: {{#var:setProperty}} | {{#set:Attack 6 Ensure Linked Body Parts Group Always Usable = {{{attack6ensureLinkedBodyPartsGroupAlwaysUsable|}}} }} }} | ||
+ | {{#if: {{#var:setProperty}} | {{#set:Attack 6 Always Treat As Weapon = {{{attack6alwaysTreatAsWeapon|}}} }} }} | ||
;Attack 6 | ;Attack 6 | ||
− | :{{ucfirst:{{{attack6part|Body part?}}} }}<!-- | + | :{{#if: {{{attack6label|}}}|{{#if: {{{attack6labelNoLocation|}}}|{{ucfirst:{{{attack6label|}}}}} ({{ucfirst:{{{attack6labelNoLocation|}}}}})|{{ucfirst:{{{attack6label|}}} }} }}|{{ucfirst:{{{attack6part|Body part?}}}}} }}<!-- |
--><br/>{{{attack6dmg|?}}} dmg ([[Damage Types#{{ucfirst:{{{attack6type|}}} }}|{{ucfirst:{{{attack6type|type?}}} }}]])<!-- | --><br/>{{{attack6dmg|?}}} dmg ([[Damage Types#{{ucfirst:{{{attack6type|}}} }}|{{ucfirst:{{{attack6type|type?}}} }}]])<!-- | ||
--><br/>{{{attack6ap|{{#expr: ({{{attack6dmg|}}}*1.5-0.001) round 0}} }}}% {{AP}}<!-- | --><br/>{{{attack6ap|{{#expr: ({{{attack6dmg|}}}*1.5-0.001) round 0}} }}}% {{AP}}<!-- | ||
Line 1,384: | Line 1,545: | ||
{{#if: {{{attack7dmg|}}}{{{attack7type|}}}{{{attack7part|}}}{{{attack7cool|}}} | | {{#if: {{{attack7dmg|}}}{{{attack7type|}}}{{{attack7part|}}}{{{attack7cool|}}} | | ||
+ | {{#if: {{#var:setProperty}} | {{#set:Attack 7 Label = {{{attack7label|}}} }} }} | ||
+ | {{#if: {{#var:setProperty}} | {{#set:Attack 7 Label No Location = {{{attack7labelNoLocation|}}} }} }} | ||
{{#if: {{#var:setProperty}} | {{#set:Attack 7 Damage = {{{attack7dmg|}}} }} }} | {{#if: {{#var:setProperty}} | {{#set:Attack 7 Damage = {{{attack7dmg|}}} }} }} | ||
− | {{# | + | {{#vardefine: Attack7AP | {{{attack7ap|{{#expr: ({{{attack7dmg|}}}*1.5-0.001) round 0}} }}} }} |
+ | {{#if: {{#var:setProperty}} | {{#set:Attack 7 AP = {{#var:Attack7AP}} }} }} | ||
{{#if: {{#var:setProperty}} | {{#set:Attack 7 Type = {{ucfirst:{{{attack7type|}}} }} }} }} | {{#if: {{#var:setProperty}} | {{#set:Attack 7 Type = {{ucfirst:{{{attack7type|}}} }} }} }} | ||
{{#if: {{#var:setProperty}} | {{#set:Attack 7 Part = {{ucfirst:{{{attack7part|}}} }} }} }} | {{#if: {{#var:setProperty}} | {{#set:Attack 7 Part = {{ucfirst:{{{attack7part|}}} }} }} }} | ||
{{#if: {{#var:setProperty}} | {{#set:Attack 7 Cooldown = {{{attack7cool|}}} }} }} | {{#if: {{#var:setProperty}} | {{#set:Attack 7 Cooldown = {{{attack7cool|}}} }} }} | ||
{{#if: {{#var:setProperty}} | {{#set:Attack 7 Chance Factor = {{{attack7chancefactor|}}} }} }} | {{#if: {{#var:setProperty}} | {{#set:Attack 7 Chance Factor = {{{attack7chancefactor|}}} }} }} | ||
− | {{#vardefine: | + | {{#vardefine: Attack7DPS | {{#expr: {{{attack7dmg|}}} / ({{{attack7cool|}}}) }} }} |
− | {{#if: {{#var:setProperty}} | {{#set:Attack 7 DPS = {{#var: | + | {{#if: {{#var:setProperty}} | {{#set:Attack 7 DPS = {{#var:Attack7DPS}} }} }} |
{{#if: {{#var:setProperty}} | {{#set:Attack 7 Stun = {{{attack7stun|}}} }} }} | {{#if: {{#var:setProperty}} | {{#set:Attack 7 Stun = {{{attack7stun|}}} }} }} | ||
+ | {{#if: {{#var:setProperty}} | {{#set:Attack 7 Ensure Linked Body Parts Group Always Usable = {{{attack7ensureLinkedBodyPartsGroupAlwaysUsable|}}} }} }} | ||
+ | {{#if: {{#var:setProperty}} | {{#set:Attack 7 Always Treat As Weapon = {{{attack7alwaysTreatAsWeapon|}}} }} }} | ||
;Attack 7 | ;Attack 7 | ||
− | :{{ucfirst:{{{attack7part|Body part?}}} }}<!-- | + | :{{#if: {{{attack7label|}}}|{{#if: {{{attack7labelNoLocation|}}}|{{ucfirst:{{{attack7label|}}}}} ({{ucfirst:{{{attack7labelNoLocation|}}}}})|{{ucfirst:{{{attack7label|}}} }} }}|{{ucfirst:{{{attack7part|Body part?}}}}} }}<!-- |
--><br/>{{{attack7dmg|?}}} dmg ([[Damage Types#{{ucfirst:{{{attack7type|}}} }}|{{ucfirst:{{{attack7type|type?}}} }}]])<!-- | --><br/>{{{attack7dmg|?}}} dmg ([[Damage Types#{{ucfirst:{{{attack7type|}}} }}|{{ucfirst:{{{attack7type|type?}}} }}]])<!-- | ||
--><br/>{{{attack7ap|{{#expr: ({{{attack7dmg|}}}*1.5-0.001) round 0}} }}}% {{AP}}<!-- | --><br/>{{{attack7ap|{{#expr: ({{{attack7dmg|}}}*1.5-0.001) round 0}} }}}% {{AP}}<!-- | ||
Line 1,401: | Line 1,567: | ||
-->{{#if: {{{attack7stun|}}} | <br/>Stun for {{Ticks|{{{attack7stun|0}}}*20}} on first strike}} }} | -->{{#if: {{{attack7stun|}}} | <br/>Stun for {{Ticks|{{{attack7stun|0}}}*20}} on first strike}} }} | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | {{# | + | {{#if: {{#varexists: Attack1DPS}} | <!-- Defined on the "attack1" block.--> |
− | {{#if: {{#var:setProperty}} | {{#set:Mob Average DPS = {{#var:MobAverageDPS}} }} }} | + | {{#vardefine:MobAverageDPS|{{#expr:0.62*{{True Melee DPS Calculator|{{#var:Name}} }} }} }}{{#if: {{#var:setProperty}} | {{#set:Mob Average DPS = {{#var:MobAverageDPS}} }} }} |
;Average {{DPS}} | ;Average {{DPS}} | ||
:{{#var:MobAverageDPS}} | :{{#var:MobAverageDPS}} | ||
+ | }} | ||
}} | }} | ||
Line 1,498: | Line 1,651: | ||
--><br/>{{{meleeattack4cool|0}}} seconds cooldown<!-- | --><br/>{{{meleeattack4cool|0}}} seconds cooldown<!-- | ||
-->{{#if: {{{meleeattack4chancefactor|}}} | <br/>{{{meleeattack4chancefactor|}}} chance factor}} }} | -->{{#if: {{{meleeattack4chancefactor|}}} | <br/>{{{meleeattack4chancefactor|}}} chance factor}} }} | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
Line 1,532: | Line 1,672: | ||
<!--- 13. CREATION ---> | <!--- 13. CREATION ---> | ||
− | {{#if: {{{research|}}} {{{production facility 1|}}} {{{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|}}} {{{product amount|}}} | | + | {{#if: {{{research|}}} {{{production facility 1|}}} {{{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|}}} {{{product amount|}}} {{{work speed stat|}}} {{{gestation cycles|}}} {{{ritual duration|}}} {{{ritual cooldown|}}}| |
</dl>{{clear}} | </dl>{{clear}} | ||
<p class='subheading' style='height: 1em !important; padding: 0.25em 0 0.5em !important; margin: 0.5em 0 0.5em !important'>Creation</p> | <p class='subheading' style='height: 1em !important; padding: 0.25em 0 0.5em !important; margin: 0.5em 0 0.5em !important'>Creation</p> | ||
<dl> | <dl> | ||
− | |||
− | {{#if: {{{production facility 1|}}} | {{#if: {{#var:setProperty}} | {{#set:Production Facility 1 = {{{production facility 1| | + | {{#if: {{{production facility 1|}}} | <!-- Compressed --> |
− | {{#if: {{{production facility 2|}}} | {{#if: {{#var:setProperty}} | {{#set:Production Facility 2 = {{{production facility 2|}}} }} }} }} | + | {{#if: {{#var:setProperty}} | {{#set:Production Facility 1 = {{{production facility 1|}}} }} }} |
− | {{#if: {{{production facility 3|}}} | {{#if: {{#var:setProperty}} | {{#set:Production Facility 3 = {{{production facility 3|}}} }} }} }} | + | {{#if: {{{production facility 2|}}} | {{#if: {{#var:setProperty}} | {{#set:Production Facility 2 = {{{production facility 2|}}} }} }} }} |
− | {{#if: {{{production facility 4|}}} | {{#if: {{#var:setProperty}} | {{#set:Production Facility 4 = {{{production facility 4|}}} }} }} }} | + | {{#if: {{{production facility 3|}}} | {{#if: {{#var:setProperty}} | {{#set:Production Facility 3 = {{{production facility 3|}}} }} }} }} |
− | + | {{#if: {{{production facility 4|}}} | {{#if: {{#var:setProperty}} | {{#set:Production Facility 4 = {{{production facility 4|}}} }} }} }} | |
;Crafted At | ;Crafted At | ||
− | : | + | :{{Icon Small|{{{production facility 1|}}}|{{#switch:{{lc:{{{production facility 1|}}} }}|butcher spot|crafting spot|campfire|fermenting barrel|nutrient paste dispenser=16|#default=32}} }}{{#if:{{{production facility 2|}}}| / {{Icon Small|{{{production facility 2|}}}|{{#switch:{{lc:{{{production facility 2|}}} }}|butcher spot|crafting spot|campfire|fermenting barrel|nutrient paste dispenser=16|#default=32}} }} }}{{#if:{{{production facility 3|}}}| / {{Icon Small|{{{production facility 3|}}}|{{#switch:{{lc:{{{production facility 3|}}} }}|butcher spot|crafting spot|campfire|fermenting barrel|nutrient paste dispenser=16|#default=32}} }} }}{{#if:{{{production facility 4|}}}| / {{Icon Small|{{{production facility 4|}}}|{{#switch:{{lc:{{{production facility 4|}}} }}|butcher spot|crafting spot|campfire|fermenting barrel|nutrient paste dispenser=16|#default=32}} }} }} |
}} | }} | ||
− | {{#if: {{#vardefineecho:research| | + | |
+ | <!-- Research section --> | ||
+ | {{#if: {{#vardefineecho:research|{{{research|}}} }} | {{#vardefine:research1|{{ucfirst:{{#explode:{{#var:research}}|,|0}} }} }}{{#vardefine:research2|{{ucfirst:{{#explode:{{#var:research}}|,|1}} }} }}{{#vardefine:research3|{{ucfirst:{{#explode:{{#var:research}}|,|2}} }} }}{{#vardefine:research4|{{ucfirst:{{#explode:{{#var:research}}|,|3}} }} }}{{#vardefine:research5|{{ucfirst:{{#explode:{{#var:research}}|,|4}} }} }} | ||
{{#if: {{#var:setProperty}} | {{#set: | {{#if: {{#var:setProperty}} | {{#set: | ||
Required Research = {{#var:research1}} | Required Research = {{#var:research1}} | ||
Line 1,595: | Line 1,736: | ||
;<abbr title="The number of gestation cycles that must be initiated by a mechanitor to gestate this mechanoid">Gestation Cycles</abbr> | ;<abbr title="The number of gestation cycles that must be initiated by a mechanitor to gestate this mechanoid">Gestation Cycles</abbr> | ||
:{{{gestation cycles|}}} | :{{{gestation cycles|}}} | ||
+ | }} | ||
+ | |||
+ | {{#if: {{{ritual duration|}}} | | ||
+ | {{#if: {{#var:setProperty}} | {{#set:Ritual Duration = {{{ritual duration|}}} }} }} | ||
+ | ;Ritual Duration | ||
+ | :{{ticks| {{{ritual duration|}}} }} | ||
+ | }} | ||
+ | |||
+ | {{#if: {{{ritual cooldown|}}} | | ||
+ | {{#if: {{#var:setProperty}} | {{#set:Ritual Cooldown = {{{ritual cooldown|}}} }} }} | ||
+ | ;Ritual Cooldown | ||
+ | :{{ticks| {{{ritual cooldown|}}} }} | ||
}} | }} | ||
Line 1,683: | Line 1,836: | ||
-->|}}<!-- | -->|}}<!-- | ||
-->}} | -->}} | ||
− | + | }} | |
<!-- 14. ABILITY --> | <!-- 14. ABILITY --> | ||
Line 1,745: | Line 1,898: | ||
}} | }} | ||
+ | }} | ||
+ | |||
+ | <!-- 14.5 Containment --> | ||
+ | {{#if: {{{containment strength|}}} {{{containment offset|}}} {{{containment factor|}}} {{{minimum containment strength|}}} {{{anomaly knowledge|}}} {{{anomaly knowledge offset|}}} {{{knowledge category|}}} {{{study interval|}}} {{{gets cold containment bonus|}}} {{{min monolith level|}}} {{{min monolith level for study|}}} {{{requires holding platform|}}} {{{requires imprisonment|}}} {{{base escape interval MTB days|}}} | | ||
+ | </dl>{{clear}} | ||
+ | <p class='subheading' style='height: 1em !important; padding: 0.25em 0 0.5em !important'>Containment</p> | ||
+ | <dl> | ||
+ | |||
+ | {{#if: {{{containment strength|}}} | | ||
+ | {{#if: {{#var:setProperty}} | {{#set:Containment Strength = {{{containment strength|}}} }} }} | ||
+ | ;Containment Strength | ||
+ | :{{{containment strength|}}} | ||
+ | }} | ||
+ | |||
+ | {{#if: {{{containment offset|}}} | | ||
+ | {{#if: {{#var:setProperty}} | {{#set:Containment Strength = {{{containment offset|}}} }} }} | ||
+ | ;Containment Offset | ||
+ | :{{#ifexpr: {{{containment offset|}}} > 0 | {{+|{{{containment offset|}}} }} | {{--|{{{containment offset|}}} }} }} | ||
+ | }} | ||
+ | |||
+ | {{#if: {{{containment factor|}}} | | ||
+ | {{#if: {{#var:setProperty}} | {{#set:Containment Factor = {{{containment factor|}}} }} }} | ||
+ | ;Containment Factor | ||
+ | :{{#ifexpr: {{{containment factor|}}} = 1 | ×{{%|{{{containment factor|}}} }} | {{#ifexpr: {{{containment factor|}}} > 1 | {{Good|×{{%|{{{containment factor|}}} }} }} | {{Bad|×{{%|{{{containment factor|}}} }} }} }} }} | ||
+ | }} | ||
+ | |||
+ | {{#if: {{{minimum containment strength|}}} | | ||
+ | {{#if: {{#var:setProperty}} | {{#set:Minimum Containment Strength = {{{minimum containment strength|}}} }} }} | ||
+ | ;Min Containment Strength | ||
+ | :{{{minimum containment strength|}}} | ||
+ | }} | ||
+ | |||
+ | {{#if: {{{anomaly knowledge|}}} | | ||
+ | {{#if: {{#var:setProperty}} | {{#set:Anomaly Knowledge = {{{anomaly knowledge|}}} }} }} | ||
+ | }} | ||
+ | |||
+ | {{#if: {{{anomaly knowledge offset|}}} | | ||
+ | {{#if: {{#var:setProperty}} | {{#set:Anomaly Knowledge = {{{anomaly knowledge|}}} + {{{anomaly knowledge offset|}}} }} }} | ||
+ | }} | ||
+ | |||
+ | {{#if: {{{knowledge category|}}} | | ||
+ | {{#if: {{#var:setProperty}} | {{#set:Knowledge Category = {{{knowledge category|}}} }} }} | ||
+ | ;Knowledge Gain | ||
+ | :{{{anomaly knowledge|}}} {{{knowledge category|}}} | ||
+ | }} | ||
+ | |||
+ | {{#if: {{{study interval|}}} | | ||
+ | {{#if: {{#var:setProperty}} | {{#set:Studiable Frequency Ticks = {{{study interval|}}} }} }} | ||
+ | ;Study Interval | ||
+ | :{{Ticks/gametime/days|{{{study interval|}}} }} | ||
+ | }} | ||
+ | |||
+ | {{#if: {{{bioferrite density|}}} | | ||
+ | {{#if: {{#var:setProperty}} | {{#set:Bioferrite Density = {{{bioferrite density|}}} }} }} | ||
+ | ;Bioferrite Generation | ||
+ | :{{Icon Small|Bioferrite}} {{#expr: 1 * {{{bodysize|}}} * {{{bioferrite density|}}} }}/day | ||
+ | }} | ||
+ | |||
+ | {{#if: {{{gets cold containment bonus|}}} | | ||
+ | {{#if: {{#var:setProperty}} | {{#set:Gets Cold Containment Bonus = {{{gets cold containment bonus|}}} }} }} | ||
+ | ;<abbr title="{{Q|Cold Containment Bonus|Description}}">Gets Cold Bonus</abbr> | ||
+ | :{{{gets cold containment bonus|}}} | ||
+ | }} | ||
+ | |||
+ | {{#if: {{{min monolith level|}}} | | ||
+ | {{#if: {{#var:setProperty}} | {{#set:Minimum Monolith Level = {{{min monolith level|}}} }} }} | ||
+ | ;Min Monolith Level | ||
+ | :{{{min monolith level|}}} | ||
+ | }} | ||
+ | |||
+ | {{#if: {{{min monolith level for study|}}} | | ||
+ | {{#if: {{#var:setProperty}} | {{#set:Minimum Monolith Level For Study = {{{min monolith level for study|}}} }} }} | ||
+ | ;Min Monolith Level For Study | ||
+ | :{{{min monolith level for study|}}} | ||
+ | }} | ||
+ | |||
+ | {{#if: {{{requires holding platform|}}} | | ||
+ | {{#if: {{#var:setProperty}} | {{#set:Requires Holding Platform = {{{requires holding platform|}}} }} }} | ||
+ | ;Held on Spot or Platform | ||
+ | :{{{requires holding platform|}}} | ||
+ | }} | ||
+ | |||
+ | {{#if: {{{requires imprisonment|}}} | | ||
+ | {{#if: {{#var:setProperty}} | {{#set:Requires Imprisonment = {{{requires imprisonment|}}} }} }} | ||
+ | ;Imprisoned | ||
+ | :{{{requires imprisonment|}}} | ||
+ | }} | ||
+ | |||
+ | {{#if: {{{base escape interval MTB days|}}} | | ||
+ | {{#if: {{#var:setProperty}} | {{#set:Base Escape Interval Mtb Days = {{{base escape interval MTB days|}}} }} }} | ||
+ | ;Escape Interval | ||
+ | :{{MTB}} {{{base escape interval MTB days|}}} days | ||
+ | }} | ||
}} | }} | ||
Latest revision as of 14:53, 27 February 2025
This page has been suggested for recoding. Reason: 1) Doesn't play nice with skins - font color changes, but not background. Background either needs to be transparent or use color from skin. 2) Equip delay (see tag on that page). You can help RimWorld Wiki by improving it. |
Intro[edit]
Template:Infobox main Is the core of what powers the SemanticMediaWiki database of rimworld objects. Since the template is so complex, it's worth taking a step back and summarizing what this template does:
- Takes in facts: On each page which describes an in-game object, we call
{{infobox main | ...}}
|, where ...
| is a very long list of parameters describing the object in question, including its name, type, the cost to make it, and a bunch of other things
- Rendering an infobox: This template takes those parameters and presents them in a nice looking infobox on the right side of the page. If you add a param
|marketvalue = 200
|, this template will add a line to the infobox showing the market value annotated with a silver icon. Cool!
- Setting SMW properties: The real magic comes from this templates ability to also set SMW properties. If the
|marketvalue = 200
| param is present, this template will also set a SMW property 'Market Value Base' equal to 200 for whatever page the infobox was called on.
As an example, say there was an Page called "Foo" for an in-game object with the same name. In-game, a foo has a market value of 200. When you invoke {{infobox main | ... | marketvalue = 200 | ...
|, this template will set the 'Market Value Base' property of the 'Foo' page to 200.
These properties can then be retrieved using a snippet like {{#show:Foo|?Market Value Base}}
|. You can browse the properties for a given page by clicking the "Browse properties" link on the left side of the page. For an example, see Special:Browse/:Duster
Positional parameters[edit]
This template also takes one (and only one -- all others are ignored) positional parameter that specifies the type of infobox styling to use (primarily: to set the color of the infobox based on object type)
Usage[edit]
This section is a stub. You can help RimWorld Wiki by expanding it. Reason: Parity with available parameters and documentation (List & Table). |
- Everything is optional for the template to function; however, relevant sections should be filled in for the sake of completeness. The information displayed is dependent on which category is used, and will not be displayed unless a value is provided.
- You can add a "name" and "image". Fill these values if the PAGENAME macro is not adequate (if the page name has a disambig qualifier for example)
Parameter Table[edit]
Parameter | Dependencies | Type/Unit | Property / Stat | Description | Expandxml-tag / hierarchy |
---|
Deprecated positional parameters[edit]
This template used to take in up to 4 positional parameters, often accomplish relatively hacky things. As of now this template only takes ONE positional parameter -- all others are ignored.
- (still in use)
- DEPRECATED: Extra CSS class to be applied to the infobox div.
- DEPRECATED: Used to be extra params passed to the image layout in the infobox. Superseded by the imagesize= param
- DEPRECATED: Overly clever use of the size parameter. The usual format is |size = X|Y. This then gets transformed into x * y. BUT it only works if you have 3 positional parameters prior to the first param.
The above documentation is transcluded from Template:Infobox main/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. |