Add heat conduction (#1653)
This commit is contained in:
committed by
GitHub
parent
619386a04a
commit
ca68fbe818
@@ -26,6 +26,7 @@ namespace Content.Shared.Maps
|
||||
public bool CanCrowbar { get; private set; }
|
||||
public string FootstepSounds { get; private set; }
|
||||
public float Friction { get; set; }
|
||||
public float ThermalConductivity { get; set; }
|
||||
public string ItemDropPrototypeName { get; private set; }
|
||||
|
||||
public void AssignTileId(ushort id)
|
||||
@@ -68,6 +69,15 @@ namespace Content.Shared.Maps
|
||||
Friction = 0;
|
||||
}
|
||||
|
||||
if (mapping.TryGetNode("thermalConductivity", out node))
|
||||
{
|
||||
ThermalConductivity = node.AsFloat();
|
||||
}
|
||||
else
|
||||
{
|
||||
ThermalConductivity = 0.05f;
|
||||
}
|
||||
|
||||
if (mapping.TryGetNode("item_drop", out node))
|
||||
{
|
||||
ItemDropPrototypeName = node.ToString();
|
||||
|
||||
Reference in New Issue
Block a user