User:Pangaea/Notes on infoboxes

From RimWorld Wiki
Jump to navigation Jump to search

Pawn/Race/Animal

  <!-- Intro -->
| name               = String
| image              = File
| description        = Text    <!-- Plain, from XML files -->
| description_markup = Wikitext   <!-- With markup, for use in the article intro -->
| type               = Page    <!-- Animal? Mech? -->
| subtype            = Page    <!-- Domesticated? -->
<!--   General   -->
| basebodysize       = Float
| basehealthscale    = Float
| basehungerrate     = Float
| comfytemp_max      = Integer
| comfytemp_min      = Integer
| foodtype/diet      = Page
| flammability       = Float
| has_gender         = Boolean
| marketvalue        = Integer
| movespeed          = Float
<!--   Combat   -->
| armorrating_blunt  = Float
| armorrating_heat   = Float
| armorrating_sharp  = Float
| combatpower        = Integer
<!-- Life phases -->
| life_expectancy    = Integer
| mass_adult         = Float
| mass_baby          = Float
| mass_juvenile      = Float
| maturity_age       = Float
| minage_adult       = Float
| minage_baby        = Float
| minage_juvenile    = Float
| gestation_period   = Integer
| offspring_low      = Integer
| offspring_high     = Integer
<!--   Taming/hunting   -->
| handleskill        = Integer
| manhunter_damage   = Float
| manhunter_tamefail = Float
| nameontamechance   = Float
| nuzzlehours        = Integer
| petness            = Float
| predator           = Boolean
| maxpreybodysize    = Float
| trainability       = String     <!-- or Page? -->
| train_haul         = Boolean
| train_obedience    = Boolean
| train_release      = Boolean
| train_rescue       = Boolean
| wildness           = Float
<!--   Product   -->
| egg_amountlow      = Integer
| egg_amounthigh     = Integer
| egg_type           = Integer
| egg_time           = Integer
| leather_amount     = Integer
| leather_type       = Page     <!-- or Page? -->
| meat_amount        = Integer
| meat_type          = Page
| milk_amount        = Integer
| milk_time          = Integer
| shear_time         = Integer
| wool_amount        = Integer
| wool_type          = Page     <!-- or Page? -->
<!--   Other      -->
| ecosystemweight    = Float
| recipes_operation  = List (,) of String
| tradetags          = List (,) of String
<!--| butcherproducts?? (mechs) = Integer-->

Attack data: In Attack table
Lives in data: In Biome table

Biome

May need several child-tables to easier deal with querying on the data. Possibly relevant for:

  • diseases
  • wildplants
  • wildanimals
name
image (example)
description

animaldensity 1.8
plantdensity 0.24
settlementselectionweight 0.95
movementdifficulty 1
forageability0.5
foragedfood RawAgave
wildplantregrowdays27
diseasemtbdays65
  diseases (list/new table)

terrainsbyfertility
  sand, min, max
  soil, min, max etc

baseweathercommonalities
  clear 18, fog 1, rain 2, etc

wildplants
  plantgrass 7.0
  plantdandelion 0.8 etc

wildanimals
  rat 1.3
  hare 1.3 etc

allowedpackanimals
  muffalo, dromedary etc

Weapon (ranged)

Good grief... this is becoming a bit much.

WEAPON RANGED
----------------
name
image
description
category/type (weapon)
subtype? (ranged)

drawguioverlaytrue
altitudelayerItem
alwayshaulabletrue
tickertypeNever
equipmenttypePrimary
usehitpointstrue
pathcost10
selectabletrue
maxhitpoints100
flammability1
deteriorationrate2
beauty
sellpricefactor0
compclassCompEquippable

techlevelIndustrial
smeltabletrue
thingcategories   WeaponsRanged
minqualityforartisticExcellent

recipemaker
  workspeedstatSmithingSpeed
  workskillCrafting
  effectworkingSmith
  skillrequirements (crafting 3, etc)
    disallowedthingdefs
      silver, gold, woodlog, etc
recipeusers
  TableMachining
  ElectricSmithy
researchprerequisiteGunsmithing

weapontags (gun, simplegun, revolver)

defname (bullet_revolver etc)
projectile
  flyoverheadfalse
  damagedefBullet
  damageamountbase12
  stoppingpower1
  armorpenetrationbase0.14
  speed55
  explosionradius1
  preexplosionspawnthingdefFilth_Fuel
  preexplosionspawnchance0.6
  ai_isincendiarytrue

statbases
  worktomake4000
  mass1
  accuracytouch0
  accuracyshort0
  accuracymedium0
  accuracylong0
  rangedweapon_cooldown1

costlist
  steel30
  componentindustrial2

verbs: (wtf..?)
hasstandardcommandtrue
defaultprojectileBullet_Revolver
warmuptime0
range25
burstshotcount3
ticksbetweenburstshots7
soundcastShot_Revolver
soundcasttailGunTail_Light
muzzleflashscale9
forcedmissradius1
cantargetlocationstrue

tools (grip, barrel..)
capacities (blunt, poke..)
power9
cooldowntime2

equippedstatoffsets
  movespeed-0.25