Difference between revisions of "User:Theaetetus/sandbox2"

From RimWorld Wiki
Jump to navigation Jump to search
(Replaced content with "<includeonly>{{#if: {{{1|}}}|Category:Articles verified for <!-- -->{{#switch: {{{1|}}} | A14D = Alpha 14D | A14C = Alpha 14C | A14B = Alpha 14B ...")
Line 1: Line 1:
<includeonly>{{#if: {{{1|}}}|[[Category:Articles verified for <!--
+
<div class="infobox float:right; {{#if:{{{1|}}}|{{#switch:{{{1}}}|<!--
-->{{#switch: {{{1|}}}
+
--> animal = c_08 |<!--
      | A14D = Alpha 14D
+
--> plant = c_14 |<!--
      | A14C = Alpha 14C
+
--> weapon = c_06 |<!--
      | A14B = Alpha 14B
+
--> area = c_11 |<!--
      | A14 = Alpha 14
+
--> structure = c_02 |<!--
      | A13 = Alpha 13
+
--> production = c_25 |<!--
      | Alpha 12 or earlier }}]]|
+
--> security = c_10 |<!--
   [[Category:Unverified articles]]}}</includeonly>
+
--> furniture = c_01 |<!--
 +
-->}}}} {{#if:{{{2|}}}|{{{2}}}}}">
 +
<p class="heading">{{{name|{{BASEPAGENAME}}}}}</p>
 +
<div class="wrapper">
 +
<div class="image_wrapper" title="{{{name|{{BASEPAGENAME}}}}}">{{#if:{{{image|}}}|[[File:{{{image|}}}|link={{{name|{{BASEPAGENAME}}}}}|{{#if:{{{3}}}|{{!}}{{{3|}}}}}]]|[[File:{{{name|{{BASEPAGENAME}}}}}.png|link=|{{#if:{{{3}}}|{{!}}{{{3|}}}}}]]}}</div>
 +
<p class="text-center" style="display:block; font-size:89%; padding: .5em;">{{#if:{{{description|}}}|{{{description|}}}{{#set:Description = {{{description|}}}}}}}</p>
 +
----
 +
<dl>
 +
;Type
 +
:[[{{{type}}}]]{{#if: {{{type2|}}} | &#32;&ndash;&#32; [[{{{type2}}}]] }}
 +
 
 +
 
 +
{{#if: {{{placeable|}}}|{{#set:Placeable = {{{placeable|}}} }}
 +
;Placeable
 +
:{{{placeable|}}}}}
 +
 
 +
{{#if: {{{rotatable|}}}|{{#set:Rotatable = {{{rotatable|}}} }}
 +
;Rotatable
 +
:{{{rotatable|}}}}}
 +
 
 +
 
 +
{{#if: {{{size|}}}| {{#if:{{{4}}}|{{#set:Size = {{{size|}}}&nbsp;ˣ&nbsp;{{{4|}}} }}|{{#set:Size = {{{size}}} }} }}
 +
;Size
 +
:{{#show: {{PAGENAME}} |?Size |link=none}}
 +
}}
 +
 
 +
{{#if: {{{hp|}}}|{{#set:Max Hit Points Base = {{{hp|}}} }}
 +
;HP
 +
:{{{hp|}}}}}
 +
 
 +
{{#if: {{{beauty|}}}|{{#set:Beauty Base = {{{beauty|}}} }}
 +
;[[Beauty]]
 +
:[[Beauty Base::{{{beauty|}}}]]}}
 +
 
 +
{{#ifeq: {{{type|}}}|Animals|{{#set: Type = {{{type2|}}}}}}}
 +
 
 +
{{#if: {{{walkSpeed|}}}|{{#set:Move Speed Base = {{{walkSpeed|}}} }}
 +
;Move Speed
 +
:{{{walkSpeed|}}}}}
 +
 
 +
{{#if: {{{movespeed|}}}|{{#set:Move Speed Base = {{{movespeed|}}} }}
 +
;Move Speed
 +
:{{{movespeed|}}}}}
 +
 
 +
{{#if: {{{speed|}}}|{{#set:Move Speed Base = {{{speed|}}} }}
 +
;Move Speed
 +
:{{{speed|}}}}}
 +
 
 +
{{#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|}}}}}}}
 +
 
 +
{{#if: {{{armorblunt|}}}|{{#set:Armor - Blunt= {{{armorblunt|}}} }}
 +
;Armor - Blunt
 +
:{{{armorblunt|}}}}}
 +
 
 +
{{#if: {{{armorsharp|}}}|{{#set:Armor - Sharp = {{{armorsharp|}}} }}
 +
;Armor - Sharp
 +
:{{{armorsharp|}}}}}
 +
 
 +
{{#if: {{{armorheat|}}}|{{#set:Armor - Heat = {{{armorheat|}}} }}
 +
;Armor - Heat
 +
:{{{armorheat|}}}}}
 +
 
 +
{{#if: {{{bodysize|}}}|
 +
  {{#set:Body Size = {{{bodysize|}}} }}
 +
    {{#if: {{{meatyield|}}}|
 +
      {{#set:Meat Yield = {{{meatyield|}}} }}|
 +
      {{#set:Meat Yield = {{#expr: 90 * {{{bodysize|}}} round0}} }} }}
 +
  {{#set:Carrying Capacity = {{#expr: 75 * {{{bodysize|}}} round0}} }}
 +
;Meat Yield
 +
:{{#show: {{PAGENAME}}|?Meat Yield |link=none}}
 +
{{#if: {{{leathername|}}}|{{#set:Leather Yield = {{#expr: 20 * {{{bodysize|}}} round0}} }}
 +
;Leather Yield
 +
:{{#show: {{PAGENAME}}|?Leather Yield |link=none}} [[{{{leathername|}}}]] }}
 +
;Carrying Capacity
 +
:{{#show: {{PAGENAME}}|?Carrying Capacity |link=none}}
 +
}}
 +
 
 +
{{#if: {{{manhunter|}}}|{{#set:Turn Manhunter Chance When Attacked = {{{manhunter|}}} }}
 +
;{{H:title|link=no|Chance of this animal turning manhunter when attacked.|Manhunter Chance}}
 +
:{{#expr: {{{manhunter|}}} * 100}}%}}
 +
 
 +
{{#if: {{{manhuntertame|}}}|{{#set:Turn Manhunter Chance When Taming = {{{manhuntertame|}}} }}
 +
;{{H:title|link=no|Chance of this animal turning manhunter on a failed taming attempt.|Manhunter Chance (Taming)}}
 +
:{{#expr: {{{manhuntertame|}}} * 100}}%}}
 +
 
 +
{{#if: {{{hungerrate|}}}|{{#set:Base Hunger Rate = {{{hungerrate|}}} }}
 +
;Hunger Rate
 +
:{{{hungerrate|}}}}}
 +
 
 +
{{#if: {{{diet|}}}|{{#set:Diet = {{{diet|}}} }}
 +
;Diet
 +
:{{{diet|}}}}}
 +
 
 +
{{#if: {{{lifespan|}}}|{{#set:Life Expectancy = {{{lifespan|}}} }}
 +
;Life Expectancy
 +
:{{{lifespan|}}}}}
 +
 
 +
{{#if: {{{trainable|}}}|{{#set:Trainable Intelligence = {{{trainable|}}} }}
 +
;Trainable Intelligence
 +
:{{{trainable|}}}
 +
{{#switch: {{{trainable|}}}
 +
| none = {{#set: Can Train Obedience = no |Can Train Release = no |Can Train Rescue = no |Can Train Haul = no}}
 +
| simple = {{#set: Can Train Obedience = yes |Can Train Release = no |Can Train Rescue = no |Can Train Haul = no}}
 +
| intermediate = {{#set: Can Train Obedience = yes |Can Train Release = yes |Can Train Rescue = no |Can Train Haul = no}}
 +
| advanced = {{#set: Can Train Obedience = yes |Can Train Release = yes}}{{#ifexpr: {{{bodysize|}}} >= 0.65|{{#set: Can Train Rescue = yes}}|{{#set: Can Train Rescue = no}}}}{{#ifexpr: {{{bodysize|}}} >= 0.41|{{#set: Can Train Haul = yes}}|{{#set: Can Train Haul = no}}}}
 +
}}
 +
}}
 +
 
 +
{{#if: {{{handleskill|}}}|{{#set:Minimum Handling Skill = {{{handleskill|}}} }}
 +
;{{H:title|link=no|This creature cannot be tamed, trained, or commanded by anyone with less than this skill in animals.|Minimum Handling Skill}}
 +
:{{{handleskill|}}}}}
 +
 
 +
{{#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}}%}}
 +
 
 +
{{#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|}}}&nbsp;days}}
 +
 
 +
{{#if: {{{wool|}}}|{{#set: Wool Amount = {{{wool|}}} }}
 +
;Wool Amount
 +
:{{{wool|}}} }}
 +
 
 +
{{#if: {{{sheartime|}}}|{{#set: Shearing Interval Days = {{{sheartime|}}} }}
 +
{{#set: Daily Wool Average = {{#expr: {{{wool|}}}/{{{sheartime}}}round2}} }}
 +
;Shearing Interval
 +
:{{{sheartime|}}}&nbsp;days}}
 +
 
 +
{{#if: {{{eggsmin|}}}|{{#set: Eggs Per Clutch Minimum = {{{eggsmin|}}} }}
 +
{{#if: {{{eggsmax|}}}|{{#set: Eggs Per Clutch Maximum = {{{eggsmax|}}} }} }}
 +
;Eggs Per Clutch
 +
:{{#show: {{PAGENAME}}|?Eggs Per Clutch Minimum|link=none}} to {{#show: {{PAGENAME}}|?Eggs Per Clutch Maximum|link=none}} }}
 +
 
 +
{{#if: {{{eggtime|}}}|{{#set: Egg Laying Interval = {{{eggtime|}}} }}
 +
{{#set: Eggs Per Season Average = {{#expr: {{{eggs_avg|}}}/{{{eggtime|}}}*15 round 2}} }}
 +
;Egg Laying Interval
 +
:{{{eggtime|}}}&nbsp;days}}
 +
 
 +
{{#if: {{{eggs_avg|}}}|{{#set: Eggs Per Clutch Average = {{{eggs_avg|}}} }} }}
 +
 
 +
{{#if: {{{gestation|}}}|{{#set: Gestation Period Days = {{{gestation|}}} }}
 +
;Gestation Period
 +
:{{{gestation|}}} days}}
 +
 
 +
{{#if: {{{offspring|}}}|{{#set: Offspring Per Birth = {{{offspring|}}} }}
 +
;Offspring Per Birth
 +
:{{{offspring|}}} }}
 +
 
 +
{{#if: {{{maturityage|}}}|{{#set: Maturity Age = {{{maturityage|}}} }}
 +
;Maturity Age
 +
:{{{maturityage|}}} }}
 +
 
 +
{{#if: {{{livesin_aridshrubland|}}}|{{#set: Lives in Arid Shrubland = true}} }}
 +
{{#if: {{{livesin_borealforest|}}}|{{#set: Lives in Boreal Forest = true}} }}
 +
{{#if: {{{livesin_desert|}}}|{{#set: Lives in Desert = true}} }}
 +
{{#if: {{{livesin_icesheet|}}}|{{#set: Lives in Icesheet = true}} }}
 +
{{#if: {{{livesin_temperateforest|}}}|{{#set: Lives in Temperate Forest = true}} }}
 +
{{#if: {{{livesin_tropicalrainforest|}}}|{{#set: Lives in Tropical Rainforest = true}} }}
 +
{{#if: {{{livesin_tundra|}}}|{{#set: Lives in Tundra = true}} }}
 +
 
 +
{{#if: {{{marketvalue|}}}|{{#set: Market Value = {{{marketvalue|}}} }}
 +
;Market Value
 +
:{{{marketvalue|}}}&nbsp;{{Icon Small|silver}} }}
 +
 
 +
{{#if: {{{time|}}}|{{#set:Grow Days = {{{time|}}} }}
 +
;Time to grow
 +
:{{{time|}}} day(s)}}
 +
 
 +
{{#if: {{{yield|}}}|
 +
;Food Yield
 +
:{{{yield|}}} [[food|food]]}}
 +
 
 +
{{#if: {{{wood|}}}|
 +
;Wood Yield
 +
:{{{wood|}}}}}
 +
 
 +
{{#if: {{{power|}}}|{{#set:Power Consumption = {{{power|}}} }}
 +
;Power
 +
:{{{power|}}}W}}
 +
 
 +
{{#if: {{{class|}}}|{{#set:Class = {{{class|}}} }}
 +
;Class
 +
:[[{{{class|}}}]]}}
 +
 
 +
{{#if: {{{mode|}}}|{{#set:Mode = {{{mode|}}} }}
 +
;Mode
 +
:{{{mode|}}}}}
 +
 
 +
<!--the following determines if the item is a melee weapon, else assumes it's ranged, then sets relevant property-->
 +
{{#if: {{{mode|}}}|{{#ifeq: {{{mode|}}} | Melee |
 +
{{#set:Melee Damage Base = {{{damage|}}}
 +
|Melee Warmup = {{{warmup|}}}
 +
|Melee Cooldown Base = {{{cooldown|}}}
 +
}}
 +
|
 +
{{#set:Damage Base = {{{damage|}}}
 +
|Aiming Time Base = {{{warmup|}}}
 +
|Ranged Cooldown Base = {{{cooldown|}}}
 +
}} }} |}}
 +
 
 +
{{#if: {{{damage|}}}|
 +
;Damage
 +
:{{{damage|}}}}}
 +
 
 +
{{#if: {{{warmup|}}}|
 +
;{{H:title|link=no|Time it takes to aim the weapon|Warm-Up}}
 +
:{{ticks|{{{warmup|}}}}}}}
 +
 
 +
{{#if: {{{cooldown |}}}|
 +
;{{H:title|link=no|Waiting time before you can aim again after firing|Cooldown}}
 +
:{{ticks|{{{cooldown|}}}}}}}
 +
 
 +
{{#if: {{{range|}}}|{{#set:Range = {{{range|}}} }}
 +
;Range
 +
:{{{range|}}} tile(s)}}
 +
 
 +
{{#if: {{{minrange|}}}|
 +
;Minimum Range
 +
:{{{minrange|}}} tiles}}
 +
 
 +
{{#if: {{{accuracy|}}}|
 +
;Accuracy
 +
:{{{accuracy|}}}}}
 +
 
 +
{{#if: {{{accuracyTouch|}}}| {{#Set: Accuracy (Touch) Base = {{{accuracyTouch|}}} }}    
 +
{{#if: {{{accuracyShort|}}}| {{#Set: Accuracy (Short) Base = {{{accuracyShort|}}} }} 
 +
{{#if: {{{accuracyMedium|}}}| {{#Set: Accuracy (Medium) Base = {{{accuracyMedium|}}} }}     
 +
{{#if: {{{accuracyLong|}}}| {{#Set: Accuracy (Long) Base = {{{accuracyLong|}}} }}
 +
;{{H:title|link=no|Touch % - Short % - Medium % - Long %|Accuracy}}
 +
:{{{accuracyTouch|}}}% - {{{accuracyShort|}}}% - {{{accuracyMedium|}}}% - {{{accuracyLong|}}}%
 +
;Average Acc.
 +
:{{ #expr: (({{{accuracyTouch|}}} + {{{accuracyShort|}}} + {{{accuracyMedium|}}} + {{{accuracyLong|}}} )/4) round2 }}%
 +
}}   
 +
}}
 +
}}
 +
}}
 +
 
 +
 
 +
 
 +
 
 +
 
 +
{{#if: {{{velocity|}}}|{{#set:Velocity = {{{velocity|}}} }}
 +
;Velocity
 +
:{{{velocity|}}} (m/s)}}
 +
 
 +
{{#if: {{{burst|}}}|
 +
;Burst Count
 +
:{{{burst|}}} (per burst)}}
 +
 
 +
{{#if: {{{burstTicks|}}}|
 +
;{{H:title|link=no|Time between shots|Burst Ticks}}
 +
:{{ticks|{{{burstTicks|}}}}}}}
 +
 
 +
{{#if: {{{missRadius|}}}|
 +
;{{H:title|link=no|Missed shots are forced to land within this radius|Miss Radius}}
 +
:{{{missRadius|}}} tile(s)}}
 +
 
 +
{{#if: {{{blastRadius|}}}|
 +
;Blast Radius
 +
:{{{blastRadius|}}}}}
 +
 
 +
{{
 +
#if: {{{DPS|}}}|
 +
;{{H:title|link=yes|Formatted as: Maximum damage per second (DPS with average accuracy)|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 }} {{#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)) * (({{{accuracyTouch|}}} + {{{accuracyShort|}}} + {{{accuracyMedium|}}} + {{{accuracyLong|}}} )/400)) round2 }})
 +
}}
 +
}}
 +
}}
 +
}}
 +
}}
 +
 
 +
{{#if: {{{buy|}}}|
 +
;Buy
 +
:{{{buy|}}}}}
 +
 
 +
{{#if:{{{sell|}}}|
 +
;Sell
 +
:{{{sell|}}}}}
 +
 
 +
<br style="clear: both; height: 0px;" />
 +
</dl></div></div>
 +
 
 +
<noinclude>
 +
{{{{BASEPAGENAME}}/doc}}
 +
[[Category:Template Infobox]]
 +
</noinclude>

Revision as of 14:34, 25 July 2016

Theaetetus


Type
[[{{{type}}}]]


Template:Theaetetus/doc