* [Feature] Holo Update (#948) * Это база, основа, фундамент. * update icons * based2 * zamena headcoder * протоНовые функции Обновлены окна персонажа для отображения статистики и навыков игрока. Добавлена система боевой музыки, которая активируется во время боя. Реализована функция широковещательной передачи сообщений в чате для нескольких получателей. Внедрены изменения на основе навыков и статистики для медицинских систем, включая дефибриллятор и лечение. Улучшена система ближнего боя с новыми действиями и сообщениями. Введена система предсказуемого рандома для продвинутой генерации случайных значений. Навыки и статистика теперь зависят от назначений на работу. * abilities * zvuk * tweaks & fixes * sprite fix * govno * govno2 * fix govna * GOVNOOOOOOOOOOOO * finally * цена (cherry picked from commit cf4a7d0a7ccb780905e0df7db80d60d2338c02d0) * Automatic changelog update (cherry picked from commit 32a1f13849b4593fa03eafff99179814278f5f11) --------- Co-authored-by: RavmorganButOnCocaine <valtos@nextmail.ru>
50 lines
1.7 KiB
C#
50 lines
1.7 KiB
C#
using Content.Shared._White.Guardian;
|
|
using Robust.Shared.GameStates;
|
|
using Robust.Shared.Prototypes;
|
|
using Robust.Shared.Serialization.TypeSerializers.Implementations.Custom.Prototype;
|
|
|
|
namespace Content.Shared.Guardian
|
|
{
|
|
/// <summary>
|
|
/// Creates a GuardianComponent attached to the user's GuardianHost.
|
|
/// </summary>
|
|
[RegisterComponent, NetworkedComponent]
|
|
public sealed partial class GuardianCreatorComponent : Component
|
|
{
|
|
/// <summary>
|
|
/// Counts as spent upon exhausting the injection
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// We don't mark as deleted as examine depends on this.
|
|
/// </remarks>
|
|
[DataField]
|
|
public bool Used = false;
|
|
|
|
/// <summary>
|
|
/// The prototype of the guardian entity which will be created
|
|
/// </summary>
|
|
[DataField("guardianProto",
|
|
customTypeSerializer: typeof(PrototypeIdSerializer<EntityPrototype>),
|
|
required: true)]
|
|
public string GuardianProto;
|
|
|
|
/// <summary>
|
|
/// How long it takes to inject someone.
|
|
/// </summary>
|
|
[DataField("delay")]
|
|
public float InjectionDelay = 5f;
|
|
|
|
[DataField("guardiansAvaliable")]
|
|
public IReadOnlyCollection<string> GuardiansAvaliable = ArraySegment<string>.Empty;
|
|
|
|
[DataField]
|
|
public Dictionary<GuardianSelector, string> GuardianSelectorToProto = new()
|
|
{
|
|
{ GuardianSelector.Assasin, "MobHoloparasiteGuardianAssasin" },
|
|
{ GuardianSelector.Standart, "MobHoloparasiteGuardianStandart" },
|
|
{ GuardianSelector.Charger, "MobHoloparasiteGuardianCharger" },
|
|
{ GuardianSelector.Lighting, "MobHoloparasiteGuardianLighting" }
|
|
};
|
|
}
|
|
}
|