Difference between revisions of "User:Arcangelus/Sandbox"

From RimWorld Wiki
Jump to navigation Jump to search
m
 
(3 intermediate revisions by the same user not shown)
Line 16: Line 16:
 
  13/(13 + Path cost)  
 
  13/(13 + Path cost)  
 
Also uses float points, for some reason.
 
Also uses float points, for some reason.
{| {{STDT| sortable c_25 text-center}}
 
! Type !! Move Speed <br/>Modifier !! [[Plants#Fertility|Fertility]] !! Terrain<br/>Support !! [[Bridge]]able !! Diggable<ref>Able to dig graves</ref> !! Terrain<br/>Type !! Beauty !! Cleanliness !! Filth<br/>mask<ref>All Natural Terrains that accept filth only accept '''Unnatural''' filth.</ref> !! Dries To<ref>As Stony soil doesn't exist in [[Sea ice]] nor [[Ice sheet]], it dries to Ice instead.</ref> !! Others !! Path<br/>cost !! Generates<br/>Filth !! Extra
 
|- id="Broken asphalt"
 
! Broken asphalt
 
| 100% || 0% || Heavy || {{Cross}} || {{Cross}} || - || -1 || 2 || {{Check}} || - || Road || 0 || {{Cross}} ||
 
|- id="Packed dirt"
 
! Packed dirt
 
| 92.9% || 0% || Heavy || {{Cross}} || {{Check}} || Soil || -1 || -1 || {{Check}} || - || Road || 1 || [[Filth#Dirt|Dirt]] ||
 
  
|- id="Chest-deep moving water"
+
For setting categories on [[Template:Version Nav]]. Need more testing before replacing:<br/>
! Chest-deep moving water
+
<code><nowiki>{{#ifeq:{{#titleparts: {{PAGENAME}} | 1 }} | Version | [[Category:PC version|{{#invoke:String|match|{{PAGENAME}} |%d+|match=1}}.{{#invoke:String|match| {{PAGENAME}} |%d+|match=2}}]] | [[Category:Console version]] }}</nowiki></code>. This adds specific a category based on the version, but won't work well for the Alphas/Betas.
| 23.6% || 0% || - || {{Check}} || {{Cross}} || - || 0 || 0 || {{Cross}} || - || water<ref>All water tiles triple the deterioration rate and extinguishes Fire. Also allows the '''WaterInEyes''' attack.</ref> || 42 || {{Cross}} ||
 
|- id="Deep ocean water"
 
! Deep ocean water
 
| 0% || 0% || - || {{Cross}} || {{Cross}} || - || 0 || 0 || {{Cross}} || - || water<br/> ocean || 300 || {{Cross}} || Impassable<ref>It would be 4.2% otherwise</ref>
 
|- id="Deep water"
 
! Deep water
 
| 0% || 0% || - || {{Cross}} || {{Cross}} || - || 0 || 0 || {{Cross}} || - || water || 300 || {{Cross}} || Impassable
 
  
|- id="Shallow ocean water"
+
Current Version:<br/>
! Shallow ocean water
+
<code><nowiki>{{#ifeq: {{#sub:{{#var:pagename}}||8}}|Version/| [[Category:PC version|{{#explode:{{#var:pagename}}|.|-3}}.{{#ifexpr: {{#len:{{#explode:{{#var:pagename}}|.|-2}} }} = 1 | 0 }}{{#explode:{{#var:pagename}}|.|-2}}.{{#explode:{{#var:pagename}}|.|-1}}]]}}{{#ifeq: {{#sub:{{#var:pagename}}||16}}|Console version/|[[Category:Console version]]}}</nowiki></code>
| 30.2% || 0% || ShallowWater || {{Check}} || {{Cross}} || - || 0 || 0 || {{Cross}} || Stony soil || water<br/> ocean || 30 || {{Cross}} ||
 
|- id="Shallow moving water"
 
! Shallow moving water
 
| 30.2% || 0% || ShallowWater<br/> MovingFluid || {{Check}} || {{Cross}} || - || 0 || 0 || {{Cross}} || - || water<br/> River || 30 || {{Cross}} ||
 
|- id="Shallow water"
 
! Shallow water
 
| 30.2% || 0% || ShallowWater || {{Check}} || {{Cross}} || - || 0 || 0 || {{Cross}} || Stony soil || water || 30 || {{Cross}} ||
 
|- id="Marsh"
 
! Marsh
 
| 30.2% || 0% || ShallowWater || {{Check}} || {{Cross}} || - || -3/0 || -2 || {{Cross}} || Soil ||  || 30 || [[Filth#Dirt|Dirt]] || Extinguishes Fire<br/> MudInEyes.
 
  
|- id="Soil"
+
Intermediate Version:<br/>
! Soil
+
<code><nowiki>{{#ifeq: {{#titleparts: {{PAGENAME}} | 1 }} | Version | [[Category:PC version]] | [[Category:Console version]] }}</nowiki></code> This replicates the current effect with less overhead.
| 86.6% || 100% || Heavy<br/> GrowSoil || {{Cross}} || {{Check}} || Soil || -3/0 || -1 || {{Check}} || - || Soil || 2 || [[Filth#Dirt|Dirt]] || DirtInEyes<br/> Soil
 
|- id="Lichen-covered soil"
 
! Lichen-covered soil
 
| 81.2% || 100% || Heavy<br/> GrowSoil || {{Cross}} || {{Check}} || Soil || -3/0 || -1 || {{Check}} || - || Soil || 3 || [[Filth#Dirt|Dirt]] ||  DirtInEyes<br/> Soil
 
|- id="Marshy soil"
 
! Marshy soil
 
| 48.1% || 100% || Light<br/> GrowSoil || {{Check}} || {{Check}} || Soil || -3/0 || -2 || {{Check}} || Soil || Soil || 14 || [[Filth#Dirt|Dirt]] || DirtInEyes<br/> Soil
 
|- id="Rich soil"
 
! Rich soil
 
| 86.7% || 140% || Heavy<br/> GrowSoil || {{Check}} || {{Check}} || Soil || -3/0 || -1 || {{Check}} || Soil || Soil || 2 || [[Filth#Dirt|Dirt]] || DirtInEyes<br/> Soil
 
 
 
|- id="Gravel"
 
! Stony soil
 
| 86.7% || 70% || Heavy<br/> GrowSoil || {{Check}} || {{Check}} || - || -3/0 || -1 || {{Check}} || - || Soil || 2 || [[Filth#Dirt|Dirt]] ||  GravelInEyes<br/> Soil
 
 
 
|- id="Sand"
 
! Sand
 
| 76.4% || 10% || Heavy || {{Cross}} || {{Check}} || Sand || -3/0 || -1 || {{Check}} || - || Sand || 4 || [[Filth#Sand|Sand]]||  SandInEyes
 
|- id="Soft sand"
 
! Soft sand
 
| 48.1% || 0% || Light || {{Cross}} || {{Check}} || Sand || -3/0 || -1 || {{Check}} || Sand || Sand || 14 || [[Filth#Sand|Sand]] ||  SandInEyes
 
 
 
|- id="Mud"
 
! Mud
 
| 48.1% || 0% || - || {{Check}} || {{Cross}} || Soil || -3/0 || -2 || {{Check}} || Soil || - || 14 || [[Filth#Dirt|Dirt]] ||  MudInEyes
 
|- id="Ice"
 
! Ice
 
| 48.1% || 0% || Heavy || {{Cross}} || {{Check}} || - || -3/0 || 0 || {{Check}} || - || - || 14 || [[Filth#Dirt|Dirt]] || -
 
 
 
|- id="Polluted soil"
 
! [[Pollution|Polluted soil]]
 
| 87% || 50% || Heavy || {{Cross}} || || Soil ||  ||  || || - ||  || 2 || {{Cross}} || Allegedly, it will replace any terrain of fertility > 0%.
 
|- id="Rough stone"
 
! [[Rough stonestone]]
 
| {{%|{{Q|Rough stone|Move Speed Factor}} }} || 0% || Heavy || {{Cross}} || {{Cross}}  || Stone || -1 || 0 || {{Check}}<ref>Plus any defined on NaturalTerrainBase. In vanilla, this in just the Unnatural filth.</ref> || - || - || 2 || {{Cross}} || Smooothable<br/>Hardcoded
 
|- id="Rough-hewn stone"
 
! [[Rough-hewn stone]]
 
| {{%|{{Q|Rough-hewn stone|Move Speed Factor}} }}|| 0% || Heavy || {{Cross}} || {{Cross}} || Stone || -1 || 0 || All || - || - || 1 || {{Cross}} || Smooothable<br/>Hardcoded
 
|- id="Smooth stone"
 
! [[Smooth stone]]
 
| {{%|{{Q|Smooth stone|Move Speed Factor}} }}|| 0% || Heavy || {{Cross}} || {{Cross}} || Stone || 2 || 0 || All  || - || - || 0 || {{Cross}} || 5{{Icon Small|silver}}. <br/>Not naturally generated<br/>Paintable<br/>Hardcoded
 
|- id="Gray Surface"
 
! [[Gray surface]]
 
| 87% || 0% || Heavy || {{Cross}} || {{Cross}} || ? || 0 || 0 || ? || - || ? || 2 || {{Cross}} || Only present on the Labyrinth.
 
|- id="Flesh Floor"
 
! [[Flesh]]{{AnomalyIcon}}
 
| 87% || 0 || Heavy || {{Cross}} || {{Cross}}? || ? || -10/-5 || -3 || {{Check}}? || - || ? || 2 || ? || Cleaning time Mult 150%<br/>Removable.<br/>Inflammable 32%
 
<!--
 
Removed for being a floor
 
|- id="Fungal Gravel"
 
! [[Fungal gravel]]{{IdeologyIcon}}
 
| 87% || 70% || Floor base || {{Cross}} || {{Cross}} || - || -1 || -1 || All? || || || || 2 || WorkToBuild 1000 -->
 
|}
 
 
 
 
 
-----
 
{| {{STDT| sortable c_25 text-center}}
 
! Type !! Move Speed <br/>Modifier !! [[Plants#Fertility|Fertility]] !! Terrain<br/>Support !! [[Bridge]]able !! [[Grave|Diggable]] !! Terrain<br/>Type !! Beauty !! [[Cleanliness]] !! Filth<br/>mask{{ref label|Fmask|2}} !! Dries<br/> To{{ref label|DriesTo|3}} !! Tags !! [[Path cost|Path<br/>cost]] !! [[Filth#Generation|Generates<br/>Filth]] !! Allows<br/>Special<br/>Attack{{ref label|ASA|6}} !! Others
 
|- id="Broken asphalt"
 
! Broken asphalt
 
| 100% || 0% || Heavy || {{Cross}} || {{Cross}} || - || -1 || 2 || {{Check}} || - || Road || 0 || {{Cross}} || {{Cross}} ||
 
|- id="Packed dirt"
 
! Packed dirt
 
| 92.9% || 0% || Heavy || {{Cross}} || {{Check}} || Soil || -1 || -1 || {{Check}} || - || Road || 1 || [[Filth#Dirt|Dirt]] || {{Cross}} ||
 
 
 
|- id="Chest-deep moving water"
 
! Chest-deep moving water
 
| 23.6% || 0% || - || {{Check}} || {{Cross}} || - || 0 || 0 || {{Cross}} || - || water{{ref label|water|4|1}} || 42 || {{Cross}} || WaterInEyes ||
 
|- id="Deep ocean water"
 
! Deep ocean water
 
| 0% || 0% || - || {{Cross}} || {{Cross}} || - || 0 || 0 || {{Cross}} || - || water{{ref label|water|4|2}}<br/> ocean || 300{{ref label|Impassable|5|1}} || {{Cross}} || WaterInEyes || Impassable
 
|- id="Deep water"
 
! Deep water
 
| 0% || 0% || - || {{Cross}} || {{Cross}} || - || 0 || 0 || {{Cross}} || - || water{{ref label|water|4|3}} || 300{{ref label|Impassable|5|2}} || {{Cross}} || WaterInEyes || Impassable
 
 
 
|- id="Shallow ocean water"
 
! Shallow ocean water
 
| 30.2% || 0% || ShallowWater || {{Check}} || {{Cross}} || - || 0 || 0 || {{Cross}} || [[#Gravel|Stony soil]] || water{{ref label|water|4|4}}<br/> ocean || 30 || {{Cross}} || WaterInEyes ||
 
|- id="Shallow moving water"
 
! Shallow moving water
 
| 30.2% || 0% || ShallowWater<br/> MovingFluid || {{Check}} || {{Cross}} || - || 0 || 0 || {{Cross}} || - || water{{ref label|water|4|5}}<br/> River || 30 || {{Cross}} || WaterInEyes ||
 
|- id="Shallow water"
 
! Shallow water
 
| 30.2% || 0% || ShallowWater || {{Check}} || {{Cross}} || - || 0 || 0 || {{Cross}} || [[#Gravel|Stony soil]] || water{{ref label|water|4|6}} || 30 || {{Cross}} || WaterInEyes ||
 
|- id="Marsh"
 
! Marsh
 
| 30.2% || 0% || ShallowWater || {{Check}} || {{Cross}} || - || -3/0 || -2 || {{Cross}} || [[#Soil|Soil]] || - || 30 || [[Filth#Dirt|Dirt]] || MudInEyes || Extinguishes Fire
 
 
 
|- id="Soil"
 
! Soil
 
| 86.6% || 100% || Heavy<br/> GrowSoil || {{Cross}} || {{Check}} || Soil || -3/0 || -1 || {{Check}} || - || Soil || 2 || [[Filth#Dirt|Dirt]] || DirtInEyes ||
 
|- id="Lichen-covered soil"
 
! Lichen-covered soil
 
| 81.2% || 100% || Heavy<br/> GrowSoil || {{Cross}} || {{Check}} || Soil || -3/0 || -1 || {{Check}} || - || Soil || 3 || [[Filth#Dirt|Dirt]] || DirtInEyes ||
 
|- id="Marshy soil"
 
! Marshy soil
 
| 48.1% || 100% || Light<br/> GrowSoil || {{Check}} || {{Check}} || Soil || -3/0 || -2 || {{Check}} || [[#Soil|Soil]] || Soil || 14 || [[Filth#Dirt|Dirt]] || DirtInEyes ||
 
|- id="Rich soil"
 
! Rich soil
 
| 86.7% || 140% || Heavy<br/> GrowSoil || {{Check}} || {{Check}} || Soil || -3/0 || -1 || {{Check}} || [[#Soil|Soil]] || Soil || 2 || [[Filth#Dirt|Dirt]] || DirtInEyes ||
 
 
 
|- id="Gravel"
 
! Stony soil
 
| 86.7% || 70% || Heavy<br/> GrowSoil || {{Check}} || {{Check}} || - || -3/0 || -1 || {{Check}} || - || Soil || 2 || [[Filth#Dirt|Dirt]] || GravelInEyes ||
 
 
 
|- id="Sand"
 
! Sand
 
| 76.4% || 10% || Heavy || {{Cross}} || {{Check}} || Sand || -3/0 || -1 || {{Check}} || - || Sand || 4 || [[Filth#Sand|Sand]] || SandInEyes ||
 
|- id="Soft sand"
 
! Soft sand
 
| 48.1% || 0% || Light || {{Cross}} || {{Check}} || Sand || -3/0 || -1 || {{Check}} || [[#Sand|Sand]] || Sand || 14 || [[Filth#Sand|Sand]] || SandInEyes ||
 
 
 
|- id="Mud"
 
! Mud
 
| 48.1% || 0% || - || {{Check}} || {{Cross}} || Soil || -3/0 || -2 || {{Check}} || [[#Soil|Soil]] || - || 14 || [[Filth#Dirt|Dirt]] ||  MudInEyes ||
 
|- id="Ice"
 
! Ice
 
| 48.1% || 0% || Heavy || {{Cross}} || {{Check}} || - || -3/0 || 0 || {{Check}} || - || - || 14 || [[Filth#Dirt|Dirt]] || {{Cross}} || -
 
 
 
|- id="Polluted soil"
 
! [[Pollution|Polluted soil]]
 
| 87% || 50%{{ref label|Polluted_S|9}} || Heavy || {{Cross}} || ? || Soil ||  ||  || || - ||  || 2 || {{Cross}}? || {{Cross}} || Allegedly, it will replace any terrain of fertility > 0%.
 
|- id="Rough stone"
 
! [[Rough stonestone]]
 
| {{%|{{Q|Rough stone|Move Speed Factor}} }} || 0% || Heavy || {{Cross}} || {{Cross}} || Stone || -1 || 0 || {{Check}}{{ref label|RStone|7}} || - || - || 2 || {{Cross}} || {{Cross}} || Smooothable<br/>Hardcoded{{ref label|Hardcode|8}}
 
|- id="Rough-hewn stone"
 
! [[Rough-hewn stone]]
 
| {{%|{{Q|Rough-hewn stone|Move Speed Factor}} }}|| 0% || Heavy || {{Cross}} || {{Cross}} || Stone || -1 || 0 || All || - || - || 1 || {{Cross}} || {{Cross}} || Smooothable<br/>Hardcoded{{ref label|Hardcode|8}}
 
|- id="Smooth stone"
 
! [[Smooth stone]]
 
| {{%|{{Q|Smooth stone|Move Speed Factor}} }}|| 0% || Heavy || {{Cross}} || {{Cross}} || Stone || 2 || 0 || All  || - || - || 0 || {{Cross}} || {{Cross}} || 5{{Icon Small|silver}}.<br/>Natural, non-generated floor/terrain hybrid.<br/>Paintable<br/>Hardcoded{{ref label|Hardcode|8}}
 
|- id="Gray Surface"
 
! [[Gray surface]]
 
| 87% || 0% || Heavy || {{Cross}} || {{Cross}} || ? || 0 || 0 || {{Check}}? || - || ? || 2 || {{Cross}} || {{Cross}} || Only present on the Labyrinth.
 
|- id="Flesh Floor"
 
! [[Flesh]]{{AnomalyIcon}}
 
| 87% || 0 || Heavy || {{Cross}} || {{Cross}}? || ? || -10/-5 || -3 || {{Check}}? || - || ? || 2 || ? || {{Cross}} || Cleaning time Mult 150%<br/>Removable.<br/>Inflammable 32%<br/>Behaves like a natural Floor.
 
<!--
 
Removed for being a floor
 
|- id="Fungal Gravel"
 
! [[Fungal gravel]]{{IdeologyIcon}}
 
| 87% || 70% || Floor base || {{Cross}} || {{Cross}} || - || -1 || -1 || All? || || || || 2 || {{Cross}} || WorkToBuild 1000 -->
 
|}
 
 
 
:{{note label|Fmask|2}}The kind of Filth accepted by this terrain. {{Check}} denotes terrains that accept '''Unnatural''' filth, {{Cross}} those that accept none. Special cases are denoted as such.
 
:{{note label|DriesTo|3}}As Stony soil doesn't exist in [[Sea ice]] nor [[Ice sheet]], it dries to Ice instead.
 
:4{{note label|water||1}}{{note label|water||2}}{{note label|water||3}}{{note label|water||4}}{{note label|water||5}}{{note label|water||6}} All water tiles triple the deterioration rate and extinguishes Fire. Also allows the '''WaterInEyes''' attack.
 
:5{{note label|Impossible||1}}{{note label|Impossible||2}}Redundant dut to being Impassable. It would result in a 4.2% '''Move Speed Modifier''' otherwise.
 
:{{note label|ASA|6}}All of these attacks have a cooldown of 1.5 seconds, require the '''KickMaterialInEyes''' capacity, and apply a Hediff of the same name.
 
:{{note label|RStone|7}}Plus any defined on NaturalTerrainBase. In vanilla, this in just the Unnatural filth.
 
:{{note label|Hardcode|8}}Not on the xml files but rather defined programmatically for all stone types.
 
:{{note label|Polluted_S|0}}Only if the subjacent terrains as a fertility above 50%. I presume 0% otherwise.
 
 
 
The '''Terrain Support''' propriety determines what kind of structure can be build on a given terrain. If a given structures has '''Terrain Affordance''' not listed on a given terrain, then its construction won'r be allowed. The types used are:
 
*'''Light''': Supports light structure<br/>
 
*'''Medium''': Supports medium structures<br/>
 
*'''Heavy''': Supports heavy structures<br/>
 
*'''ShallowWater''': Can be built on with things that are waterproof<br/>
 
*'''MovingFluid''' (moving water): Contains power usable for hydroelectrics<br/>
 
*'''Bridgeable''': Bridge can be built here<br/>
 
*'''GrowSoil''' (growable): Things can grow here. Unsure if is does anything or if merely indicative.<br/>
 
*'''Diggable''': For graves<br/>
 
*'''SmoothableStone''' (smoothable): Can be ground and smoothed into smooth stone<br/>
 
 
 
As of [[Version/1.5.4104]], all terrains with Heavy '''Terrain Support''' also support both Medium and Light. To help the readability of this table, only the '''Heavy''' tag will be used in those cases.
 
 
 
 
 
 
 
I Believe Polluted Soil acts as a modifier on the terrain rather than a terrain itself. Untested, as I haven't been able to play at all lately.<br/>
 
-1 Beauty is applied to the tile.
 
 
 
-----
 
#Mod-development
 
say, it seems like the Wiki may be wrong about smoothed floors being worth 8 wealth? Unless "5f" translates to 8
 
 
 
I see the terraindef for Stone is set to 5f here, in TerrainDefGenerator_Stone.cs:
 
 
 
StatUtility.SetStatValueInList(ref smooth.statBases, StatDefOf.Beauty, 2f);
 
StatUtility.SetStatValueInList(ref smooth.statBases, StatDefOf.MarketValue, 5f);
 
(this is in 1.5, haven't checked the source for 1.4 or before. Trying to make a mod to set smoothed floor wealth as nothing)
 

Latest revision as of 21:15, 8 August 2024

Welcome to the RimWorld Wiki sandbox!
This sandbox is where you can experiment and practice working on a wiki page. This page will usually have little or no content. Feel free to add content or to make changes and save them to see the results.

To learn about editing and formatting start here: Help:Contents. Just start with the basics... enter some text, and learn the other pieces as you go.

Your content contributions are welcome and important. The wiki is a collaborative effort and others can help with formatting and other improvements.]

Best wishes!

Creating page.

  • Do changes here appear on Recent changes? Yes.
  • Does this apply to sandbox as well?

subst:


https://rimworldwiki.com/index.php?title=Environment

Naturally generated surfaces[edit]

The function SpeedPercentString is:

13/(13 + Path cost) 

Also uses float points, for some reason.

For setting categories on Template:Version Nav. Need more testing before replacing:
{{#ifeq:{{#titleparts: {{PAGENAME}} | 1 }} | Version | [[Category:PC version|{{#invoke:String|match|{{PAGENAME}} |%d+|match=1}}.{{#invoke:String|match| {{PAGENAME}} |%d+|match=2}}]] | [[Category:Console version]] }}. This adds specific a category based on the version, but won't work well for the Alphas/Betas.

Current Version:
{{#ifeq: {{#sub:{{#var:pagename}}||8}}|Version/| [[Category:PC version|{{#explode:{{#var:pagename}}|.|-3}}.{{#ifexpr: {{#len:{{#explode:{{#var:pagename}}|.|-2}} }} = 1 | 0 }}{{#explode:{{#var:pagename}}|.|-2}}.{{#explode:{{#var:pagename}}|.|-1}}]]}}{{#ifeq: {{#sub:{{#var:pagename}}||16}}|Console version/|[[Category:Console version]]}}

Intermediate Version:
{{#ifeq: {{#titleparts: {{PAGENAME}} | 1 }} | Version | [[Category:PC version]] | [[Category:Console version]] }} This replicates the current effect with less overhead.