Familiars respawn (#7640)

This commit is contained in:
Rane
2022-04-23 22:27:19 -04:00
committed by GitHub
parent a74e6842d9
commit 6054c5bc53
16 changed files with 129 additions and 10 deletions

View File

@@ -1,7 +1,6 @@
using Robust.Shared.Serialization.TypeSerializers.Implementations.Custom.Prototype;
using Robust.Shared.Prototypes;
using Content.Shared.Actions.ActionTypes;
using Content.Server.Bible;
using Robust.Shared.Utility;
namespace Content.Server.Bible.Components
@@ -22,6 +21,12 @@ namespace Content.Server.Bible.Components
[DataField("requriesBibleUser")]
public bool RequiresBibleUser = true;
/// <summary>
/// The specific creature this summoned, if the SpecialItemPrototype has a mobstate.
/// </summary>
[ViewVariables]
public EntityUid? Summon = null;
[DataField("summonAction")]
public InstantAction SummonAction = new()
{
@@ -30,5 +35,13 @@ namespace Content.Server.Bible.Components
Description = "bible-summon-verb-desc",
Event = new SummonActionEvent(),
};
/// Used for respawning
[ViewVariables]
[DataField("accumulator")]
public float Accumulator = 0f;
[ViewVariables]
[DataField("respawnTime")]
public float RespawnTime = 180f;
}
}