Make holofans use power cells (#8813)
This commit is contained in:
@@ -6,28 +6,14 @@ namespace Content.Server.Holosign
|
||||
[RegisterComponent]
|
||||
public sealed class HolosignProjectorComponent : Component
|
||||
{
|
||||
[ViewVariables]
|
||||
[DataField("maxCharges")]
|
||||
public int MaxCharges = 6;
|
||||
|
||||
[ViewVariables(VVAccess.ReadWrite), DataField("charges")]
|
||||
public int CurrentCharges = 6;
|
||||
|
||||
[ViewVariables(VVAccess.ReadWrite)]
|
||||
[DataField("signProto", customTypeSerializer:typeof(PrototypeIdSerializer<EntityPrototype>))]
|
||||
public string SignProto = "HolosignWetFloor";
|
||||
|
||||
/// <summary>
|
||||
/// When the holosign was last used.
|
||||
/// How much charge a single use expends.
|
||||
/// </summary>
|
||||
[ViewVariables(VVAccess.ReadWrite), DataField("lastUse")]
|
||||
public TimeSpan LastUsed = TimeSpan.Zero;
|
||||
|
||||
/// <summary>
|
||||
/// How long it takes for 1 charge to accumulate.
|
||||
/// </summary>
|
||||
[ViewVariables(VVAccess.ReadWrite)]
|
||||
[DataField("rechargeTime")]
|
||||
public TimeSpan RechargeTime = TimeSpan.FromSeconds(30);
|
||||
[ViewVariables(VVAccess.ReadWrite), DataField("chargeUse")]
|
||||
public float ChargeUse = 50f;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user