-
Notifications
You must be signed in to change notification settings - Fork 59
Temperature Transforms
juanosarg edited this page Jun 24, 2025
·
1 revision
CompProperties_TempTransforms makes an item transform into a different one if a certain temperature is reached
public float minSafeTemperature;
public float maxSafeTemperature = 100f;
public float progressPerDegreePerTick = 1E-05f;
public string thingToTransformInto = "";It is a comp class, so you just add it in XML in the <comps> tag. It is used for example in Vanilla Cooking Expanded's grills, that turn into "ruined" versions of themselves if frozen, or in vanilla Brewing Expanded's Hot coffee, that turns into Iced coffee when frozen.
<comps>
<li Class="VEF.Cooking.CompProperties_TempTransforms">
<minSafeTemperature>10</minSafeTemperature>
<maxSafeTemperature>75</maxSafeTemperature>
<progressPerDegreePerTick>0.00003</progressPerDegreePerTick>
<thingToTransformInto>VCE_RuinedSimpleGrill</thingToTransformInto>
</li>
</comps>- Abilities
- Aesthetic scaling
- Animal Behaviours
- Apparels
- Buildings
- Cooking
- Factions
- Genes
- Global
- Graphics
- Hediffs
- Maps
- Memes
- OptionalFeatures
- Pawns
- Planet
- Plants
- Storyteller
- Things
- Weapons
- Weathers
- PipeSystem basics
- Resource
- Resource storage
- Resource processor
- Resource to thing
- Resource to power
- Thing to resource
- Resource trader
- Refill building with pipes
- Pipe valve
- Advanced Resource Processor
- Update to KCSG 2.0
- Exporting buildings
- Customizing symbols
- Debug helpers options
- Custom faction settlement
- Custom structure and scenarios
- Custom structure in quests
- Custom structure in WorldObjects
- Biome based structures
- Spawning world object(s) at world generation
- Prevent settlement spawning for nomadic factions