Difference between revisions of "Template:Faction Xenotype Chance"

From RimWorld Wiki
Jump to navigation Jump to search
 
(3 intermediate revisions by the same user not shown)
Line 16: Line 16:
 
   | yttakin =  0
 
   | yttakin =  0
 
   | baseliner = {{#expr: 1 - 0}}
 
   | baseliner = {{#expr: 1 - 0}}
   | #default = 0
+
   | #default = {{Error|Undefined Xenotype. See [[Template:Faction Xenotype Chance|Documentation]] for valid options.}}
 
}}
 
}}
 
| fierce neanderthal tribe = {{#switch: {{lc:{{{2|}}}}}
 
| fierce neanderthal tribe = {{#switch: {{lc:{{{2|}}}}}
Line 30: Line 30:
 
   | yttakin =  0
 
   | yttakin =  0
 
   | baseliner = {{#expr: 1 - 1}}
 
   | baseliner = {{#expr: 1 - 1}}
   | #default =  0
+
   | #default =  {{Error|Undefined Xenotype. See [[Template:Faction Xenotype Chance|Documentation]] for valid options.}}
 
}}
 
}}
 
| savage impid tribe = {{#switch: {{lc:{{{2|}}}}}
 
| savage impid tribe = {{#switch: {{lc:{{{2|}}}}}
Line 44: Line 44:
 
   | yttakin =  0
 
   | yttakin =  0
 
   | baseliner = {{#expr: 1 - 1}}
 
   | baseliner = {{#expr: 1 - 1}}
   | #default = 0
+
   | #default = {{Error|Undefined Xenotype. See [[Template:Faction Xenotype Chance|Documentation]] for valid options.}}
 
}}
 
}}
 +
| civil outlander union
 +
| rough outlander union = {{#switch: {{lc:{{{2|}}}}}
 +
  | dirtmole = 0.05
 +
  | genie = 0.025
 +
  | highmate = 0
 +
  | hussar = 0.05
 +
  | impid = 0
 +
  | neanderthal = 0.025
 +
  | pigskin = 0
 +
  | sanguophage = 0
 +
  | waster = 0
 +
  | yttakin =  0
 +
  | baseliner = {{#expr: 1 - (0.05 + 0.025 + 0.05 + 0.025)}}
 +
  | #default = {{Error|Undefined Xenotype. See [[Template:Faction Xenotype Chance|Documentation]] for valid options.}}
 +
}}
 +
| rough pig union = {{#switch: {{lc:{{{2|}}}}}
 +
  | dirtmole = 0
 +
  | genie = 0
 +
  | highmate = 0
 +
  | hussar = 0
 +
  | impid = 0
 +
  | neanderthal = 0
 +
  | pigskin = 1
 +
  | sanguophage = 0
 +
  | waster = 0
 +
  | yttakin =  0
 +
  | baseliner = {{#expr: 1 - 1}}
 +
  | #default = {{Error|Undefined Xenotype. See [[Template:Faction Xenotype Chance|Documentation]] for valid options.}}
 +
}}
 +
| pirates
 +
| pirate gang
 +
| cannibal pirate gang = {{#switch: {{lc:{{{2|}}}}}
 +
  | dirtmole = 0.1
 +
  | genie = 0.025
 +
  | highmate = 0
 +
  | hussar = 0.05
 +
  | impid = 0.025
 +
  | neanderthal = 0.025
 +
  | pigskin = 0.025
 +
  | sanguophage = 0
 +
  | waster = 0.025
 +
  | yttakin =  0.025
 +
  | baseliner = {{#expr: 1 - (0.1 + 0.025 + 0.05 + 0.025 + 0.025 + 0.025 + 0.025 + 0.025)}}
 +
  | #default = {{Error|Undefined Xenotype. See [[Template:Faction Xenotype Chance|Documentation]] for valid options.}}
 +
}}
 +
| yttakin pirates = {{#switch: {{lc:{{{2|}}}}}
 +
  | dirtmole = 0
 +
  | genie = 0
 +
  | highmate = 0
 +
  | hussar = 0
 +
  | impid = 0
 +
  | neanderthal = 0
 +
  | pigskin = 0
 +
  | sanguophage = 0
 +
  | waster = 0
 +
  | yttakin =  1
 +
  | baseliner = {{#expr: 1 - 1}}
 +
  | #default = {{Error|Undefined Xenotype. See [[Template:Faction Xenotype Chance|Documentation]] for valid options.}}
 +
}}
 +
| waster pirates = {{#switch: {{lc:{{{2|}}}}}
 +
  | dirtmole = 0.05
 +
  | genie = 0.025
 +
  | highmate = 0
 +
  | hussar = 0.05
 +
  | impid = 0.025
 +
  | neanderthal = 0.05
 +
  | pigskin = 0.025
 +
  | sanguophage = 0
 +
  | waster = 0.725
 +
  | yttakin =  0.025
 +
  | baseliner = {{#expr: 1 - (0.05 + 0.025 + 0.05 + 0.025 + 0.05 + 0.025 + 0.725 + 0.025)}}
 +
  | #default = {{Error|Undefined Xenotype. See [[Template:Faction Xenotype Chance|Documentation]] for valid options.}}
 +
}}
 +
| empire
 +
| shattered empire  = {{#switch: {{lc:{{{2|}}}}}
 +
  | dirtmole = 0
 +
  | genie = 0.10
 +
  | highmate = 0
 +
  | hussar = 0.15
 +
  | impid = 0
 +
  | neanderthal = 0.05
 +
  | pigskin = 0
 +
  | sanguophage = 0
 +
  | waster = 0
 +
  | yttakin =  0
 +
  | baseliner = {{#expr: 1 - (0.10 + 0.15 + 0.05)}}
 +
  | #default = {{Error|Undefined Xenotype. See [[Template:Faction Xenotype Chance|Documentation]] for valid options.}}
 +
}}
 +
| beggars = {{#switch: {{lc:{{{2|}}}}}
 +
  | dirtmole = 0.05
 +
  | genie = 0.05
 +
  | highmate = 0.025
 +
  | hussar = 0.05
 +
  | impid = 0
 +
  | neanderthal = 0.05
 +
  | pigskin = 0.05
 +
  | sanguophage = 0
 +
  | waster = 0
 +
  | yttakin =  0.05
 +
  | baseliner = {{#expr: 1 - (0.05 + 0.05 + 0.025 + 0.05 + 0.05 + 0.05 + 0.05)}}
 +
  | #default = {{Error|Undefined Xenotype. See [[Template:Faction Xenotype Chance|Documentation]] for valid options.}}
 +
}}
 +
| pilgrims = {{#switch: {{lc:{{{2|}}}}}
 +
  | dirtmole = 0.05
 +
  | genie = 0.05
 +
  | highmate = 0.025
 +
  | hussar = 0.05
 +
  | impid = 0
 +
  | neanderthal = 0.05
 +
  | pigskin = 0.05
 +
  | sanguophage = 0
 +
  | waster = 0
 +
  | yttakin =  0.05
 +
  | baseliner = {{#expr: 1 - (0.05 + 0.05 + 0.025 + 0.05 + 0.05 + 0.05 + 0.05)}}
 +
  | #default = {{Error|Undefined Xenotype. See [[Template:Faction Xenotype Chance|Documentation]] for valid options.}}
 +
}}
 +
| outlander refugee group = {{#switch: {{lc:{{{2|}}}}}
 +
  | dirtmole = 0.05
 +
  | genie = 0.05
 +
  | highmate = 0.025
 +
  | hussar = 0.05
 +
  | impid = 0
 +
  | neanderthal = 0.05
 +
  | pigskin = 0.05
 +
  | sanguophage = 0
 +
  | waster = 0
 +
  | yttakin =  0.05
 +
  | baseliner = {{#expr: 1 - (0.05 + 0.05 + 0.025 + 0.05 + 0.05 + 0.05 + 0.05)}}
 +
  | #default = {{Error|Undefined Xenotype. See [[Template:Faction Xenotype Chance|Documentation]] for valid options.}}
 +
}}
 +
| #default = {{Error|Undefined Faction. See [[Template:Faction Xenotype Chance|Documentation]] for valid options.}}
 
}}</includeonly><noinclude>{{Documentation}}</noinclude>
 
}}</includeonly><noinclude>{{Documentation}}</noinclude>

Latest revision as of 02:33, 13 February 2023

Documentation icon Template documentation[view] [edit] [history] [purge]

Takes the Faction and the Xenotype and returns the pre-ideoligion, pre-pawnkind chance for that xenotype to occur in that xenotype.

Unless/Until we make the faction subtypes have their own pages, this is the closest we can get to keeping a central location for the data and updating them all from one place.

See also:

Variables[edit]

First variable is the faction in question, second variable is the xenotype.

Faction[edit]

The faction name. Case doesn't matter but it must be the specific name of the faction type.

Supported
Factions
Faction Type Alternate
Gentle tribe Tribes -
Fierce tribe Tribes -
Savage tribe Tribes -
Cannibal tribe Tribes -
Nudist tribe Tribes -
Fierce neanderthal tribe Tribes -
Savage impid tribe Tribes -
Civil outlander union Outlanders -
Rough outlander union Outlanders -
Rough pig union Outlanders -
Pirate gang Pirates Pirates
Cannibal pirate gang Pirates -
Yttakin pirates Pirates -
Waster pirates Pirates -
Shattered empire Empire Empire
Beggars Minor faction -
Pilgrims Minor faction -
Outlander refugee group Minor faction -

Xenotype[edit]

The xenotype name. Case doesn't matter but it must be the specific name of the xenotype.

Supported
Xenotypes
Dirtmole
Genie
Highmate
Hussar
Impid
Neanderthal
Pigskin
Sanguophage
Waster
Yttakin
Baseliner

Examples[edit]

{{Faction Xenotype Chance|Savage tribe|Baseliner}}

Results in: 1

{{%|{{Faction Xenotype Chance|Shattered EMPIRE|GeNiE}} }}

Results in: 10%

Impids make up {{%|{{Faction Xenotype Chance|Waster pirates|Impid}} }} of the population of Waster pirates.

Results in: Impids make up 2.5% of the population of Waster pirates.