Leather gloves and an LED tube light. (#187)
Added BurnTemperature to bulbs. Added HeatResistance to clothing and species. Added HeatResistanceComponent which resolves armor vs skin. Made the hand burn on lamps only happen when heat resistance is too poor.
This commit is contained in:
committed by
Pieter-Jan Briers
parent
9f1dd9f876
commit
77753debeb
@@ -1,4 +1,4 @@
|
||||
using System;
|
||||
using System;
|
||||
using SS14.Shared.GameObjects;
|
||||
using SS14.Shared.Maths;
|
||||
using SS14.Shared.Serialization;
|
||||
@@ -49,6 +49,12 @@ namespace Content.Server.GameObjects.Components.Power
|
||||
|
||||
public LightBulbType Type = LightBulbType.Tube;
|
||||
|
||||
private int _burningTemperature;
|
||||
public int BurningTemperature => _burningTemperature;
|
||||
|
||||
private float _powerUse;
|
||||
public float PowerUse => _powerUse;
|
||||
|
||||
/// <summary>
|
||||
/// The current state of the light bulb. Invokes the OnLightBulbStateChange event when set.
|
||||
/// It also updates the bulb's sprite accordingly.
|
||||
@@ -82,6 +88,8 @@ namespace Content.Server.GameObjects.Components.Power
|
||||
{
|
||||
serializer.DataField(ref Type, "bulb", LightBulbType.Tube);
|
||||
serializer.DataField(ref _color, "color", Color.White);
|
||||
serializer.DataFieldCached(ref _burningTemperature, "BurningTemperature", 1400);
|
||||
serializer.DataFieldCached(ref _powerUse, "PowerUse", 40);
|
||||
}
|
||||
|
||||
public void UpdateColor()
|
||||
|
||||
Reference in New Issue
Block a user