mirror of
https://github.com/DeltaV-Station/Delta-v.git
synced 2026-09-29 23:57:29 +00:00
* wawa * Minor cleanup, change intro/outro sfx * Fix yaml * wawaskillissue * challenge * Remove unusable audio, update spriting * Kill remaining wawa sfx * Fix name prefix * these sound effects cost £460 * these attributations cost £0 * louder, mono wawa noises * Audio fixes * Tidy server system * Code tidy-up, wawa * Remove locstring hardcodes * Bug fixes, wawa * meta update, wawa * Force antagprotoid to be hardcoded because yaml validation cringe, wawa
20 lines
602 B
C#
20 lines
602 B
C#
using Content.Shared.LegallyDistinctSpaceFerret;
|
|
using Content.Shared.Objectives.Components;
|
|
|
|
namespace Content.Server.LegallyDistinctSpaceFerret;
|
|
|
|
public sealed class HibernateObjectiveSystem : EntitySystem
|
|
{
|
|
public override void Initialize()
|
|
{
|
|
base.Initialize();
|
|
|
|
SubscribeLocalEvent<HibernateConditionComponent, ObjectiveGetProgressEvent>(OnHibernateGetProgress);
|
|
}
|
|
|
|
private static void OnHibernateGetProgress(EntityUid uid, HibernateConditionComponent comp, ref ObjectiveGetProgressEvent args)
|
|
{
|
|
args.Progress = comp.Hibernated ? 1.0f : 0.0f;
|
|
}
|
|
}
|