mirror of
https://github.com/DeltaV-Station/Delta-v.git
synced 2026-10-01 16:47:26 +00:00
* cant disguise to thing in a container * copy cigarette visualiser * prevent aghost throwing an error * make disguises die in space * fuck it rewrite it to not use polymorph * fix action troll * oop --------- Co-authored-by: deltanedas <@deltanedas:kde.org>
31 lines
873 B
C#
31 lines
873 B
C#
using Content.Shared.FixedPoint;
|
|
using Robust.Shared.GameStates;
|
|
|
|
namespace Content.Shared.Polymorph.Components;
|
|
|
|
/// <summary>
|
|
/// Added to a player when they use a chameleon projector.
|
|
/// Handles making them invisible and revealing when damaged enough or switching hands.
|
|
/// </summary>
|
|
[RegisterComponent, NetworkedComponent]
|
|
public sealed partial class ChameleonDisguisedComponent : Component
|
|
{
|
|
/// <summary>
|
|
/// How much damage can be taken before revealing automatically.
|
|
/// </summary>
|
|
[DataField]
|
|
public FixedPoint2 Integrity = FixedPoint2.Zero;
|
|
|
|
/// <summary>
|
|
/// The disguise entity parented to the player.
|
|
/// </summary>
|
|
[DataField]
|
|
public EntityUid Disguise;
|
|
|
|
/// <summary>
|
|
/// For client, whether the user's sprite was previously visible or not.
|
|
/// </summary>
|
|
[DataField]
|
|
public bool WasVisible;
|
|
}
|