From b028d711fe1b3548cb2f26923f86fa8104472955 Mon Sep 17 00:00:00 2001 From: Ed Date: Tue, 23 Sep 2025 20:37:17 +0300 Subject: [PATCH] delete outdated game rules --- .../Rules/CP14BloodMoonCurseRule.cs | 114 ------------------ .../GameTicking/Rules/CP14BloodMoonRule.cs | 54 --------- .../GameTicking/Rules/CP14CrashingShipRule.cs | 112 ----------------- .../Rules/CP14ExpeditionToWindlandsRule.cs | 54 --------- .../GameTicking/Rules/CP14WeatherRule.cs | 58 --------- .../CP14BloodMoonCurseRuleComponent.cs | 26 ---- .../Components/CP14BloodMoonRuleComponent.cs | 20 --- .../Components/CP14CrashingShipComponent.cs | 19 --- .../CP14CrashingShipRuleComponent.cs | 17 --- .../CP14ExpeditionToWindlandsRuleComponent.cs | 20 --- .../Components/CP14WeatherRuleComponent.cs | 11 -- .../Prototypes/_CP14/GameRules/events.yml | 22 ---- .../_CP14/GameRules/judgement_night.yml | 34 ------ .../Prototypes/_CP14/GameRules/roundstart.yml | 59 +++------ 14 files changed, 14 insertions(+), 606 deletions(-) delete mode 100644 Content.Server/_CP14/GameTicking/Rules/CP14BloodMoonCurseRule.cs delete mode 100644 Content.Server/_CP14/GameTicking/Rules/CP14BloodMoonRule.cs delete mode 100644 Content.Server/_CP14/GameTicking/Rules/CP14CrashingShipRule.cs delete mode 100644 Content.Server/_CP14/GameTicking/Rules/CP14ExpeditionToWindlandsRule.cs delete mode 100644 Content.Server/_CP14/GameTicking/Rules/CP14WeatherRule.cs delete mode 100644 Content.Server/_CP14/GameTicking/Rules/Components/CP14BloodMoonCurseRuleComponent.cs delete mode 100644 Content.Server/_CP14/GameTicking/Rules/Components/CP14BloodMoonRuleComponent.cs delete mode 100644 Content.Server/_CP14/GameTicking/Rules/Components/CP14CrashingShipComponent.cs delete mode 100644 Content.Server/_CP14/GameTicking/Rules/Components/CP14CrashingShipRuleComponent.cs delete mode 100644 Content.Server/_CP14/GameTicking/Rules/Components/CP14ExpeditionToWindlandsRuleComponent.cs delete mode 100644 Content.Server/_CP14/GameTicking/Rules/Components/CP14WeatherRuleComponent.cs delete mode 100644 Resources/Prototypes/_CP14/GameRules/judgement_night.yml diff --git a/Content.Server/_CP14/GameTicking/Rules/CP14BloodMoonCurseRule.cs b/Content.Server/_CP14/GameTicking/Rules/CP14BloodMoonCurseRule.cs deleted file mode 100644 index b776a4304a..0000000000 --- a/Content.Server/_CP14/GameTicking/Rules/CP14BloodMoonCurseRule.cs +++ /dev/null @@ -1,114 +0,0 @@ -using System.Linq; -using Content.Server._CP14.GameTicking.Rules.Components; -using Content.Server.Antag; -using Content.Server.Chat.Systems; -using Content.Server.GameTicking.Rules; -using Content.Server.Popups; -using Content.Server.Station.Components; -using Content.Server.Stunnable; -using Content.Shared._CP14.BloodMoon; -using Content.Shared._CP14.DayCycle; -using Content.Shared.Actions; -using Content.Shared.Examine; -using Content.Shared.GameTicking.Components; -using Content.Shared.Mobs; -using Content.Shared.Popups; -using Robust.Server.GameObjects; -using Robust.Shared.Audio.Systems; -using Robust.Shared.Player; - -namespace Content.Server._CP14.GameTicking.Rules; - -public sealed class CP14BloodMoonCurseRule : GameRuleSystem -{ - [Dependency] private readonly AntagSelectionSystem _antag = default!; - [Dependency] private readonly StunSystem _stun = default!; - [Dependency] private readonly PopupSystem _popup = default!; - [Dependency] private readonly ChatSystem _chatSystem = default!; - [Dependency] private readonly TransformSystem _transform = default!; - [Dependency] private readonly SharedAudioSystem _audio = default!; - [Dependency] private readonly SharedActionsSystem _action = default!; - - public override void Initialize() - { - base.Initialize(); - - SubscribeLocalEvent(OnStartDay); - SubscribeLocalEvent(AfterAntagEntitySelected); - SubscribeLocalEvent(CurseExamined); - } - - private void CurseExamined(Entity ent, ref ExaminedEvent args) - { - args.PushMarkup(Loc.GetString("cp14-bloodmoon-curse-examined")); - } - - private void AfterAntagEntitySelected(Entity ent, ref AfterAntagEntitySelectedEvent args) - { - SpawnAttachedTo(ent.Comp.CurseEffect, Transform(args.EntityUid).Coordinates); - var curseComp = EnsureComp(args.EntityUid); - var effect = SpawnAttachedTo(curseComp.CurseEffect, Transform(args.EntityUid).Coordinates); - curseComp.SpawnedEffect = effect; - curseComp.CurseRule = ent; - _transform.SetParent(effect, args.EntityUid); - _action.AddAction(args.EntityUid, ref curseComp.ActionEntity, curseComp.Action); - } - - protected override void Started(EntityUid uid, - CP14BloodMoonCurseRuleComponent component, - GameRuleComponent gameRule, - GameRuleStartedEvent args) - { - Filter allPlayersInGame = Filter.Empty().AddWhere(GameTicker.UserHasJoinedGame); - _chatSystem.DispatchFilteredAnnouncement(allPlayersInGame, Loc.GetString(component.StartAnnouncement), colorOverride: component.AnnouncementColor); - - _audio.PlayGlobal(component.GlobalSound, allPlayersInGame, true); - } - - protected override void Ended(EntityUid uid, - CP14BloodMoonCurseRuleComponent component, - GameRuleComponent gameRule, - GameRuleEndedEvent args) - { - Filter allPlayersInGame = Filter.Empty().AddWhere(GameTicker.UserHasJoinedGame); - _chatSystem.DispatchFilteredAnnouncement(allPlayersInGame, Loc.GetString(component.EndAnnouncement), colorOverride: component.AnnouncementColor); - - var aliveAntags = _antag.GetAliveAntags(uid); - - foreach (var antag in aliveAntags) - { - SpawnAttachedTo(component.CurseEffect, Transform(antag).Coordinates); - ClearCurse(antag); - } - - GameTicker.EndRound(); - } - - private void OnStartDay(CP14StartDayEvent ev) - { - if (!HasComp(ev.Map)) - return; - - var query = QueryActiveRules(); - while (query.MoveNext(out var uid, out _, out var comp, out _)) - { - ForceEndSelf(uid); - } - } - - private void ClearCurse(Entity ent) - { - if (!Resolve(ent.Owner, ref ent.Comp, false)) - return; - - _stun.TryUpdateParalyzeDuration(ent, ent.Comp.EndStunDuration); - _popup.PopupEntity(Loc.GetString("cp14-bloodmoon-curse-removed"), ent, PopupType.SmallCaution); - if (TryComp(ent, out var curseComp)) - { - QueueDel(curseComp.SpawnedEffect); - RemCompDeferred(ent); - } - - _action.RemoveAction(ent.Comp.ActionEntity); - } -} diff --git a/Content.Server/_CP14/GameTicking/Rules/CP14BloodMoonRule.cs b/Content.Server/_CP14/GameTicking/Rules/CP14BloodMoonRule.cs deleted file mode 100644 index b65b0983bf..0000000000 --- a/Content.Server/_CP14/GameTicking/Rules/CP14BloodMoonRule.cs +++ /dev/null @@ -1,54 +0,0 @@ -using Content.Server._CP14.GameTicking.Rules.Components; -using Content.Server.Chat.Systems; -using Content.Server.GameTicking.Rules; -using Content.Server.Station.Components; -using Content.Server.StationEvents.Events; -using Content.Shared._CP14.DayCycle; -using Content.Shared.GameTicking.Components; -using Robust.Shared.Audio.Systems; -using Robust.Shared.Player; - -namespace Content.Server._CP14.GameTicking.Rules; - -public sealed class CP14BloodMoonRule : GameRuleSystem -{ - [Dependency] private readonly ChatSystem _chatSystem = default!; - [Dependency] private readonly SharedAudioSystem _audio = default!; - - public override void Initialize() - { - base.Initialize(); - - SubscribeLocalEvent(OnStartNight); - } - - protected override void Started(EntityUid uid, - CP14BloodMoonRuleComponent component, - GameRuleComponent gameRule, - GameRuleStartedEvent args) - { - base.Started(uid, component, gameRule, args); - - Filter allPlayersInGame = Filter.Empty().AddWhere(GameTicker.UserHasJoinedGame); - _chatSystem.DispatchFilteredAnnouncement( - allPlayersInGame, - message: Loc.GetString(component.StartAnnouncement), - colorOverride: component.AnnouncementColor); - - _audio.PlayGlobal(component.AnnounceSound, allPlayersInGame, true); - } - - private void OnStartNight(CP14StartNightEvent ev) - { - if (!HasComp(ev.Map)) - return; - - var query = QueryActiveRules(); - while (query.MoveNext(out var uid, out _, out var comp, out _)) - { - var ruleEnt = GameTicker.AddGameRule(comp.CurseRule); - GameTicker.StartGameRule(ruleEnt); - ForceEndSelf(uid); - } - } -} diff --git a/Content.Server/_CP14/GameTicking/Rules/CP14CrashingShipRule.cs b/Content.Server/_CP14/GameTicking/Rules/CP14CrashingShipRule.cs deleted file mode 100644 index 691b47c781..0000000000 --- a/Content.Server/_CP14/GameTicking/Rules/CP14CrashingShipRule.cs +++ /dev/null @@ -1,112 +0,0 @@ -using System.Linq; -using Content.Server._CP14.GameTicking.Rules.Components; -using Content.Server.GameTicking.Rules; -using Content.Server.Shuttles.Events; -using Content.Server.Station.Components; -using Content.Server.Station.Systems; -using Content.Shared.GameTicking.Components; -using Content.Shared.Station.Components; -using Robust.Shared.Prototypes; -using Robust.Shared.Random; -using Robust.Shared.Timing; - -namespace Content.Server._CP14.GameTicking.Rules; - -public sealed class CP14CrashingShipRule : GameRuleSystem -{ - [Dependency] private readonly IGameTiming _timing = default!; - [Dependency] private readonly ILogManager _logManager = default!; - [Dependency] private readonly StationSystem _station = default!; - [Dependency] private readonly IRobustRandom _random = default!; - - private ISawmill _sawmill = default!; - public override void Initialize() - { - base.Initialize(); - _sawmill = _logManager.GetSawmill("cp14_crashing_ship_rule"); - - SubscribeLocalEvent(OnFTLCompleted); - } - - public override void Update(float frameTime) - { - base.Update(frameTime); - - UpdateExplosions(frameTime); - } - - protected override void Started(EntityUid uid, - CP14CrashingShipRuleComponent component, - GameRuleComponent gameRule, - GameRuleStartedEvent args) - { - base.Started(uid, component, gameRule, args); - - var station = _station.GetStations().First(); - - var largestStationGrid = _station.GetLargestGrid(station); - - if (largestStationGrid is null) - { - _sawmill.Error($"Station {station} does not have a grid."); - return; - } - - component.StartExplosionTime += _timing.CurTime; - component.Ship = largestStationGrid.Value; - } - - private void OnFTLCompleted(Entity ent, ref FTLCompletedEvent args) - { - SpawnRandomExplosion(ent, ent.Comp.FinalExplosionProto, 10); - RemCompDeferred(ent); - } - - private void UpdateExplosions(float frameTime) - { - var ruleQuery = EntityQueryEnumerator(); - while (ruleQuery.MoveNext(out var uid, out var rule)) - { - if (!rule.PendingExplosions) - continue; - - if (_timing.CurTime < rule.StartExplosionTime) - continue; - - if (rule.Ship is null) - continue; - - AddComp(rule.Ship.Value); - rule.PendingExplosions = false; - } - - var query = EntityQueryEnumerator(); - while (query.MoveNext(out var uid, out var ship)) - { - if (_timing.CurTime < ship.NextExplosionTime) - continue; - - ship.NextExplosionTime = _timing.CurTime + TimeSpan.FromSeconds(_random.Next(2, 10)); - SpawnRandomExplosion((uid, ship), ship.ExplosionProto, 1); - } - } - - - private void SpawnRandomExplosion(Entity grid, EntProtoId explosionProto, int count) - { - var station = _station.GetOwningStation(grid); - - if (station is null) - return; - - TryFindRandomTileOnStation((station.Value, Comp(station.Value)), - out var tile, - out var targetGrid, - out var targetCoords); - - for (var i = 0; i < count; i++) - { - Spawn(explosionProto, targetCoords); - } - } -} diff --git a/Content.Server/_CP14/GameTicking/Rules/CP14ExpeditionToWindlandsRule.cs b/Content.Server/_CP14/GameTicking/Rules/CP14ExpeditionToWindlandsRule.cs deleted file mode 100644 index 6bd70576f9..0000000000 --- a/Content.Server/_CP14/GameTicking/Rules/CP14ExpeditionToWindlandsRule.cs +++ /dev/null @@ -1,54 +0,0 @@ -using System.Linq; -using System.Numerics; -using Content.Server._CP14.GameTicking.Rules.Components; -using Content.Server._CP14.Procedural; -using Content.Server.GameTicking.Rules; -using Content.Server.Shuttles.Components; -using Content.Server.Shuttles.Systems; -using Content.Server.Station.Systems; -using Content.Shared.GameTicking.Components; -using Content.Shared.Station.Components; -using Robust.Shared.Map; - -namespace Content.Server._CP14.GameTicking.Rules; - -public sealed class CP14ExpeditionToWindlandsRule : GameRuleSystem -{ - [Dependency] private readonly ShuttleSystem _shuttles = default!; - [Dependency] private readonly StationSystem _station = default!; - [Dependency] private readonly ILogManager _logManager = default!; - [Dependency] private readonly SharedMapSystem _mapSystem = default!; - [Dependency] private readonly CP14LocationGenerationSystem _generation = default!; - - private ISawmill _sawmill = default!; - - public override void Initialize() - { - base.Initialize(); - _sawmill = _logManager.GetSawmill("cp14_expedition_to_windlands_rule"); - } - - protected override void Started(EntityUid uid, - CP14ExpeditionToWindlandsRuleComponent component, - GameRuleComponent gameRule, - GameRuleStartedEvent args) - { - base.Started(uid, component, gameRule, args); - - var station = _station.GetStations().First(); - var largestStationGrid = _station.GetLargestGrid(station); - - if (largestStationGrid is null) - { - _sawmill.Error($"Station {station} does not have a grid."); - return; - } - - EnsureComp(largestStationGrid.Value, out var shuttleComp); - - var windlands = _mapSystem.CreateMap(out var mapId, runMapInit: true); - - _generation.GenerateLocation(windlands, mapId, component.Location, component.Modifiers); - _shuttles.FTLToCoordinates(largestStationGrid.Value, shuttleComp, new EntityCoordinates(windlands, Vector2.Zero), 0f, 0f, component.FloatingTime); - } -} diff --git a/Content.Server/_CP14/GameTicking/Rules/CP14WeatherRule.cs b/Content.Server/_CP14/GameTicking/Rules/CP14WeatherRule.cs deleted file mode 100644 index 3e1f577d4c..0000000000 --- a/Content.Server/_CP14/GameTicking/Rules/CP14WeatherRule.cs +++ /dev/null @@ -1,58 +0,0 @@ -using Content.Server._CP14.GameTicking.Rules.Components; -using Content.Server._CP14.WeatherControl; -using Content.Server.GameTicking.Rules; -using Content.Server.Station.Components; -using Content.Server.Station.Systems; -using Content.Server.StationEvents.Events; -using Content.Server.Weather; -using Content.Shared.GameTicking.Components; -using Content.Shared.Station.Components; -using Robust.Shared.Map.Components; -using Robust.Shared.Prototypes; -using Robust.Shared.Timing; - -namespace Content.Server._CP14.GameTicking.Rules; - -public sealed class CP14WeatherRule : StationEventSystem -{ - [Dependency] private readonly WeatherSystem _weather = default!; - [Dependency] private readonly StationSystem _station = default!; - [Dependency] private readonly IPrototypeManager _proto = default!; - [Dependency] private readonly IGameTiming _timing = default!; - - protected override void Started(EntityUid uid, CP14WeatherRuleComponent component, GameRuleComponent gameRule, GameRuleStartedEvent args) - { - base.Started(uid, component, gameRule, args); - - var query = EntityQueryEnumerator(); - while (query.MoveNext(out var mapUid, out var map, out var station)) - { - if (!_proto.TryIndex(component.Weather, out var indexedWeather)) - continue; - - if (TryComp(mapUid, out var controller)) - { - controller.Enabled = false; - } - - _weather.SetWeather(map.MapId, indexedWeather, null); - } - } - - protected override void Ended(EntityUid uid, CP14WeatherRuleComponent component, GameRuleComponent gameRule, GameRuleEndedEvent args) - { - base.Ended(uid, component, gameRule, args); - - var query = EntityQueryEnumerator(); - while (query.MoveNext(out var mapUid, out var map, out var station)) - { - if (TryComp(mapUid, out var controller)) - { - controller.NextWeatherTime = _timing.CurTime; - controller.Enabled = true; - } - - _weather.SetWeather(map.MapId, null, null); - } - } -} diff --git a/Content.Server/_CP14/GameTicking/Rules/Components/CP14BloodMoonCurseRuleComponent.cs b/Content.Server/_CP14/GameTicking/Rules/Components/CP14BloodMoonCurseRuleComponent.cs deleted file mode 100644 index 663017d1b1..0000000000 --- a/Content.Server/_CP14/GameTicking/Rules/Components/CP14BloodMoonCurseRuleComponent.cs +++ /dev/null @@ -1,26 +0,0 @@ -using Robust.Shared.Audio; -using Robust.Shared.Prototypes; - -namespace Content.Server._CP14.GameTicking.Rules.Components; - -[RegisterComponent, Access(typeof(CP14BloodMoonCurseRule))] -public sealed partial class CP14BloodMoonCurseRuleComponent : Component -{ - [DataField] - public LocId StartAnnouncement = "cp14-bloodmoon-start"; - - [DataField] - public LocId EndAnnouncement = "cp14-bloodmoon-end"; - - [DataField] - public Color? AnnouncementColor; - - [DataField] - public EntProtoId CurseEffect = "CP14ImpactEffectMagicSplitting"; - - [DataField] - public SoundSpecifier GlobalSound = new SoundPathSpecifier("/Audio/_CP14/Ambience/blood_moon_raise.ogg") - { - Params = AudioParams.Default.WithVolume(-2f) - }; -} diff --git a/Content.Server/_CP14/GameTicking/Rules/Components/CP14BloodMoonRuleComponent.cs b/Content.Server/_CP14/GameTicking/Rules/Components/CP14BloodMoonRuleComponent.cs deleted file mode 100644 index 933465da07..0000000000 --- a/Content.Server/_CP14/GameTicking/Rules/Components/CP14BloodMoonRuleComponent.cs +++ /dev/null @@ -1,20 +0,0 @@ -using Robust.Shared.Audio; -using Robust.Shared.Prototypes; - -namespace Content.Server._CP14.GameTicking.Rules.Components; - -[RegisterComponent, Access(typeof(CP14BloodMoonRule))] -public sealed partial class CP14BloodMoonRuleComponent : Component -{ - [DataField] - public EntProtoId CurseRule = "CP14BloodMoonCurseRule"; - - [DataField] - public LocId StartAnnouncement = "cp14-bloodmoon-raising"; - - [DataField] - public Color? AnnouncementColor = Color.FromHex("#e32759"); - - [DataField] - public SoundSpecifier? AnnounceSound; -} diff --git a/Content.Server/_CP14/GameTicking/Rules/Components/CP14CrashingShipComponent.cs b/Content.Server/_CP14/GameTicking/Rules/Components/CP14CrashingShipComponent.cs deleted file mode 100644 index cb18f4fec6..0000000000 --- a/Content.Server/_CP14/GameTicking/Rules/Components/CP14CrashingShipComponent.cs +++ /dev/null @@ -1,19 +0,0 @@ -using Robust.Shared.Prototypes; - -namespace Content.Server._CP14.GameTicking.Rules.Components; - -/// -///When attached to shuttle, start firebombing it until FTL ends. -/// -[RegisterComponent, Access(typeof(CP14CrashingShipRule))] -public sealed partial class CP14CrashingShipComponent : Component -{ - [DataField] - public TimeSpan NextExplosionTime = TimeSpan.Zero; - - [DataField] - public EntProtoId ExplosionProto = "CP14ShipExplosion"; - - [DataField] - public EntProtoId FinalExplosionProto = "CP14ShipExplosionBig"; -} diff --git a/Content.Server/_CP14/GameTicking/Rules/Components/CP14CrashingShipRuleComponent.cs b/Content.Server/_CP14/GameTicking/Rules/Components/CP14CrashingShipRuleComponent.cs deleted file mode 100644 index 718b38615e..0000000000 --- a/Content.Server/_CP14/GameTicking/Rules/Components/CP14CrashingShipRuleComponent.cs +++ /dev/null @@ -1,17 +0,0 @@ -namespace Content.Server._CP14.GameTicking.Rules.Components; - -/// -/// A rule that assigns common goals to different roles. Common objectives are generated once at the beginning of a round and are shared between players. -/// -[RegisterComponent, Access(typeof(CP14CrashingShipRule))] -public sealed partial class CP14CrashingShipRuleComponent : Component -{ - [DataField] - public EntityUid? Ship; - - [DataField] - public bool PendingExplosions = true; - - [DataField] - public TimeSpan StartExplosionTime = TimeSpan.FromMinutes(1); -} diff --git a/Content.Server/_CP14/GameTicking/Rules/Components/CP14ExpeditionToWindlandsRuleComponent.cs b/Content.Server/_CP14/GameTicking/Rules/Components/CP14ExpeditionToWindlandsRuleComponent.cs deleted file mode 100644 index c32d15e814..0000000000 --- a/Content.Server/_CP14/GameTicking/Rules/Components/CP14ExpeditionToWindlandsRuleComponent.cs +++ /dev/null @@ -1,20 +0,0 @@ -using Content.Shared._CP14.Procedural.Prototypes; -using Robust.Shared.Prototypes; - -namespace Content.Server._CP14.GameTicking.Rules.Components; - -/// -/// A rule that assigns common goals to different roles. Common objectives are generated once at the beginning of a round and are shared between players. -/// -[RegisterComponent, Access(typeof(CP14ExpeditionToWindlandsRule))] -public sealed partial class CP14ExpeditionToWindlandsRuleComponent : Component -{ - [DataField] - public ProtoId Location = "T1GrasslandIsland"; - - [DataField] - public List> Modifiers = []; - - [DataField] - public float FloatingTime = 120; -} diff --git a/Content.Server/_CP14/GameTicking/Rules/Components/CP14WeatherRuleComponent.cs b/Content.Server/_CP14/GameTicking/Rules/Components/CP14WeatherRuleComponent.cs deleted file mode 100644 index 98199a3621..0000000000 --- a/Content.Server/_CP14/GameTicking/Rules/Components/CP14WeatherRuleComponent.cs +++ /dev/null @@ -1,11 +0,0 @@ -using Content.Shared.Weather; -using Robust.Shared.Prototypes; - -namespace Content.Server._CP14.GameTicking.Rules.Components; - -[RegisterComponent] -public sealed partial class CP14WeatherRuleComponent : Component -{ - [DataField(required: true)] - public ProtoId Weather = default!; -} diff --git a/Resources/Prototypes/_CP14/GameRules/events.yml b/Resources/Prototypes/_CP14/GameRules/events.yml index 3da66b63a2..2013bfc9b3 100644 --- a/Resources/Prototypes/_CP14/GameRules/events.yml +++ b/Resources/Prototypes/_CP14/GameRules/events.yml @@ -17,25 +17,3 @@ delay: min: 40 max: 60 - -- type: entityTable - id: CP14BasicCalmEventsTable - table: !type:AllSelector - children: - - id: CP14Storm - -- type: entity - parent: CP14BaseStationEventLongDelay - id: CP14Storm - components: - - type: StationEvent - startAnnouncement: cp14-event-announcement-storm - startAudio: - collection: CP14LightningFar - earliestStart: 45 - minimumPlayers: 10 - duration: 180 - maxDuration: 600 - - type: CP14WeatherRule - weather: CP14Storm - diff --git a/Resources/Prototypes/_CP14/GameRules/judgement_night.yml b/Resources/Prototypes/_CP14/GameRules/judgement_night.yml deleted file mode 100644 index cb25c9b3fb..0000000000 --- a/Resources/Prototypes/_CP14/GameRules/judgement_night.yml +++ /dev/null @@ -1,34 +0,0 @@ -- type: entity - id: CP14BloodMoonRule - parent: CP14BaseGameRule - components: - - type: CP14BloodMoonRule - curseRule: CP14BloodMoonCurseRule - announceSound: - path: /Audio/_CP14/Announce/darkness_boom.ogg - - type: GameRule - delay: - min: 30 - max: 60 - -- type: entity - id: CP14BloodMoonCurseRule - parent: CP14BaseGameRule - components: - - type: CP14BloodMoonCurseRule - announcementColor: "#e32759" - - type: AntagSelection - definitions: - - prefRoles: [ CP14BloodMoonCursed ] - max: 15 - playerRatio: 2 - multiAntagSetting: NotExclusive - lateJoinAdditional: true - allowNonHumans: true - mindRoles: - - CP14MindRoleBloodMoonCursed - briefing: - text: cp14-roles-antag-blood-moon-cursed-briefing - color: "#630f24" - sound: "/Audio/_CP14/Announce/darkness_boom_2.ogg" - diff --git a/Resources/Prototypes/_CP14/GameRules/roundstart.yml b/Resources/Prototypes/_CP14/GameRules/roundstart.yml index 3c4b301c3a..e570a862b7 100644 --- a/Resources/Prototypes/_CP14/GameRules/roundstart.yml +++ b/Resources/Prototypes/_CP14/GameRules/roundstart.yml @@ -6,51 +6,20 @@ - type: GameRule cP14Allowed: true -- type: entity - id: CP14RoundObjectivesRule - parent: CP14BaseGameRule - components: - - type: CP14PersonalObjectivesRule - roleObjectives: - CP14Adventurer: - - CP14PersonalCurrencyCollectObjectiveGroup - CP14Alchemist: - - CP14PersonalCurrencyCollectObjectiveGroup - CP14Apprentice: - - CP14PersonalCurrencyCollectObjectiveGroup - CP14Blacksmith: - - CP14PersonalCurrencyCollectObjectiveGroup - CP14Innkeeper: - - CP14PersonalCurrencyCollectObjectiveGroup - -# crashing - -#- type: entity -# id: CP14CrashToWindlandsRule -# parent: CP14BaseGameRule -# components: -# - type: CP14CrashingShipRule -# - type: CP14ExpeditionToWindlandsRule -# modifiers: -# - WeatherInfinityStorm -# - MapLightCycleDefault -# - Ruins -# - Geodes - # event schedulers -- type: entity - id: CP14BasicStationEventScheduler - parent: CP14BaseGameRule - components: - - type: BasicStationEventScheduler - scheduledGameRules: !type:NestedSelector - tableId: CP14BasicGameRulesTable - -- type: entityTable - id: CP14BasicGameRulesTable - table: !type:AllSelector - children: - - !type:NestedSelector - tableId: CP14BasicCalmEventsTable +#- type: entity +# id: CP14BasicStationEventScheduler +# parent: CP14BaseGameRule +# components: +# - type: BasicStationEventScheduler +# scheduledGameRules: !type:NestedSelector +# tableId: CP14BasicGameRulesTable +# +#- type: entityTable +# id: CP14BasicGameRulesTable +# table: !type:AllSelector +# children: +# - !type:NestedSelector +# tableId: CP14BasicCalmEventsTable