Планетарная тюрьма (#187)

* Тюрьма (#150)

* Prison Init

* Новая карта для планетарных тюрем

* Готовая планетарная тюрьма

* Незначительное изменение тайлов

---------

Co-authored-by: Vigers Ray <60344369+VigersRay@users.noreply.github.com>

* Космическая тюрьма и всё остальное говно

* фиксы

* фикс PrisonlDoctor

* фикс PrisonDoctor

* день длится 20 минут

---------

Co-authored-by: SplikZerys <136282037+SplikZerys@users.noreply.github.com>
This commit is contained in:
Vigers Ray 2024-07-12 04:21:12 +03:00 • committed by GitHub
parent 501bb8c923
commit ffd3e3de14
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
241 changed files with 367217 additions and 99 deletions

View file

@ -559,6 +559,8 @@ public sealed partial class ShuttleMapControl : BaseShuttleControl
private bool TryGetBeacon(IEnumerable<IMapObject> mapObjects, Matrix3x2 mapTransform, Vector2 mousePos, UIBox2i area, out ShuttleBeaconObject foundBeacon, out Vector2 foundLocalPos)
{
Logger.Info("TryGetBeacon");
// In pixels
const float BeaconSnapRange = 32f;
float nearestValue = float.MaxValue;
@ -579,6 +581,8 @@ public sealed partial class ShuttleMapControl : BaseShuttleControl
if (!_shuttles.CanFTLBeacon(beaconObj.Coordinates))
continue;
Logger.Info("Can FTL Beacon");
var position = Vector2.Transform(beaconCoords.Position, mapTransform);
var localPos = ScalePosition(position with {Y = -position.Y});
@ -586,14 +590,19 @@ public sealed partial class ShuttleMapControl : BaseShuttleControl
if (!area.Contains(localPos.Floored()))
continue;
Logger.Info("area contains localPos.Floored()");
var distance = (localPos - mousePos).Length();
if (distance > BeaconSnapRange * UIScale ||
distance > nearestValue)
{
Logger.Info("distance > BeaconSnapRange");
continue;
}
Logger.Info("Found beacon");
foundLocalPos = localPos;
nearestValue = distance;
foundBeacon = beaconObj;

View file

@ -1,3 +1,5 @@
using Content.Server._Sunrise.Fugitive;
using Content.Server._Sunrise.PlanetPrison;
using Content.Shared.Roles;
namespace Content.Server.Roles;
@ -18,6 +20,10 @@ public sealed class RoleSystem : SharedRoleSystem
SubscribeAntagEvents<TraitorRoleComponent>();
SubscribeAntagEvents<ZombieRoleComponent>();
SubscribeAntagEvents<ThiefRoleComponent>();
// Sunrise-start
SubscribeAntagEvents<FugitiveRoleComponent>();
SubscribeAntagEvents<PlanetPrisonerRoleComponent>();
// Sunrise-end
}
public string? MindGetBriefing(EntityUid? mindId)

View file

@ -6,5 +6,6 @@ namespace Content.Server.Shuttles.Components;
[RegisterComponent]
public sealed partial class FTLBeaconComponent : Component
{
[DataField]
public bool BlockRotate;
}

View file

@ -55,7 +55,15 @@ public sealed partial class ShuttleConsoleSystem
return;
}
// Sunrise-Start
if (!TryComp<FTLBeaconComponent>(beaconEnt, out var beaconComponent))
return;
var angle = args.Angle.Reduced();
if (beaconComponent.BlockRotate)
{
angle = Angle.Zero;
}
// Sunrise-End
var targetCoordinates = new EntityCoordinates(targetXform.MapUid!.Value, _transform.GetWorldPosition(targetXform));
ConsoleFTL(ent, targetCoordinates, angle, targetXform.MapID);

View file

@ -0,0 +1,17 @@
using Robust.Shared.Audio;
namespace Content.Server._Sunrise.Fugitive
{
[RegisterComponent]
public sealed partial class FugitiveComponent : Component
{
[DataField("spawnSound")]
public SoundSpecifier SpawnSoundPath = new SoundPathSpecifier("/Audio/Effects/clang.ogg");
[DataField("firstMindAdded")]
public bool FirstMindAdded = false;
[DataField("roundStart")]
public bool RoundStart = false;
}
}

View file

@ -0,0 +1,11 @@
namespace Content.Server._Sunrise.Fugitive
{
[RegisterComponent]
public sealed partial class FugitiveCountdownComponent : Component
{
public TimeSpan? AnnounceTime = null;
[DataField("AnnounceCD")]
public TimeSpan AnnounceCD = TimeSpan.FromMinutes(5);
}
}

View file

@ -0,0 +1,9 @@
using Content.Shared.Roles;
namespace Content.Server._Sunrise.Fugitive;
[RegisterComponent]
public sealed partial class FugitiveRoleComponent : AntagonistRoleComponent
{
}

View file

@ -0,0 +1,7 @@
namespace Content.Server._Sunrise.Fugitive;
[RegisterComponent, Access(typeof(FugitiveSystem))]
public sealed partial class FugitiveRuleComponent : Component
{
public List<(EntityUid, string)> FugitiveMinds = new();
}

View file

@ -0,0 +1,101 @@
using Content.Server.Mind;
using Content.Server.Popups;
using Content.Server.Store.Systems;
using Content.Server.Stunnable;
using Content.Shared.Examine;
using Content.Shared.FixedPoint;
using Content.Shared.Implants;
using Content.Shared.Implants.Components;
using Content.Shared.Maps;
using Content.Shared.Store.Components;
using Content.Shared.Tag;
using Robust.Server.Audio;
using Robust.Shared.Audio;
using Robust.Shared.Containers;
using Robust.Shared.Map;
using Robust.Shared.Player;
using Robust.Shared.Random;
using Robust.Shared.Timing;
using static Content.Shared.Examine.ExamineSystemShared;
namespace Content.Server._Sunrise.Fugitive
{
public sealed class FugitiveSpawnerSystem : EntitySystem
{
[Dependency] private readonly IGameTiming _timing = default!;
[Dependency] private readonly PopupSystem _popupSystem = default!;
[Dependency] private readonly AudioSystem _audioSystem = default!;
[Dependency] private readonly StunSystem _stun = default!;
[Dependency] private readonly IMapManager _mapManager = default!;
[Dependency] private readonly TileSystem _tile = default!;
[Dependency] private readonly MindSystem _mindSystem = default!;
[Dependency] private readonly StoreSystem _store = default!;
[Dependency] private readonly TagSystem _tagSystem = default!;
[Dependency] private readonly IRobustRandom _random = default!;
[Dependency] private readonly SharedSubdermalImplantSystem _subdermalImplant = default!;
[Dependency] private readonly ExamineSystemShared _examine = default!;
public override void Initialize()
{
base.Initialize();
SubscribeLocalEvent<FugitiveSpawnerComponent, PlayerAttachedEvent>(OnPlayerAttached);
}
private void OnPlayerAttached(EntityUid uid, FugitiveSpawnerComponent component, PlayerAttachedEvent args)
{
var xform = Transform(uid);
var fugitive = Spawn(component.Prototype, xform.Coordinates);
if (TryComp<_Sunrise.Fugitive.FugitiveCountdownComponent>(fugitive, out var cd))
cd.AnnounceTime = _timing.CurTime + cd.AnnounceCD;
_popupSystem.PopupEntity(Loc.GetString("fugitive-spawn", ("name", fugitive)), fugitive,
Filter.Pvs(fugitive).RemoveWhereAttachedEntity(entity => !_examine.InRangeUnOccluded(
fugitive, entity, ExamineRange, null)), true,
Shared.Popups.PopupType.LargeCaution);
_stun.TryParalyze(fugitive, TimeSpan.FromSeconds(2), false);
_audioSystem.PlayPvs(component.SpawnSoundPath, uid, AudioParams.Default.WithVolume(-6f));
if (!_mapManager.TryGetGrid(xform.GridUid, out var map))
return;
var currentTile = map.GetTileRef(xform.Coordinates);
_tile.PryTile(currentTile);
if (!_mindSystem.TryGetMind(args.Player.UserId, out var mindId, out var mind))
return;
_mindSystem.TransferTo(mindId.Value, fugitive, ghostCheckOverride: true);
_popupSystem.PopupEntity(Loc.GetString("fugitive-spawn", ("name", uid)), uid,
Filter.Pvs(uid).RemoveWhereAttachedEntity(entity => !_examine.InRangeUnOccluded(uid, entity, ExamineRange, null)), true, Shared.Popups.PopupType.LargeCaution);
foreach (var implantId in component.Implants)
{
var implantEnt = Spawn(implantId, xform.Coordinates);
if (!TryComp<SubdermalImplantComponent>(implantEnt, out var implantComp))
return;
_subdermalImplant.ForceImplant(fugitive, implantEnt, implantComp);
}
if (TryComp<ContainerManagerComponent>(fugitive, out var containerManagerComponent))
{
if (containerManagerComponent.Containers.TryGetValue("implant", out var container))
{
foreach (var containedEntity in container.ContainedEntities)
{
if (!TryComp<StoreComponent>(containedEntity, out var storeComponent))
continue;
_tagSystem.AddTag(containedEntity, "FugitiveUplink");
_store.TryAddCurrency(new Dictionary<string, FixedPoint2>
{ {"Telecrystal", _random.Next(5, 10)} }, containedEntity, storeComponent);
}
}
}
Del(uid);
}
}
}

View file

@ -0,0 +1,19 @@
using Robust.Shared.Audio;
using Robust.Shared.Prototypes;
using Robust.Shared.Serialization.TypeSerializers.Implementations.Custom.Prototype;
namespace Content.Server._Sunrise.Fugitive
{
[RegisterComponent]
public sealed partial class FugitiveSpawnerComponent : Component
{
[DataField("spawnSound")]
public SoundSpecifier SpawnSoundPath = new SoundPathSpecifier("/Audio/Effects/clang.ogg");
[ViewVariables(VVAccess.ReadWrite),
DataField("prototype", customTypeSerializer: typeof(PrototypeIdSerializer<EntityPrototype>))]
public string Prototype = "MobHumanFugitive";
public List<string> Implants = new() { "UplinkImplant", "FreedomImplant"};
}
}

View file

@ -0,0 +1,187 @@
using System.Linq;
using Content.Server.Chat.Managers;
using Content.Server.Chat.Systems;
using Content.Server.Fax;
using Content.Server.GameTicking;
using Content.Server.Mind;
using Content.Server.Objectives;
using Content.Shared.Fax.Components;
using Content.Shared.Humanoid;
using Content.Shared.Mind.Components;
using Content.Shared.Movement.Systems;
using Content.Shared.Paper;
using Content.Shared.Roles;
using Robust.Shared.Physics.Components;
using Robust.Shared.Prototypes;
using Robust.Shared.Timing;
using Robust.Shared.Utility;
namespace Content.Server._Sunrise.Fugitive
{
public sealed class FugitiveSystem : EntitySystem
{
private const string AntagRole = "Fugitive";
private const string EscapeObjective = "FugitiveEscapeShuttleObjective";
private const string GameRule = "Fugitive";
[Dependency] private readonly IPrototypeManager _prototypeManager = default!;
[Dependency] private readonly MovementSpeedModifierSystem _movementSpeed = default!;
[Dependency] private readonly IGameTiming _timing = default!;
[Dependency] private readonly ChatSystem _chat = default!;
[Dependency] private readonly MindSystem _mindSystem = default!;
[Dependency] private readonly FaxSystem _faxSystem = default!;
[Dependency] private readonly IChatManager _chatManager = default!;
[Dependency] private readonly SharedRoleSystem _roleSystem = default!;
[Dependency] private readonly GameTicker _gameTicker = default!;
public override void Initialize()
{
base.Initialize();
SubscribeLocalEvent<FugitiveComponent, MindAddedMessage>(OnMindAdded);
SubscribeLocalEvent<FugitiveRuleComponent, ObjectivesTextGetInfoEvent>(OnObjectivesTextGetInfo);
}
private void OnObjectivesTextGetInfo(EntityUid uid, FugitiveRuleComponent comp, ref ObjectivesTextGetInfoEvent args)
{
args.Minds = comp.FugitiveMinds;
args.AgentName = Loc.GetString("fugitive-round-end-name");
}
public override void Update(float frameTime)
{
base.Update(frameTime);
foreach (var (cd, _) in EntityQuery<FugitiveCountdownComponent, _Sunrise.Fugitive.FugitiveComponent>())
{
if (cd.AnnounceTime == null || !(_timing.CurTime > cd.AnnounceTime))
continue;
_chat.DispatchGlobalAnnouncement(Loc.GetString("station-event-fugitive-hunt-announcement"), sender: Loc.GetString("fugitive-announcement-GALPOL"), colorOverride: Color.Yellow);
SendFugiReport(cd.Owner);
RemCompDeferred<FugitiveCountdownComponent>(cd.Owner);
}
}
public bool SendFugiReport(EntityUid fugitive)
{
var report = GenerateFugiReport(fugitive);
var faxes = EntityManager.EntityQuery<FaxMachineComponent>();
var wasSent = false;
foreach (var fax in faxes)
{
if (!fax.ReceiveNukeCodes)
{
continue;
}
var printout = new FaxPrintout(
report.ToString(),
Loc.GetString("fugi-report-ent-name", ("name", fugitive)),
null,
null,
"paper_stamp-centcom",
new List<StampDisplayInfo>
{
new StampDisplayInfo { StampedName = Loc.GetString("stamp-component-stamped-name-centcom"), StampedColor = Color.FromHex("#BB3232") },
});
_faxSystem.Receive(fax.Owner, printout, null, fax);
wasSent = true;
}
return wasSent;
}
private void OnMindAdded(EntityUid uid, FugitiveComponent component, MindAddedMessage args)
{
var fugitiveRule = EntityQuery<FugitiveRuleComponent>().FirstOrDefault();
if (fugitiveRule == null)
{
//todo fuck me this shit is awful
//no i wont fuck you, erp is against rules
_gameTicker.StartGameRule(GameRule, out var ruleEntity);
fugitiveRule = Comp<FugitiveRuleComponent>(ruleEntity);
}
if (!_mindSystem.TryGetMind(uid, out var mindId, out var mind))
{
return;
}
if (component.FirstMindAdded)
return;
component.FirstMindAdded = true;
if (_roleSystem.MindHasRole<FugitiveRoleComponent>(mindId))
{
_roleSystem.MindTryRemoveRole<FugitiveRoleComponent>(mindId);
}
_roleSystem.MindAddRole(mindId, new FugitiveRoleComponent
{
PrototypeId = AntagRole
});
if (_mindSystem.TryGetSession(mind, out var session))
{
_chatManager.DispatchServerMessage(session, Loc.GetString("fugitive-role-greeting"));
}
_mindSystem.TryAddObjective(mindId, mind, EscapeObjective);
fugitiveRule.FugitiveMinds.Add((mindId, Name(uid)));
// workaround seperate shitcode moment
_movementSpeed.RefreshMovementSpeedModifiers(uid);
}
private FormattedMessage GenerateFugiReport(EntityUid uid)
{
FormattedMessage report = new();
report.AddMarkup(Loc.GetString("fugi-report-title", ("name", uid)));
report.PushNewline();
report.PushNewline();
report.AddMarkup(Loc.GetString("fugitive-report-first-line", ("name", uid)));
report.PushNewline();
report.PushNewline();
if (!TryComp<HumanoidAppearanceComponent>(uid, out var humanoidComponent) ||
!_prototypeManager.TryIndex(humanoidComponent.Species, out var species))
{
report.AddMarkup(Loc.GetString("fugitive-report-inhuman", ("name", uid)));
return report;
}
report.AddMarkup(Loc.GetString("fugitive-report-morphotype", ("species", Loc.GetString(species.Name))));
report.PushNewline();
report.AddMarkup(Loc.GetString("fugitive-report-age", ("age", humanoidComponent.Age)));
report.PushNewline();
string sexLine = string.Empty;
sexLine += humanoidComponent.Sex switch
{
Sex.Male => Loc.GetString("fugitive-report-sex-m"),
Sex.Female => Loc.GetString("fugitive-report-sex-f"),
_ => Loc.GetString("fugitive-report-sex-n")
};
report.AddMarkup(sexLine);
if (TryComp<PhysicsComponent>(uid, out var physics))
{
report.PushNewline();
report.AddMarkup(Loc.GetString("fugitive-report-weight", ("weight", Math.Round(physics.FixturesMass))));
}
report.PushNewline();
report.PushNewline();
report.AddMarkup(Loc.GetString("fugitive-report-last-line"));
return report;
}
}
}

View file

@ -0,0 +1,18 @@
namespace Content.Server._Sunrise.NightDayMapLight
{
[RegisterComponent]
public sealed partial class NightDayMapLightComponent : Component
{
[ViewVariables]
[DataField]
public Color DayColor = Color.FromHex("#666666");
[ViewVariables]
[DataField]
public Color NightColor = Color.FromHex("#000000");
[ViewVariables]
[DataField]
public float DayDuration = 1200;
}
}

View file

@ -0,0 +1,52 @@
using Robust.Shared.Map.Components;
using Robust.Shared.Timing;
namespace Content.Server._Sunrise.NightDayMapLight
{
public sealed class NightDayMapLightSystem : EntitySystem
{
[Dependency] private readonly IGameTiming _gameTiming = default!;
public override void Initialize()
{
base.Initialize();
}
public override void Update(float frameTime)
{
base.Update(frameTime);
var query = EntityQueryEnumerator<NightDayMapLightComponent, MapLightComponent>();
while (query.MoveNext(out var uid, out var nightDayMapLight, out var mapLight))
{
var dayDuration = nightDayMapLight.DayDuration;
var transitionDuration = dayDuration / 2f;
var t = (float)_gameTiming.CurTime.TotalSeconds % dayDuration / dayDuration;
if (t <= 0.5f)
{
var dayColor = nightDayMapLight.DayColor;
if (t >= 0.5f - (transitionDuration / dayDuration))
{
var transitionT = (0.5f - t) / (transitionDuration / dayDuration);
dayColor = Color.InterpolateBetween(nightDayMapLight.NightColor, nightDayMapLight.DayColor, transitionT);
}
mapLight.AmbientLightColor = dayColor;
}
else
{
var nightColor = nightDayMapLight.NightColor;
if (t <= 0.5f + (transitionDuration / dayDuration))
{
var transitionT = (t - 0.5f) / (transitionDuration / dayDuration);
nightColor = Color.InterpolateBetween(nightDayMapLight.NightColor, nightDayMapLight.DayColor, transitionT);
}
mapLight.AmbientLightColor = nightColor;
}
Dirty(uid, mapLight);
}
}
}
}

View file

@ -0,0 +1,9 @@
namespace Content.Server._Sunrise.PlanetPrison;
/// <summary>
/// Just requires that the player is not dead, ignores evac and what not.
/// </summary>
[RegisterComponent, Access(typeof(EscapePrisonConditionSystem))]
public sealed partial class EscapePrisonConditionComponent : Component
{
}

View file

@ -0,0 +1,20 @@
using Content.Shared.Objectives.Components;
namespace Content.Server._Sunrise.PlanetPrison;
public sealed class EscapePrisonConditionSystem : EntitySystem
{
[Dependency] private readonly PlanetPrisonSystem _planetPrisonSystem = default!;
public override void Initialize()
{
base.Initialize();
SubscribeLocalEvent<EscapePrisonConditionComponent, ObjectiveGetProgressEvent>(OnGetProgress);
}
private void OnGetProgress(EntityUid uid, EscapePrisonConditionComponent comp, ref ObjectiveGetProgressEvent args)
{
args.Progress = _planetPrisonSystem.PrisonerEscaped(args.MindId) ? 1f : 0f;
}
}

View file

@ -0,0 +1,9 @@
namespace Content.Server._Sunrise.PlanetPrison;
[RegisterComponent, Access(typeof(PlanetPrisonSystem))]
public sealed partial class PlanetPrisonRuleComponent : Component
{
public List<(EntityUid, string)> PrisonersMinds = new();
public List<EntityUid> EscapedPrisoners = new();
}

View file

@ -0,0 +1,28 @@
using Content.Server.Maps;
using Content.Shared.Parallax.Biomes;
using Content.Shared.Whitelist;
using Robust.Shared.Map;
using Robust.Shared.Serialization.TypeSerializers.Implementations.Custom.Prototype.List;
using Robust.Shared.Serialization.TypeSerializers.Implementations.Custom.Prototype.Set;
namespace Content.Server._Sunrise.PlanetPrison;
[RegisterComponent]
public sealed partial class PlanetPrisonStationComponent : Component
{
[DataField(customTypeSerializer: typeof(PrototypeIdHashSetSerializer<GameMapPrototype>), required: true)]
public HashSet<string> Stations = [];
public MapId MapId = MapId.Nullspace;
[DataField]
public EntityUid Entity = EntityUid.Invalid;
[DataField(customTypeSerializer: typeof(PrototypeIdListSerializer<BiomeTemplatePrototype>), required: true)]
public List<string> Biomes = [];
[DataField("shuttleWhitelist")]
public EntityWhitelist? ShuttleWhitelist;
[DataField]
public EntityUid PrisonGrid = EntityUid.Invalid;
}

View file

@ -0,0 +1,140 @@
using System.Linq;
using Content.Server._Sunrise.NightDayMapLight;
using Content.Server.Chat.Managers;
using Content.Server.GameTicking;
using Content.Server.Maps;
using Content.Server.Parallax;
using Content.Server.Shuttles.Systems;
using Content.Shared._Sunrise.Shuttles;
using Content.Shared._Sunrise.SunriseCCVars;
using Content.Shared.Parallax.Biomes;
using Content.Shared.Shuttles.Components;
using Robust.Server.GameObjects;
using Robust.Server.Maps;
using Robust.Shared.Configuration;
using Robust.Shared.Map;
using Robust.Shared.Player;
using Robust.Shared.Prototypes;
using Robust.Shared.Random;
namespace Content.Server._Sunrise.PlanetPrison;
public sealed class PlanetPrisonStationSystem : EntitySystem
{
[Dependency] private readonly ISharedPlayerManager _player = default!;
[Dependency] private readonly IConfigurationManager _cfg = default!;
[Dependency] private readonly IChatManager _chat = default!;
[Dependency] private readonly IRobustRandom _random = default!;
[Dependency] private readonly MapSystem _map = default!;
[Dependency] private readonly IPrototypeManager _prototypeManager = default!;
[Dependency] private readonly GameTicker _gameTicker = default!;
[Dependency] private readonly IMapManager _mapManager = default!;
[Dependency] private readonly BiomeSystem _biomeSystem = default!;
[Dependency] private readonly IPrototypeManager _protoManager = default!;
[Dependency] private readonly IEntityManager _entManager = default!;
[Dependency] private readonly ShuttleSystem _shuttle = default!;
private ISawmill _sawmill = default!;
public override void Initialize()
{
_sawmill = Logger.GetSawmill("station.prison");
SubscribeLocalEvent<PlanetPrisonStationComponent, ComponentInit>(OnPlanetPrisonStationInit);
SubscribeLocalEvent<PlanetPrisonStationComponent, ComponentShutdown>(OnPrisonShutdown);
}
private void OnPrisonShutdown(EntityUid uid, PlanetPrisonStationComponent component, ComponentShutdown args)
{
QueueDel(component.Entity);
component.Entity = EntityUid.Invalid;
if (_mapManager.MapExists(component.MapId))
_mapManager.DeleteMap(component.MapId);
component.MapId = MapId.Nullspace;
}
private void OnPlanetPrisonStationInit(EntityUid uid, PlanetPrisonStationComponent component, ComponentInit args)
{
if (TryComp<TransformComponent>(component.Entity, out var xform))
{
component.MapId = xform.MapID;
return;
}
var minPlayers = _cfg.GetCVar(SunriseCCVars.MinPlayersPlanetPrison);
if (_player.PlayerCount <= minPlayers)
{
_chat.DispatchServerAnnouncement(Loc.GetString("planet-prison-not-enough-players", ("minimumPlayers", minPlayers)), Color.OrangeRed);
return;
}
AddPlanetPrison(component);
}
private void AddPlanetPrison(PlanetPrisonStationComponent component)
{
var query = AllEntityQuery<PlanetPrisonStationComponent>();
while (query.MoveNext(out var otherComp))
{
if (otherComp == component)
continue;
component.MapId = otherComp.MapId;
return;
}
var mapUid = _map.CreateMap();
var xform = Transform(mapUid);
component.MapId = xform.MapID;
var station = _random.Pick(component.Stations);
var mapOptions = new MapLoadOptions()
{
LoadMap = false,
Rotation = Angle.Zero,
};
if (!_protoManager.TryIndex<BiomeTemplatePrototype>(_random.Pick(component.Biomes), out var biome))
{
_sawmill.Warning("No Prison map found, skipping setup.");
return;
}
if (!_prototypeManager.TryIndex<GameMapPrototype>(station, out var gameMap))
{
_sawmill.Warning("No Prison map found, skipping setup.");
return;
}
_chat.DispatchServerAnnouncement(Loc.GetString("planet-prison-select-map", ("stationName", gameMap.MapName)), Color.LightBlue);
_chat.DispatchServerAnnouncement(Loc.GetString("planet-prison-select-biome", ("biomeName", biome.ID)), Color.LightBlue);
var uids = _gameTicker.LoadGameMap(gameMap, xform.MapID, mapOptions);
if (uids.Count != 1)
{
_sawmill.Warning("Prison station have more 1 grid.");
QueueDel(component.Entity);
component.Entity = EntityUid.Invalid;
if (_mapManager.MapExists(component.MapId))
_mapManager.DeleteMap(component.MapId);
component.MapId = MapId.Nullspace;
return;
}
EnsureComp<IgnoreFtlCheckComponent>(uids[0]);
component.PrisonGrid = uids[0];
_biomeSystem.EnsurePlanet(mapUid, biome);
EnsureComp<NightDayMapLightComponent>(mapUid);
var destComp = _entManager.EnsureComponent<FTLDestinationComponent>(mapUid);
destComp.BeaconsOnly = true;
_shuttle.SetFTLWhitelist(mapUid, component.ShuttleWhitelist);
}
}

View file

@ -0,0 +1,141 @@
using System.Linq;
using Content.Server.Chat.Managers;
using Content.Server.GameTicking;
using Content.Server.Mind;
using Content.Server.Objectives;
using Content.Shared.Mind.Components;
using Content.Shared.Roles;
using Robust.Server.GameObjects;
using Robust.Shared.Timing;
namespace Content.Server._Sunrise.PlanetPrison
{
public sealed class PlanetPrisonSystem : EntitySystem
{
private const string AntagRole = "PlanetPrisoner";
private const string EscapeObjective = "PlanetPrisonerEscapeObjective";
private const string GameRule = "PlanetPrison";
private const float EscapeDistance = 200f;
public TimeSpan NextTick = TimeSpan.Zero;
public TimeSpan RefreshCooldown = TimeSpan.FromSeconds(5);
[Dependency] private readonly MindSystem _mindSystem = default!;
[Dependency] private readonly IChatManager _chatManager = default!;
[Dependency] private readonly SharedRoleSystem _roleSystem = default!;
[Dependency] private readonly GameTicker _gameTicker = default!;
[Dependency] private readonly TransformSystem _transformSystem = default!;
[Dependency] private readonly IGameTiming _timing = default!;
public override void Initialize()
{
base.Initialize();
SubscribeLocalEvent<PlanetPrisonerComponent, MindAddedMessage>(OnMindAdded);
SubscribeLocalEvent<PlanetPrisonRuleComponent, ObjectivesTextGetInfoEvent>(OnObjectivesTextGetInfo);
SubscribeLocalEvent<PlanetPrisonRuleComponent, ObjectivesTextPrependEvent>(OnObjectivesTextPrepend);
}
private void OnObjectivesTextPrepend(EntityUid uid, PlanetPrisonRuleComponent comp, ref ObjectivesTextPrependEvent args)
{
var planetPrisonRule = GetPlanetPrisonRule();
args.Text += Loc.GetString("planet-prison-round-end-result", ("count", planetPrisonRule.PrisonersMinds.Count));
}
private void OnObjectivesTextGetInfo(EntityUid uid, PlanetPrisonRuleComponent comp, ref ObjectivesTextGetInfoEvent args)
{
args.Minds = comp.PrisonersMinds;
args.AgentName = Loc.GetString("planet-prisoner-round-end-name");
}
public override void Update(float frameTime)
{
if (NextTick > _timing.CurTime)
return;
NextTick += RefreshCooldown;
var planetPrisonRule = GetPlanetPrisonRule();
var planetPrisonStation = EntityQuery<PlanetPrisonStationComponent>().FirstOrDefault();
if (planetPrisonStation == null)
return;
var xformPrison = Transform(planetPrisonStation.PrisonGrid);
var prisonPosition = _transformSystem.GetMapCoordinates(xformPrison);
base.Update(frameTime);
var query = AllEntityQuery<PlanetPrisonerComponent, TransformComponent>();
while (query.MoveNext(out var prisoner, out _, out var xform))
{
var prisonerPosition = _transformSystem.GetMapCoordinates(xform);
if (prisonerPosition.MapId != planetPrisonStation.MapId)
continue;
var distance = (prisonerPosition.Position - prisonPosition.Position).Length();
if (!(distance > EscapeDistance) || !_mindSystem.TryGetMind(prisoner, out var mindId, out var mind))
continue;
if (planetPrisonRule.EscapedPrisoners.Contains(mindId))
continue;
// Не ну а чо
QueueDel(prisoner);
planetPrisonRule.EscapedPrisoners.Add(mindId);
}
}
public PlanetPrisonRuleComponent GetPlanetPrisonRule()
{
var planetPrisonRule = EntityQuery<PlanetPrisonRuleComponent>().FirstOrDefault();
if (planetPrisonRule != null)
return planetPrisonRule;
_gameTicker.StartGameRule(GameRule, out var ruleEntity);
planetPrisonRule = Comp<PlanetPrisonRuleComponent>(ruleEntity);
return planetPrisonRule;
}
public bool PrisonerEscaped(EntityUid mind)
{
var planetPrisonRule = GetPlanetPrisonRule();
return planetPrisonRule.EscapedPrisoners.Contains(mind);
}
private void OnMindAdded(EntityUid uid, PlanetPrisonerComponent component, MindAddedMessage args)
{
var planetPrisonRule = GetPlanetPrisonRule();
if (!_mindSystem.TryGetMind(uid, out var mindId, out var mind))
{
return;
}
if (component.FirstMindAdded)
return;
component.FirstMindAdded = true;
if (_roleSystem.MindHasRole<PlanetPrisonerRoleComponent>(mindId))
{
_roleSystem.MindTryRemoveRole<PlanetPrisonerRoleComponent>(mindId);
}
_roleSystem.MindAddRole(mindId, new PlanetPrisonerRoleComponent
{
PrototypeId = AntagRole,
});
if (_mindSystem.TryGetSession(mind, out var session))
{
_chatManager.DispatchServerMessage(session, Loc.GetString("fugitive-role-greeting"));
}
_mindSystem.TryAddObjective(mindId, mind, EscapeObjective);
planetPrisonRule.PrisonersMinds.Add((mindId, Name(uid)));
}
}
}

View file

@ -0,0 +1,9 @@
namespace Content.Server._Sunrise.PlanetPrison
{
[RegisterComponent]
public sealed partial class PlanetPrisonerComponent : Component
{
[DataField("firstMindAdded")]
public bool FirstMindAdded = false;
}
}

View file

@ -0,0 +1,9 @@
using Content.Shared.Roles;
namespace Content.Server._Sunrise.PlanetPrison;
[RegisterComponent]
public sealed partial class PlanetPrisonerRoleComponent : AntagonistRoleComponent
{
}

View file

@ -1,3 +1,4 @@
using Content.Shared._Sunrise.Shuttles;
using Content.Shared.Containers.ItemSlots;
using Content.Shared.Shuttles.BUIStates;
using Content.Shared.Shuttles.Components;
@ -151,7 +152,7 @@ public abstract partial class SharedShuttleSystem : EntitySystem
{
// Only beacons parented to map supported.
var coordinates = GetCoordinates(nCoordinates);
return HasComp<MapComponent>(coordinates.EntityId);
return HasComp<MapGridComponent>(coordinates.EntityId); // Sunrise-Edit
}
public float GetFTLRange(EntityUid shuttleUid) => FTLRange;
@ -193,6 +194,12 @@ public abstract partial class SharedShuttleSystem : EntitySystem
return false;
}
// Sunrise-Start
// Запрет летать по планете туда сюда
if (shuttleXform.MapID == mapCoordinates.MapId)
return false;
// Sunrise-End
// Check exclusion zones.
// This needs to be passed in manually due to PVS.
if (exclusionZones != null)
@ -221,6 +228,11 @@ public abstract partial class SharedShuttleSystem : EntitySystem
if (grid.Owner == shuttleUid)
continue;
// Sunrise-Start
if (HasComp<IgnoreFtlCheckComponent>(grid))
continue;
// Sunrise-End
return false;
}

View file

@ -0,0 +1,8 @@
using Robust.Shared.GameStates;
namespace Content.Shared._Sunrise.Shuttles;
[RegisterComponent, NetworkedComponent]
public sealed partial class IgnoreFtlCheckComponent : Component
{
}

View file

@ -0,0 +1,9 @@
using Robust.Shared.GameStates;
namespace Content.Shared._Sunrise.Shuttles;
[RegisterComponent, NetworkedComponent]
public sealed partial class PrisonShuttleComponent : Component
{
}

View file

@ -0,0 +1,9 @@
using Robust.Shared.GameStates;
namespace Content.Shared._Sunrise.Shuttles;
[RegisterComponent, NetworkedComponent]
public sealed partial class SecurityShuttleComponent : Component
{
}

View file

@ -137,10 +137,18 @@ public sealed class SunriseCCVars
public static readonly CVarDef<float> LobbyOpacity =
CVarDef.Create("lobby.lobby_opacity", 0.90f, CVar.CLIENTONLY | CVar.ARCHIVE);
/*
* Planet Prison
*/
public static readonly CVarDef<int> MinPlayersPlanetPrison =
CVarDef.Create("planet_prison.min_players", 0, CVar.SERVERONLY);
/**
* Roadmap
*/
public static readonly CVarDef<string> RoadmapId =
CVarDef.Create("roadmap.id", "SunriseRoadmap");
}

View file

@ -0,0 +1 @@
comms-console-announcement-title-prison = Космическая тюрьма

View file

@ -0,0 +1,29 @@
station-event-fugitive-hunt-announcement = Пожалуйста, проверьте факс капитана для получения секретного сообщения.
fugitive-spawn = {CAPITALIZE(THE($name))} вылазит из под пола!
fugitive-announcement-GALPOL = ГАЛПОЛ
fugi-report-ent-name = ДОНОС О БЕГЛЕЦЕ: {$name}
fugi-report-title = РОЗЫСК: {$name}
fugitive-report-first-line = Был замечен сбежавший заключенный {$name} в секторе. Он может быть прятан на одной из станций.
fugitive-report-inhuman = {CAPITALIZE(THE($name))} не гуманоид. У нас нет дополнительной информации.
fugitive-report-morphotype = МОРФОТИП: {$species}
fugitive-report-sex-m = ПОЛ: М
fugitive-report-sex-f = ПОЛ: Ж
fugitive-report-sex-n = ПОЛ: Н/Д
fugitive-report-weight = ВЕС: {$weight} кг
fugitive-report-age = ВОЗРАСТ: {$age}
fugitive-report-last-line = Данный человек в розыске по всему сектору; предпочтительно живым.
fugitive-round-end-name = беглец
fugitive-role-greeting = Вы заключенный сбежавший с тюрьмы - ваша задача сбежать на эвакуационном шаттле.
fugitive-user-was-a-fugitive = [color=gray]{$user}[/color] был беглецом.
fugitive-user-was-a-fugitive-named = [color=White]{$name}[/color] ([color=gray]{$user}[/color]) был беглецом.
fugitive-was-a-fugitive-named = [color=White]{$name}[/color] был беглецом.
fugitive-user-was-a-fugitive-with-objectives = [color=gray]{$user}[/color] был беглецом и имел следующие цели:
fugitive-user-was-a-fugitive-with-objectives-named = [color=White]{$name}[/color] ([color=gray]{$user}[/color]) был беглецом и имел следующие цели:
fugitive-was-a-fugitive-with-objectives-named = [color=White]{$name}[/color] был беглецом и имел следующие цели:

View file

@ -1,2 +1,3 @@
department-Law-description = Защищяйте, судите или накажите преступников.
department-CentralCommand-description = Большие шишки.
department-PlanetPrison-description = Не дайте нарушителям закона сбежать.

View file

@ -1,3 +1,4 @@
department-Law = Юридический отдел
department-CentralCommand = Центральное командование
department-Blueshield = Синий Щит
department-PlanetPrison = Планетарная тюрьма

View file

@ -7,3 +7,11 @@ job-description-senior-physician = Обучайте новых медиков о
job-description-senior-officer = Обучите новых кадетов основам обыска, проведения арестов, времени пребывания в тюрьме и правильной стрельбе из огнестрельного оружия.
job-description-blueshield = Ваша главная задача - защита глав. Помните, вы не офицер службы безопасности.
job-description-roboticist = Занимайтесь созданием киборгов, мехов и чините их.
job-description-head-of-prison = Управляйте лучшим местом на планете.
job-description-prison-chef = Готовьте еду для заключенных и персонала тюрьмы.
job-description-prison-doctor = Лечите побитых заключенных.
job-description-prison-engineer = Обеспечивайте функционирование тюрьмы.
job-description-prison-pilot = Доставляйте заключенных в тюрьму на своем шаттле.
job-description-prison-worker = Выполняйте работу за которую никто не хочет браться.
job-description-prison-guard = Следите за заключенными.
job-description-security-pilot = Штурмуйте базу синдиката на своем шаттле, если вы её конечно найдете.

View file

@ -7,6 +7,15 @@ job-name-senior-researcher = ведущий учёный
job-name-senior-physician = ведущий врач
job-name-senior-officer = инструктор СБ
job-name-roboticist = робототехник
job-name-head-of-prison = начальник тюрьмы
job-name-prison-chef = тюремный повар
job-name-prison-doctor = тюремный доктор
job-name-prison-engineer = тюремный инженер
job-name-prison-pilot = тюремный пилот
job-name-prison-worker = тюремный разнорабочий
job-name-prison-guard = тюремный охранник
job-name-prisoner = заключенный
job-name-security-pilot = пилот СБ
# Перевод трекеров времени
JobCentCommOfficial = представитель Центком
@ -16,3 +25,12 @@ JobSeniorOfficer = инструктор СБ
JobSeniorPhysician = ведущий врач
JobSeniorResearcher = ведущий учёный
JobRoboticist = робототехник
JobHeadOfPrison = начальник тюрьмы
JobPrisonChef = тюремный повар
JobPrisonDoctor = тюремный доктор
JobPrisonEngineer = тюремный инженер
JobPrisonGuard = тюремный охранник
JobPrisonPilot = тюремный пилот
JobPrisonWorker = тюремный разнорабочий
JobPrisoner = заключенный
JobSecurityPilot = пилот СБ

View file

@ -0,0 +1,31 @@
alert-level-rollcall = Перекличка
alert-level-rollcall-announcement = На станции начался период переклички. Все заключенные обязаны проследовать в специально отведенное место для этого.
alert-level-rollcall-instructions = Заключенные должны собраться в специальнно отведеном месте для переклички. Охранники должны удостоверится в наличии всех заключенных на перекличке.
alert-level-breakfast = Обед
alert-level-breakfast-announcement = На станции начался период обеда. Все заключенные обязаны проследовать в столовую.
alert-level-breakfast-instructions = Заключенные должны проследовать в столовую. Охранники должны удостоверится в наличии всех заключенных на обеде.
alert-level-work = Работа
alert-level-work-announcement = На станции начался период работы. Заключенные имеющие работу должны явиться на неё для выполнения своих обязаностей.
alert-level-work-instructions = Заключенные имеющие работу должны явиться на неё для выполнения своих обязаностей. Охранники должны удостоверится в выполнении рабочими заключеннными своих обязаностей.
alert-level-exercise = Физ. упражнения
alert-level-exercise-announcement = На станции начался период физических упражнений. Все заключенные должны проследовать в спортзал.
alert-level-exercise-instructions = аключенные должны проследовать в спортзал. Охранники должны удостоверится в посещении заключеннными спортзала.
alert-level-rest = Отдых
alert-level-rest-announcement = На станции начался период отдыха. Заключенные могут заниматься своим досугом.
alert-level-rest-instructions = Заключенные могут заниматься своим досугом. Охранники должны следить за порядком.
alert-level-shower = Душ
alert-level-shower-announcement = На станции начался период приема душа. Заключенные должны проследовать в душевую.
alert-level-shower-instructions = Заключенные должны проследовать в душевую. Охранники должны следить за порядком во время душа.
alert-level-lightsout = Отбой
alert-level-lightsout-announcement = На станции начался период отбоя. Заключенные должны проследовать в свои камеры.
alert-level-lightsout-instructions = Заключенные должны проследовать в свои камеры. Охранники должны проследить за наличием всех заключеннных в камерах.
alert-level-lockdown = Локдаун
alert-level-lockdown-announcement = На станции обьявлен локдаун. Все заключенные должны проследовать в свои камеры немедленно. Охранники обязаны найти и поймать нарушителей порядка.
alert-level-lockdown-instructions = Все заключенные должны проследовать в свои камеры немедленно. Охранники должны найти и поймать нарушителлей порядка.

View file

@ -0,0 +1,13 @@
planet-prison-not-enough-players = Недостаточно игроков для создания планетарной тюрьмы, необходимо больше { $minimumPlayers } игроков.
planet-prison-select-map = Случайным образом для тюрьмы была выбрана карта: { $stationName }
planet-prison-select-biome = Случайным образом для тюрьмы был выбран биом: { $biomeName }
planet-prisoner-round-end-name = заключенный
planet-prisoner-role-greeting = Вы заключенный - ваша задача сбежать как можно дальше от комплекса тюрьмы.
planet-prison-round-end = Из тюрьмы сбежало { $count } заключенных.
planet-prison-round-end-result =
{ $count ->
[one] Из тюрьмы сбежал лишь один заключенный.
[few] Из тюрьмы сбежало { $count } заключенных.
*[other] Из тюрьмы сбежало { $count } заключенных.
}

View file

@ -18,3 +18,9 @@ loadout-group-chief-engineer-backpack = Старший инженер, рюкз
loadout-group-roboticist-head = Робототехник, головной убор
loadout-group-roboticist-jumpsuit = Робототехник, комбинезон
loadout-group-roboticist-outerclothing = Робототехник, верхняя одежда
loadout-group-security-pilot-backpack = Пилот СБ, рюкзак
loadout-group-security-pilot-jumpsuit = Пилот СБ, комбинезон
loadout-group-prison-guard-jumpsuit = Охранник, комбинезон
loadout-group-prison-guard-backpack = Охранник, рюкзак
loadout-group-prison-guard-head = Охранник, головной убор
loadout-group-prisoner-jumpsuit = Заключенный, комбинезон

File diff suppressed because it is too large Load diff

File diff suppressed because it is too large Load diff

File diff suppressed because it is too large Load diff

File diff suppressed because it is too large Load diff

File diff suppressed because it is too large Load diff

View file

@ -56,6 +56,11 @@
mining: !type:GridSpawnGroup
paths:
- /Maps/_Sunrise/Shuttles/mining_shuttle.yml # Sunrise-edit
nameGrid: false
security: !type:GridSpawnGroup
paths:
- /Maps/_Sunrise/Shuttles/security.yml # Sunrise-edit
nameGrid: false
# Spawn last
ruins: !type:GridSpawnGroup
hide: true

View file

@ -28,6 +28,7 @@
# Sunrise-Start
- BaseStationTransitHub
- BaseStationDontSelling
- BaseStationPlanetPrison
- BaseStationGoal
# Sunrise-End
noSpawn: true

View file

@ -85,6 +85,7 @@
- Detective
- Warden
- Brigmedic # Sunrise-Brigmedic
- SecurityPilot # Sunrise-SecurityPilot
- type: department
id: Science

View file

@ -0,0 +1,31 @@
- type: entity
id: LockerHeadOfPrisonFilled
name: шкафчик начальника тюрьмы
suffix: Filled
parent: LockerHeadOfSecurity
components:
- type: StorageFill
contents:
- id: ClothingEyesHudSecurity
- id: WeaponDisabler
- id: PrisonCommsComputerCircuitboard
- id: ClothingUniformJumpsuitHoSGrey
prob: 0.5
- id: ClothingUniformJumpsuitHoSParadeMale
prob: 0.1
- id: ClothingUniformJumpskirtHoSParadeMale
prob: 0.1
- id: DrinkVacuumFlask
prob: 0.8
- id: ClothingBeltSecurityFilled
- id: ClothingHeadsetAltSecurity
- id: ClothingEyesGlassesSecurity
- id: ClothingShoesBootsJack
- id: CigarGoldCase
prob: 0.50
- id: DoorRemoteSecurity
- id: ClothingUniformJumpskirtHosFormal
- id: ClothingUniformJumpsuitHosFormal
- id: RubberStampHos
- id: BoxEncryptionKeySecurity
- id: HoloprojectorSecurity

View file

@ -41,3 +41,12 @@
components:
- type: Sprite
sprite: _Sunrise/Clothing/Back/Backpacks/blueshield.rsi
- type: entity
parent: ClothingBackpack
id: ClothingBackpackPrisonGuard
name: рюкзак сотрудника кт
description: На стиле.
components:
- type: Sprite
sprite: _Sunrise/Clothing/Back/Backpacks/guard.rsi

View file

@ -28,3 +28,12 @@
components:
- type: Sprite
sprite: _Sunrise/Clothing/Back/Duffels/blueshield.rsi
- type: entity
parent: ClothingBackpackDuffel
id: ClothingBackpackDuffelPrisonGuard
name: вещмешок сотрудника кт
description: На стиле.
components:
- type: Sprite
sprite: _Sunrise/Clothing/Back/Duffels/guard.rsi

View file

@ -25,6 +25,15 @@
id: ClothingBackpackSatchelBlueShield
name: сумка офицера «синий щит»
description: На стиле.
components:
- type: Sprite
sprite: _Sunrise/Clothing/Back/Satchels/blueshield.rsi
- type: entity
parent: ClothingBackpackSatchel
id: ClothingBackpackSatchelPrisonGuard
name: сумка сотрудника кт
description: На стиле.
components:
- type: Sprite
sprite: _Sunrise/Clothing/Back/Satchels/blueshield.rsi
sprite: _Sunrise/Clothing/Back/Satchels/guard.rsi

View file

@ -8,3 +8,20 @@
sprite: _Sunrise/Clothing/Belt/blueshield_webbing.rsi
- type: Clothing
sprite: _Sunrise/Clothing/Belt/blueshield_webbing.rsi
- type: entity
id: ClothingBeltPrisonGuardianFilled
parent: ClothingBeltSecurity
suffix: Filled
components:
- type: StorageFill
contents:
- id: GrenadeFlashBang
- id: TearGasGrenade
- id: Stunbaton
- id: Handcuffs
- id: Handcuffs
- type: Sprite
sprite: _Sunrise/Clothing/Belt/prison_guardian.rsi
- type: Clothing
sprite: _Sunrise/Clothing/Belt/prison_guardian.rsi

View file

@ -64,3 +64,27 @@
Blunt: 0.8
Slash: 0.8
Piercing: 0.8
- type: entity
parent: ClothingHeadHardsuitWithLightBase
id: ClothingHeadHelmetHardsuitPilot
name: Шлем скафандра пилота Службы Безопасности
description: Футуристичный шлем с отличным обзором.
components:
- type: BreathMask
- type: Sprite
sprite: _Sunrise/Entities/Clothing/Head/Hardsuit/pilothardsuithelmet.rsi
- type: Clothing
sprite: _Sunrise/Entities/Clothing/Head/Hardsuit/pilothardsuithelmet.rsi
- type: PointLight
color: cyan
- type: PressureProtection
highPressureMultiplier: 0.525
lowPressureMultiplier: 1000
- type: Armor
modifiers:
coefficients:
Blunt: 0.95
Slash: 0.95
Piercing: 0.95
Heat: 0.95

View file

@ -96,3 +96,36 @@
sprite: _Sunrise/Clothing/Head/Hats/blueshield.rsi
- type: Clothing
sprite: _Sunrise/Clothing/Head/Hats/blueshield.rsi
- type: entity
parent: ClothingHeadBase
id: ClothingHeadPrisonGuard
name: головной убор охраны кт
description: Дарует полную неприкосновенность при лишении других людей ОПРС, достоинства или уважения.
components:
- type: Sprite
sprite: _Sunrise/Clothing/Head/Hats/prisonguard.rsi
- type: Clothing
sprite: _Sunrise/Clothing/Head/Hats/prisonguard.rsi
- type: entity
parent: ClothingHeadBase
id: ClothingHeadHatBeretPrisonGuard
name: берет охраны кт
description: Почему не красный?
components:
- type: Sprite
sprite: _Sunrise/Clothing/Head/Hats/prisonguard_beret.rsi
- type: Clothing
sprite: _Sunrise/Clothing/Head/Hats/prisonguard_beret.rsi
- type: entity
parent: ClothingHeadBase
id: ClothingHeadCapPrisonGuard
name: кепка охраны кт
description: Почему не красный?
components:
- type: Sprite
sprite: _Sunrise/Clothing/Head/Hats/cap.rsi
- type: Clothing
sprite: _Sunrise/Clothing/Head/Hats/cap.rsi

View file

@ -8,3 +8,21 @@
sprite: _Sunrise/Clothing/Head/Helmets/security_medic.rsi
- type: Clothing
sprite: _Sunrise/Clothing/Head/Helmets/security_medic.rsi
- type: entity
parent: ClothingHeadBase
id: ClothingHeadHelmetPilot
name: Шлем пилота Службы Безопасности
description: Толстый шлем пилота, обеспечивающий хорошую защиту головы.
components:
- type: Sprite
sprite: _Sunrise/Entities/Clothing/Head/Hats/pilothelmet.rsi
- type: Clothing
sprite: _Sunrise/Entities/Clothing/Head/Hats/pilothelmet.rsi
- type: Armor
modifiers:
coefficients:
Blunt: 0.85
Slash: 0.85
Piercing: 0.85
Heat: 0.85

View file

@ -0,0 +1,12 @@
- type: entity
parent: ClothingMaskGas
id: ClothingMaskGasPilot
description: Противогаз выполенный в стиле масок пилотов 21-го века.
name: Противогаз пилота Службы Безопасности
components:
- type: Item
size: Tiny
- type: Sprite
sprite: _Sunrise/Entities/Clothing/Mask/pilotmask.rsi
- type: Clothing
sprite: _Sunrise/Entities/Clothing/Mask/pilotmask.rsi

View file

@ -119,3 +119,14 @@
Blunt: 0.9
Slash: 0.9
Piercing: 0.8
- type: entity
parent: ClothingOuterStorageBase
id: ClothingOuterCoatPilot
name: Куртка пилота Службы Безопасности
description: Стильная куртка для настоящего аса.
components:
- type: Sprite
sprite: _Sunrise/Entities/Clothing/OuterClothing/pilotcoat.rsi
- type: Clothing
sprite: _Sunrise/Entities/Clothing/OuterClothing/pilotcoat.rsi

View file

@ -60,3 +60,34 @@
damageCoefficient: 0.6
- type: ToggleableClothing
clothingPrototype: ClothingHeadHelmetHardsuitBlueshield
- type: entity
parent: ClothingOuterHardsuitBase
id: ClothingOuterHardsuitPilot
name: Скафандр пилота Службы Безопасности
description: Облегченная версия скафандра Службы безопасности, обеспечивает хорошую подвижность, но меньшую защиту.
components:
- type: Sprite
sprite: _Sunrise/Entities/Clothing/Hardsuits/pilothardsuit.rsi
- type: Clothing
sprite: _Sunrise/Entities/Clothing/Hardsuits/pilothardsuit.rsi
- type: PressureProtection
highPressureMultiplier: 0.5
lowPressureMultiplier: 1000
- type: ExplosionResistance
damageCoefficient: 0.7
- type: Armor
modifiers:
coefficients:
Blunt: 0.8
Slash: 0.7
Piercing: 0.7
Caustic: 0.8
- type: ClothingSpeedModifier
walkModifier: 0.95
sprintModifier: 0.95
- type: HeldSpeedModifier
- type: ToggleableClothing
clothingPrototype: ClothingHeadHelmetHardsuitPilot
- type: Item
size: Normal

View file

@ -17,3 +17,14 @@
sprite: _Sunrise/Clothing/Shoes/Boots/blueshield.rsi
- type: Clothing
sprite: _Sunrise/Clothing/Shoes/Boots/blueshield.rsi
- type: entity
parent: [ClothingShoesBase, ClothingSlotBase]
id: ClothingShoesBootsPrisonerGrey
name: ботинки заключенного
description: Почему не оранжевые?
components:
- type: Sprite
sprite: _Sunrise/Clothing/Shoes/Boots/prisoner.rsi
- type: Clothing
sprite: _Sunrise/Clothing/Shoes/Boots/prisoner.rsi

View file

@ -75,3 +75,35 @@
sprite: _Sunrise/Clothing/Uniforms/Jumpskirt/blueshield.rsi
- type: Clothing
sprite: _Sunrise/Clothing/Uniforms/Jumpskirt/blueshield.rsi
- type: entity
parent: ClothingUniformBase
id: ClothingUniformJumpskirtPrisonerGrey
name: юбка-комбинезон заключенной
description: Почему она не оранжевая?
components:
- type: Sprite
sprite: _Sunrise/Clothing/Uniforms/Jumpskirt/prisoner.rsi
- type: Clothing
sprite: _Sunrise/Clothing/Uniforms/Jumpskirt/prisoner.rsi
- type: entity
parent: ClothingUniformBase
id: ClothingUniformJumpskirtGuard
name: юбка-комбинезон охраны
description: Почему она не красная?
components:
- type: Sprite
sprite: _Sunrise/Clothing/Uniforms/Jumpskirt/guard.rsi
- type: Clothing
sprite: _Sunrise/Clothing/Uniforms/Jumpskirt/guard.rsi
- type: entity
parent: ClothingUniformSkirtBase
id: ClothingUniformJumpskirtPilot
name: Юбка комбинезон пилота Службы Безопасности
components:
- type: Sprite
sprite: _Sunrise/Entities/Clothing/Unoforms/Jumpskirt/pilotjumpskirt.rsi
- type: Clothing
sprite: _Sunrise/Entities/Clothing/Unoforms/Jumpskirt/pilotjumpskirt.rsi

View file

@ -63,3 +63,36 @@
sprite: _Sunrise/Clothing/Uniforms/Jumpsuit/blueshield.rsi
- type: Clothing
sprite: _Sunrise/Clothing/Uniforms/Jumpsuit/blueshield.rsi
- type: entity
parent: ClothingUniformBase
id: ClothingUniformJumpsuitPrisonerGrey
name: комбинезон заключенного
description: Почему он не оранжевый?
components:
- type: Sprite
sprite: _Sunrise/Clothing/Uniforms/Jumpsuit/prisoner.rsi
- type: Clothing
sprite: _Sunrise/Clothing/Uniforms/Jumpsuit/prisoner.rsi
- type: entity
parent: ClothingUniformBase
id: ClothingUniformJumpsuitPrisonGuard
name: комбинезон охранника
description: Почему он не красный?
components:
- type: Sprite
sprite: _Sunrise/Clothing/Uniforms/Jumpsuit/guard.rsi
- type: Clothing
sprite: _Sunrise/Clothing/Uniforms/Jumpsuit/guard.rsi
- type: entity
parent: ClothingUniformBase
id: ClothingUniformJumpsuitPilot
name: Комбинезон пилота Службы Безопасности
description: Легкий комбинезон, рекомендуемый 9 пилотами НТ из 10.
components:
- type: Sprite
sprite: _Sunrise/Entities/Clothing/Unoforms/Jumpsuit/pilotjumpsuit.rsi
- type: Clothing
sprite: _Sunrise/Entities/Clothing/Unoforms/Jumpsuit/pilotjumpsuit.rsi

View file

@ -49,3 +49,160 @@
- MobPig
chance: 1
offset: 0.0
- type: entity
name: NPC Carp Spawner
id: CarpSpawnerMundane
parent: MarkerBase
suffix: 100
components:
- type: Sprite
layers:
- state: red
- sprite: Mobs/Aliens/Carps/space.rsi
state: icon
- type: RandomSpawner
prototypes:
- MobCarp
- type: entity
name: Hat Spawner
id: HatSpawner
parent: MarkerBase
components:
- type: Sprite
layers:
- state: red
- sprite: Clothing/Head/Hats/tophat.rsi
state: icon
- type: RandomSpawner
rarePrototypes:
- ClothingHeadHatCentcom
- ClothingHeadHatOutlawHat
- ClothingHeadHatWizardFake
- ClothingHeadHatPirate
- ClothingHeadHatPlaguedoctor
- ClothingHeadHatSantahat
- ClothingHeadHatXmasCrown
- ClothingHeadHelmetCosmonaut
- ClothingHeadHelmetBasic
- ClothingHeadHelmetTemplar
- ClothingHeadHelmetThunderdome
- ClothingHeadHelmetFire
- ClothingHeadHatBunny
- ClothingHeadHatHoodBioGeneral
- ClothingHeadHatHoodRad
- ClothingHeadHatCake
- ClothingHeadHatChickenhead
- FoodPoppy
- ClothingHeadHatPumpkin
- ClothingHeadHatRichard
- ClothingHeadHatSkub
- ClothingHeadHatShrineMaidenWig
- ClothingHeadHatSquid
- ClothingHeadHatBizarreSoft
- ClothingHeadHatWeldingMaskFlame
- ClothingHeadHatWeldingMaskFlameBlue
- ClothingHeadHatWeldingMaskPainted
rareChance: 0.03
prototypes:
- ClothingHeadHatAnimalCat
- ClothingHeadHatAnimalCatBrown
- ClothingHeadHatAnimalCatBlack
- ClothingHeadHatAnimalHeadslime
- ClothingHeadHatAnimalMonkey
- ClothingHeadBandBlack
- ClothingHeadBandBlue
- ClothingHeadBandGold
- ClothingHeadBandGreen
- ClothingHeadBandGrey
- ClothingHeadBandRed
- ClothingHeadBandSkull
- ClothingHeadHatHardhatBlue
- ClothingHeadHatHardhatOrange
- ClothingHeadHatHardhatRed
- ClothingHeadHatHardhatWhite
- ClothingHeadHatHardhatYellow
- ClothingHeadHatBeaverHat
- ClothingHeadHatBeret
- ClothingHeadHatBowlerHat
- ClothingHeadHatCardborg
- ClothingHeadHatFedoraBrown
- ClothingHeadHatFedoraGrey
- ClothingHeadHatPaper
- ClothingHeadHatSombrero
- ClothingHeadHatTophat
- ClothingHeadHatUshanka
- ClothingHeadHatTrucker
- ClothingHeadPaperSack
- ClothingHeadPaperSackSmile
- ClothingHeadFishCap
- ClothingHeadRastaHat
- ClothingHeadSafari
- ClothingHeadHatFlowerWreath
- ClothingHeadHatCone
- ClothingHeadHatBluesoft
- ClothingHeadHatCorpsoftFlipped
- ClothingHeadHatGreensoft
- ClothingHeadHatGreysoft
- ClothingHeadHatOrangesoft
- ClothingHeadHatPurplesoftFlipped
- ClothingHeadHatRedsoftFlipped
- ClothingHeadHatYellowsoft
- ClothingHeadHatWelding
chance: 0.5
offset: 0.2
- type: entity
name: NPC Snake Spawner
id: SnakeSpawnerMundane
parent: MarkerBase
suffix: 100
components:
- type: Sprite
layers:
- state: red
- sprite: Mobs/Aliens/Xenos/purple_snake.rsi
state: icon
- type: RandomSpawner
prototypes:
- MobPurpleSnake
- MobSmallPurpleSnake
- type: entity
name: NPC Space Tick Spawner
id: SpaceTickSpawnerNPC
parent: MarkerBase
suffix: 100
components:
- type: Sprite
layers:
- state: red
- sprite: Mobs/Aliens/Xenos/spacetick.rsi
state: icon
- type: ConditionalSpawner
prototypes:
- MobTick
- type: entity
name: NPC Xeno Spawner
id: XenoAISpawner
parent: MarkerBase
components:
- type: Sprite
layers:
- state: red
- sprite: Mobs/Aliens/Xenos/burrower.rsi
state: crit
- state: ai
- type: RandomSpawner
prototypes:
- MobXeno
- MobXenoPraetorian
- MobXenoDrone
- MobXenoRavager
- MobXenoRunner
- MobXenoSpitter
rarePrototypes:
- MobXenoQueen
rareChance: 0.10

View file

@ -0,0 +1,25 @@
- type: entity
name: Mining Rock Spawner
id: RandomRockSpawner
parent: MarkerBase
components:
- type: Sprite
layers:
- state: red
- sprite: Structures/Walls/rock.rsi
state: rock_asteroid
- type: RandomSpawner
prototypes:
- AsteroidRockMining
chance: 1
rarePrototypes:
- Barricade
- WallRockGold
- WallRockPlasma
- WallRockBananium
- WallRockQuartz
- WallRockSilver
- WallRockArtifactFragment
- WallRockTin
- WallRockUranium
rareChance: 0.35

View file

@ -64,6 +64,101 @@
- state: green
- state: centcom
- type: entity
id: SpawnPointHeadOfPrison
parent: SpawnPointJobBase
name: начальник тюрьмы
components:
- type: SpawnPoint
job_id: HeadOfPrison
- type: Sprite
layers:
- state: green
- state: hos
- type: entity
id: SpawnPointPrisonChef
parent: SpawnPointJobBase
name: тюремный шеф-повар
components:
- type: SpawnPoint
job_id: PrisonChef
- type: Sprite
layers:
- state: green
- state: chef
- type: entity
id: SpawnPointPrisonDoctor
parent: SpawnPointJobBase
name: тюремный доктор
components:
- type: SpawnPoint
job_id: PrisonDoctor
- type: Sprite
layers:
- state: green
- state: doctor
- type: entity
id: SpawnPointPrisonEngineer
parent: SpawnPointJobBase
name: тюремный инженер
components:
- type: SpawnPoint
job_id: PrisonEngineer
- type: Sprite
layers:
- state: green
- state: engineer
- type: entity
id: SpawnPointPrisonGuard
parent: SpawnPointJobBase
name: охранник
components:
- type: SpawnPoint
job_id: PrisonGuard
- type: Sprite
layers:
- state: green
- type: entity
id: SpawnPointPrisonPilot
parent: SpawnPointJobBase
name: тюремный пилот
components:
- type: SpawnPoint
job_id: PrisonPilot
- type: Sprite
layers:
- state: green
- state: seniorofficer
- type: entity
id: SpawnPointPrisoner
parent: SpawnPointJobBase
name: заключенный
components:
- type: SpawnPoint
job_id: Prisoner
- type: Sprite
layers:
- state: green
- state: prisoner
- type: entity
id: SpawnPointPrisonWorker
parent: SpawnPointJobBase
name: тюремный разнорабочий
components:
- type: SpawnPoint
job_id: PrisonWorker
- type: Sprite
layers:
- state: green
- state: serviceworker
- type: entity
id: SpawnPointSeniorEngineer
parent: SpawnPointJobBase

View file

@ -0,0 +1,9 @@
- type: entity
id: FTLPointShuttle
parent: MarkerBase
name: Посадочная площадка
components:
- type: FTLBeacon
blockRotate: true
- type: Sprite
state: pink

View file

@ -11,7 +11,6 @@
Manipulator: 1
Glass: 1
- type: entity
parent: BaseComputerCircuitboard
id: CentCommShuttleConsoleCircuitboard
@ -20,3 +19,30 @@
components:
- type: ComputerBoard
prototype: ComputerShuttleCentComm
- type: entity
parent: BaseComputerCircuitboard
id: PrisonShuttleConsoleCircuitboard
name: консоль тюремного шаттла (консольная плата)
description: Плата которая используется для создания консоли тюремного шаттла.
components:
- type: ComputerBoard
prototype: ComputerShuttlePrison
- type: entity
parent: BaseComputerCircuitboard
id: PrisonCommsComputerCircuitboard
name: консоль связи тюрьмы (консольная плата)
description: Плата которая используется для создания консоли связи тюрьмы.
components:
- type: ComputerBoard
prototype: PrisonComputerComms
- type: entity
parent: BaseComputerCircuitboard
id: SecurityShuttleConsoleCircuitboard
name: консоль шаттла службы безопастности (консольная плата)
description: Плата которая используется для создания консоли шаттла службы безопастности.
components:
- type: ComputerBoard
prototype: ComputerShuttleSecurity

View file

@ -25,3 +25,106 @@
- state: idroboticist
- type: PresetIdCard
job: Roboticist
- type: entity
parent: IDCardStandard
id: SecurityPilotIDCard
name: ID карта пилота службы безопастности
components:
- type: Sprite
layers:
- state: default
- state: idsecurityofficer
- type: PresetIdCard
job: SecurityPilot
- type: entity
parent: IDCardStandard
id: IAAIDCard
name: internal affairs agent ID card
components:
- type: Sprite
layers:
- state: silver
- state: idiaa
- type: PresetIdCard
job: IAA
- type: entity
parent: IDCardStandard
id: MagistratIDCard
name: Magistrate ID Card
components:
- type: Sprite
layers:
- state: silver
- state: idmagistrat
- type: PresetIdCard
job: Magistrat
- type: entity
parent: IDCardStandard
id: BrigmedicIDCard
name: brigmedic ID card
components:
- type: Sprite
layers:
- state: default
- state: idbrigmedic
- type: PresetIdCard
job: Brigmedic
- type: entity
parent: IDCardStandard
id: PrisonerIDCard
name: prisoner ID card
components:
- type: Sprite
sprite: _Sunrise/Objects/Misc/id_cards.rsi
layers:
- state: prisoner-space-prison
- state: idprisoner-space-prison
- type: PresetIdCard
job: Prisoner
- type: entity
parent: IDCardStandard
id: GuardIDCard
name: guard ID card
components:
- type: Sprite
sprite: _Sunrise/Objects/Misc/id_cards.rsi
layers:
- state: orange-space-prison
- state: idguardian-space-prison
- type: PresetIdCard
job: PrisonGuard
- type: entity
parent: IDCardStandard
id: PrisonPilotIDCard
name: ID карта тюремного пилота
components:
- type: Sprite
sprite: _Sunrise/Objects/Misc/id_cards.rsi
layers:
- state: orange-space-prison
- state: idprisonpilot-space-prison
- type: PresetIdCard
job: PrisonPilot
- type: entity
parent: IDCardStandard
id: HeadOfPrisonIDCard
name: ID карта начальника тюрьмы
components:
- type: Sprite
sprite: _Sunrise/Objects/Misc/id_cards.rsi
layers:
- state: orange-space-prison
- state: idheadofprison-space-prison
- type: Item
heldPrefix: silver
- type: PresetIdCard
job: HeadOfPrison

View file

@ -56,6 +56,72 @@
sprite: _Sunrise/Objects/pda.rsi
state: pda-blueshield
- type: entity
parent: BasePDA
id: PrisonerPDA
name: ПДА заключенного
description: В цвет робы для полного комплекта.
components:
- type: Sprite
sprite: _Sunrise/Objects/pda.rsi
- type: Pda
id: PrisonerIDCard
state: pda-space-prison-prisoner
- type: Icon
sprite: _Sunrise/Objects/pda.rsi
state: pda-space-prison-prisoner
- type: entity
parent: BasePDA
id: GuardPDA
name: ПДА тюремного охранника
description: Изогнутый и потертый, но каждая царапина - свидетельство непрерывной борьбы за безопасность.
components:
- type: Sprite
sprite: _Sunrise/Objects/pda.rsi
- type: Pda
id: GuardIDCard
state: pda-space-prison-guardian
- type: Icon
sprite: _Sunrise/Objects/pda.rsi
state: pda-space-prison-guardian
- type: entity
parent: BasePDA
id: PrisonPilotPDA
name: КПК тюремного пилота
description: Блестящий и технологичный, словно его только что вытащили из кокпита.
components:
- type: Sprite
sprite: _Sunrise/Objects/pda.rsi
- type: Pda
id: PrisonPilotIDCard
state: pda-space-prison-pilot
- type: PdaBorderColor
borderColor: "#A32D26"
accentVColor: "#DFDFDF"
- type: Icon
sprite: _Sunrise/Objects/pda.rsi
state: pda-space-prison-pilot
- type: entity
parent: BasePDA
id: HeadOfPrisonPDA
name: КПК начальника тюрьмы
description: Имеет вид престижного инструмента власти, но немного поцарапанный от постоянных срочных вызовов.
components:
- type: Sprite
sprite: _Sunrise/Objects/pda.rsi
- type: Pda
id: HeadOfPrisonIDCard
state: pda-space-prison-boss
- type: PdaBorderColor
borderColor: "#A32D26"
accentHColor: "#447987"
- type: Icon
sprite: _Sunrise/Objects/pda.rsi
state: pda-space-prison-boss
- type: entity
parent: BasePDA
id: RoboticistPDA
@ -76,3 +142,18 @@
damageContainers:
- Synth
- Silicon
- type: entity
parent: BasePDA
id: SecurityPilotPDA
name: КПК пилота службы безопастности
description: Нахуя нам пилот?
components:
- type: Pda
id: SecurityPilotIDCard
state: pda-seniorofficer
- type: PdaBorderColor
borderColor: "#A32D26"
accentVColor: "#DFDFDF"
- type: Icon
state: pda-seniorofficer

View file

@ -1,35 +0,0 @@
- type: entity
parent: IDCardStandard
id: IAAIDCard
name: internal affairs agent ID card
components:
- type: Sprite
layers:
- state: silver
- state: idiaa
- type: PresetIdCard
job: IAA
- type: entity
parent: IDCardStandard
id: MagistratIDCard
name: Magistrate ID Card
components:
- type: Sprite
layers:
- state: silver
- state: idmagistrat
- type: PresetIdCard
job: Magistrat
- type: entity
parent: IDCardStandard
id: BrigmedicIDCard
name: brigmedic ID card
components:
- type: Sprite
layers:
- state: default
- state: idbrigmedic
- type: PresetIdCard
job: Brigmedic

View file

@ -9,6 +9,7 @@
- type: CentCommShuttle
paths:
- /Maps/_Sunrise/Shuttles/centcom_shuttle.yml
nameGrid: true
- type: entity
id: BaseStationCentComm
@ -59,3 +60,38 @@
- MiningOutpost
- Tesla
- VirusZombie
- type: entity
id: BasePrisonStationShuttles
abstract: true
components:
- type: GridSpawn
groups:
shuttles: !type:GridSpawnGroup
paths:
- /Maps/_Sunrise/Shuttles/prison.yml
nameGrid: false
- type: entity
id: BaseStationPlanetPrison
abstract: true
components:
- type: PlanetPrisonStation
stations:
- PlanetPrison
biomes:
- PrisonGrasslands
- PrisonLowDesert
- PrisonSnow
shuttleWhitelist:
components:
- SecurityShuttle
- PrisonShuttle
- ErtShuttle
- type: entity
id: PrisonStationAlertLevels
abstract: true
components:
- type: AlertLevel
alertLevelPrototype: stationPrisonAlerts

View file

@ -0,0 +1,13 @@
- type: entity
id: NanotrasenPrison
parent:
- BaseStation
- BaseStationJobsSpawning
- BaseStationRecords
- BaseStationNanotrasen
- BaseStationSiliconLawCrewsimov
- BasePrisonStationShuttles
- PrisonStationAlertLevels
noSpawn: true
components:
- type: Transform

View file

@ -29,11 +29,81 @@
- type: DroneConsole
components:
- type: CentCommShuttle
- type: RadarConsole
maxRange: 512
- type: PointLight
radius: 1.5
energy: 1.6
color: "#c94242"
- type: Computer
board: CentCommShuttleConsoleCircuitboard
- type: entity
parent: BaseComputerShuttle
id: ComputerShuttlePrison
name: консоль управления тюремным шаттлом
description: Что не ясно? Не пытайся меня открутить ебанат.
components:
- type: Sprite
layers:
- map: ["computerLayerBody"]
state: computer
- map: ["computerLayerKeyboard"]
state: generic_keyboard
- map: ["computerLayerScreen"]
state: supply
- map: ["computerLayerKeys"]
state: tech_key
- type: DroneConsole
components:
- type: PrisonShuttle
- type: PointLight
radius: 1.5
energy: 1.6
color: "#c94242"
- type: Computer
board: PrisonShuttleConsoleCircuitboard
- type: entity
parent: ComputerComms
id: PrisonComputerComms
name: консоль связи тюрьмы
description: This can be used for various important functions. Still under development.
components:
- type: AccessReader
access: [[ "Security" ]]
- type: CommunicationsConsole
title: comms-console-announcement-title-prison
canShuttle: false
announceVoice: Voljin
- type: Computer
board: PrisonCommsComputerCircuitboard
- type: PointLight
radius: 1.5
energy: 1.6
color: "#3556cc"
- type: entity
parent: BaseComputerShuttle
id: ComputerShuttleSecurity
name: консоль управления шатлом службы безопастности
description: Что не ясно? Не пытайся меня открутить ебанат.
components:
- type: Sprite
layers:
- map: ["computerLayerBody"]
state: computer
- map: ["computerLayerKeyboard"]
state: generic_keyboard
- map: ["computerLayerScreen"]
state: supply
- map: ["computerLayerKeys"]
state: tech_key
- type: DroneConsole
components:
- type: SecurityShuttle
- type: PointLight
radius: 1.5
energy: 1.6
color: "#c94242"
- type: Computer
board: SecurityShuttleConsoleCircuitboard
- type: Anchorable

View file

@ -0,0 +1,12 @@
- type: entity
parent: BaseGameRule
id: FugitiveSpawn
noSpawn: true
components:
- type: StationEvent
weight: 10
duration: 1
earliestStart: 15
minimumPlayers: 20
- type: LateJoinSpawnRule
prototype: SpawnPointGhostFugitive

View file

@ -0,0 +1,20 @@
- type: antag
id: Fugitive
name: roles-antag-fugitive-name
antagonist: true
setPreference: false
objective: roles-antag-fugitive-objective
requirements:
- !type:OverallPlaytimeRequirement
time: 7200 # 2h
- type: startingGear
id: FugitiveStartingGear
equipment:
jumpsuit: ClothingUniformJumpsuitPrisoner
gloves: ClothingHandsGlovesColorYellow
back: ClothingBackpack
shoes: ClothingShoesColorBlack
belt: ClothingBeltUtilityEngineering
inhand:
- ToolboxElectricalFilled

View file

@ -0,0 +1,32 @@
- type: entity
parent: MobHuman
id: MobHumanFugitive
name: Fugitive
noSpawn: true
components:
- type: Loadout
prototypes: [FugitiveStartingGear]
- type: Fugitive
- type: FugitiveCountdown
- type: RandomHumanoidAppearance
- type: entity
id: SpawnPointGhostFugitive
name: Fugitive
suffix: DONTMAP, fugitive
parent: MarkerBase
components:
- type: FugitiveSpawner
- type: GhostRole
name: ghost-role-information-fugitive-name
description: ghost-role-information-fugitive-description
rules: Ваша цель сбежать любой ценой, но убивать людей без причин вам нельзя.
requirements:
- !type:OverallPlaytimeRequirement
time: 3600 # 1 hrs
- type: Sprite
sprite: Markers/jobs.rsi
layers:
- state: green
- state: prisoner
- type: GhostTakeoverAvailable

View file

@ -0,0 +1,25 @@
- type: entity
abstract: true
parent: BaseObjective
id: BaseFugitiveObjective
components:
- type: Objective
issuer: syndicate
- type: RoleRequirement
roles:
components:
- FugitiveRole
- type: entity
noSpawn: true
parent: [BaseFugitiveObjective, BaseLivingObjective]
id: FugitiveEscapeShuttleObjective
name: Улететь на эвакуационном шаттле
description: Вы как-то сумели сбежать из тюрьмы на космическую станцию, вам необходимо улететь со станции на эвакуационном шаттле в космопорт.
components:
- type: Objective
difficulty: 1.0
icon:
sprite: Structures/Furniture/chairs.rsi
state: shuttle
- type: EscapeShuttleCondition

View file

@ -0,0 +1,6 @@
- type: entity
id: Fugitive
parent: BaseGameRule
noSpawn: true
components:
- type: FugitiveRule

View file

@ -0,0 +1,23 @@
- type: loadout
id: PrisonerJumpsuit
equipment: PrisonerJumpsuit
effects:
- !type:GroupLoadoutEffect
proto: MaleMoment
- type: startingGear
id: PrisonerJumpsuit
equipment:
jumpsuit: ClothingUniformJumpsuitPrisonerGrey
- type: loadout
id: PrisonerJumpskirt
equipment: PrisonerJumpskirt
effects:
- !type:GroupLoadoutEffect
proto: WomanMoment
- type: startingGear
id: PrisonerJumpskirt
equipment:
jumpsuit: ClothingUniformJumpsuitPrisonerGrey

View file

@ -0,0 +1,77 @@
- type: loadout
id: PrisonGuardJumpsuit
equipment: PrisonGuardJumpsuit
effects:
- !type:GroupLoadoutEffect
proto: MaleMoment
- type: startingGear
id: PrisonGuardJumpsuit
equipment:
jumpsuit: ClothingUniformJumpsuitPrisonGuard
- type: loadout
id: PrisonGuardJumpskirt
equipment: PrisonGuardJumpskirt
effects:
- !type:GroupLoadoutEffect
proto: WomanMoment
- type: startingGear
id: PrisonGuardJumpskirt
equipment:
jumpsuit: ClothingUniformJumpskirtGuard
- type: loadout
id: PrisonGuardBackpack
equipment: PrisonGuardBackpack
- type: startingGear
id: PrisonGuardBackpack
equipment:
back: ClothingBackpackPrisonGuard
- type: loadout
id: PrisonGuardSatchel
equipment: PrisonGuardSatchel
- type: startingGear
id: PrisonGuardSatchel
equipment:
back: ClothingBackpackSatchelPrisonGuard
- type: loadout
id: PrisonGuardDuffel
equipment: PrisonGuardDuffel
- type: startingGear
id: PrisonGuardDuffel
equipment:
back: ClothingBackpackDuffelPrisonGuard
- type: loadout
id: HeadHatBeretPrisonGuard
equipment: HeadHatBeretPrisonGuard
- type: startingGear
id: HeadHatBeretPrisonGuard
equipment:
head: ClothingHeadHatBeretPrisonGuard
- type: loadout
id: HeadPrisonGuard
equipment: HeadPrisonGuard
- type: startingGear
id: HeadPrisonGuard
equipment:
head: ClothingHeadPrisonGuard
- type: loadout
id: HeadCapPrisonGuard
equipment: HeadCapPrisonGuard
- type: startingGear
id: HeadCapPrisonGuard
equipment:
head: ClothingHeadCapPrisonGuard

View file

@ -0,0 +1,23 @@
- type: loadout
id: SecurityPilotJumpsuit
equipment: SecurityPilotJumpsuit
effects:
- !type:GroupLoadoutEffect
proto: MaleMoment
- type: startingGear
id: SecurityPilotJumpsuit
equipment:
jumpsuit: ClothingUniformJumpsuitPilot
- type: loadout
id: SecurityPilotJumpskirt
equipment: SecurityPilotJumpskirt
effects:
- !type:GroupLoadoutEffect
proto: WomanMoment
- type: startingGear
id: SecurityPilotJumpskirt
equipment:
jumpsuit: ClothingUniformJumpskirtPilot

View file

@ -208,3 +208,41 @@
loadouts:
- RoboticistCap
- SkullBandana
- type: loadoutGroup
id: PrisonGuardJumpsuit
name: loadout-group-prison-guard-jumpsuit
loadouts:
- PrisonGuardJumpsuit
- PrisonGuardJumpskirt
- type: loadoutGroup
id: PrisonerJumpsuit
name: loadout-group-prisoner-jumpsuit
loadouts:
- PrisonerJumpsuit
- PrisonerJumpskirt
- type: loadoutGroup
id: PrisonGuardBackpack
name: loadout-group-prison-guard-backpack
loadouts:
- PrisonGuardBackpack
- PrisonGuardSatchel
- PrisonGuardDuffel
- type: loadoutGroup
id: PrisonGuardHead
name: loadout-group-prison-guard-head
minLimit: 0
loadouts:
- HeadHatBeretPrisonGuard
- HeadPrisonGuard
- HeadCapPrisonGuard
- type: loadoutGroup
id: SecurityPilotJumpsuit
name: loadout-group-security-pilot-jumpsuit
loadouts:
- SecurityPilotJumpsuit
- SecurityPilotJumpskirt

View file

@ -6,6 +6,7 @@
- CommonBackpack
- Trinkets
- Survival
- GroupSpeciesBreathTool
- Bra
- Pants
- Socks
@ -16,6 +17,7 @@
- CommonBackpack
- Trinkets
- Survival
- GroupSpeciesBreathTool
- Bra
- Pants
- Socks
@ -28,6 +30,7 @@
- SurvivalSecurity
- Trinkets
- SecurityTrinkets
- GroupSpeciesBreathTool
- Bra
- Pants
- Socks
@ -39,6 +42,7 @@
- CentCommOperatorHats
- Trinkets
- Survival
- GroupSpeciesBreathTool
- Bra
- Pants
- Socks
@ -50,6 +54,7 @@
- CentCommOperatorHats
- Trinkets
- Survival
- GroupSpeciesBreathTool
- Bra
- Pants
- Socks
@ -61,6 +66,7 @@
- BlueShieldBackpack
- Trinkets
- Survival
- GroupSpeciesBreathTool
- Bra
- Pants
- Socks
@ -76,6 +82,7 @@
- SurvivalSecurity
- Trinkets
- SecurityTrinkets
- GroupSpeciesBreathTool
- Bra
- Pants
- Socks
@ -90,6 +97,7 @@
- Glasses
- Survival
- Trinkets
- GroupSpeciesBreathTool
- Bra
- Pants
- Socks
@ -105,6 +113,7 @@
- SurvivalMedical
- Trinkets
- Glasses
- GroupSpeciesBreathTool
- Bra
- Pants
- Socks
@ -118,6 +127,7 @@
- StationEngineerShoes
- SurvivalExtended
- Trinkets
- GroupSpeciesBreathTool
- Bra
- Pants
- Socks
@ -133,6 +143,137 @@
- ScientistShoes
- Survival
- Trinkets
- GroupSpeciesBreathTool
- Bra
- Pants
- Socks
- type: roleLoadout
id: JobPrisonEngineer
groups:
- StationEngineerHead
- StationEngineerJumpsuit
- StationEngineerBackpack
- StationEngineerOuterClothing
- StationEngineerShoes
- Trinkets
- SurvivalExtended
- GroupSpeciesBreathTool
- Bra
- Pants
- Socks
- type: roleLoadout
id: JobPrisonPilot
groups:
- PrisonGuardJumpsuit
- PrisonGuardBackpack
- SecurityShoes
- Trinkets
- SecurityTrinkets
- SurvivalSecurity
- GroupSpeciesBreathTool
- Bra
- Pants
- Socks
- type: roleLoadout
id: JobPrisonWorker
groups:
- BartenderJumpsuit
- CommonBackpack
- Survival
- Trinkets
- GroupSpeciesBreathTool
- Bra
- Pants
- Socks
- type: roleLoadout
id: JobPrisoner
groups:
- PrisonerJumpsuit
- GroupSpeciesBreathTool
- Bra
- Pants
- Socks
- type: roleLoadout
id: JobPrisonGuard
groups:
- PrisonGuardHead
- PrisonGuardJumpsuit
- PrisonGuardBackpack
- SecurityShoes
- SurvivalSecurity
- Trinkets
- SecurityTrinkets
- GroupSpeciesBreathTool
- Bra
- Pants
- Socks
- type: roleLoadout
id: JobSecurityPilot
groups:
- SecurityPilotJumpsuit
- SecurityBackpack
- SecurityShoes
- SurvivalSecurity
- Trinkets
- SecurityTrinkets
- GroupSpeciesBreathTool
- Bra
- Pants
- Socks
- type: roleLoadout
id: JobPrisonChef
groups:
- GroupTankHarness
- ChefHead
- ChefMask
- ChefJumpsuit
- CommonBackpack
- ChefOuterClothing
- Glasses
- Survival
- Trinkets
- GroupSpeciesBreathTool
- Bra
- Pants
- Socks
- type: roleLoadout
id: JobPrisonDoctor
groups:
- GroupTankHarness
- MedicalDoctorHead
- MedicalMask
- MedicalDoctorJumpsuit
- MedicalGloves
- MedicalBackpack
- MedicalDoctorOuterClothing
- MedicalShoes
- Glasses
- SurvivalMedical
- Trinkets
- GroupSpeciesBreathToolMedical
- Bra
- Pants
- Socks
- type: roleLoadout
id: JobHeadOfPrison
groups:
- PrisonGuardHead
- PrisonGuardJumpsuit
- PrisonGuardBackpack
- SecurityShoes
- SurvivalSecurity
- Trinkets
- SecurityTrinkets
- GroupSpeciesBreathToolSecurity
- Bra
- Pants
- Socks

View file

@ -0,0 +1,28 @@
- type: gameMap
id: AlterosPrison
mapName: 'Alteros GCI-39'
mapPath: /Maps/_Sunrise/alteros_prison.yml
maxRandomOffset: 0
randomRotation: false
minPlayers: 0
stations:
AlterosPrison:
stationProto: NanotrasenPrison
components:
- type: StationBiome
biome: Grasslands
- type: StationNameSetup
mapNameTemplate: '{0} Космическая тюрьма {1}'
nameGenerator:
!type:NanotrasenNameGenerator
prefixCreator: 'TG'
- type: StationJobs
availableJobs:
HeadOfPrison: [ 1, 1 ]
PrisonWorker: [ 3, 3 ]
PrisonPilot: [ 1, 1 ]
PrisonChef: [ 1, 2 ]
PrisonDoctor: [ 2, 3 ]
PrisonEngineer: [ 2, 3 ]
PrisonGuard: [ 6, 12 ]
Prisoner: [ 6, 8 ]

View file

@ -2,6 +2,8 @@
id: SunriseBox
mapName: 'Box Station'
mapPath: /Maps/_Sunrise/Station/box.yml
maxRandomOffset: 0
randomRotation: false
minPlayers: 30
stations:
Boxstation:
@ -28,11 +30,13 @@
ServiceWorker: [ 2, 2 ]
#engineering
ChiefEngineer: [ 1, 1 ]
SeniorEngineer: [ 1, 1 ]
AtmosphericTechnician: [ 3, 3 ]
StationEngineer: [ 5, 5 ]
TechnicalAssistant: [ 4, 4 ]
#medical
ChiefMedicalOfficer: [ 1, 1 ]
SeniorPhysician: [ 1, 1 ]
Chemist: [ 2, 3 ]
MedicalDoctor: [ 4, 4 ]
Paramedic: [ 1, 1 ]
@ -40,14 +44,19 @@
Psychologist: [ 1, 1 ]
#science
ResearchDirector: [ 1, 1 ]
SeniorResearcher: [ 1, 1 ]
Scientist: [ 5, 5 ]
ResearchAssistant: [ 4, 4 ]
Roboticist: [ 2, 2 ]
Borg: [ 2, 2 ]
#security
HeadOfSecurity: [ 1, 1 ]
Warden: [ 1, 1 ]
SecurityOfficer: [ 5, 5 ]
SeniorOfficer: [ 1, 1 ]
Detective: [ 1, 1 ]
Brigmedic: [ 1, 1 ]
SecurityPilot: [ 1, 1 ]
SecurityOfficer: [ 5, 5 ]
SecurityCadet: [ 4, 4 ]
#supply
Quartermaster: [ 1, 1 ]
@ -58,18 +67,9 @@
Clown: [ 1, 1 ]
Mime: [ 1, 1 ]
Musician: [ 1, 1 ]
# Sunrise-Blueshield
#blueshield
BlueShield: [ 1, 1 ]
# Sunrise-Security
Brigmedic: [ 1, 1 ]
# Sunrise-Law
#law
IAA: [ 1, 1 ]
Lawyer: [ 2, 2 ]
Magistrat: [ 1, 1 ]
# Sunrise-Senior
SeniorEngineer: [ 1, 1 ]
SeniorPhysician: [ 1, 1 ]
SeniorResearcher: [ 1, 1 ]
SeniorOfficer: [ 1, 1 ]
# Sunrise-Science
Roboticist: [ 2, 2 ]

View file

@ -2,6 +2,8 @@
id: SunriseCentComm
mapName: 'Central Command'
mapPath: /Maps/_Sunrise/Station/centcomm.yml
maxRandomOffset: 0
randomRotation: false
minPlayers: 10
stations:
centcomm:

View file

@ -2,6 +2,8 @@
id: SunriseCluster
mapName: 'Cluster'
mapPath: /Maps/_Sunrise/Station/cluster.yml
maxRandomOffset: 0
randomRotation: false
minPlayers: 0
maxPlayers: 40
stations:
@ -41,11 +43,14 @@
ResearchDirector: [ 1, 1 ]
Scientist: [ 3, 3 ]
ResearchAssistant: [ 2, 2 ]
Roboticist: [ 1, 1 ]
Borg: [ 1, 1 ]
#security
HeadOfSecurity: [ 1, 1 ]
Warden: [ 1, 1 ]
Detective: [ 1, 1 ]
SecurityPilot: [ 1, 1 ]
Brigmedic: [ 1, 1 ]
SecurityOfficer: [ 3, 3 ]
SecurityCadet: [ 2, 2 ]
#supply
@ -57,16 +62,12 @@
Clown: [ 1, 1 ]
Mime: [ 1, 1 ]
Musician: [ 1, 1 ]
# Sunrise-Blueshield
#blueshield
BlueShield: [ 1, 1 ]
# Sunrise-Security
Brigmedic: [ 1, 1 ]
# Sunrise-Law
#law
IAA: [ 1, 1 ]
Lawyer: [ 1, 1 ]
Magistrat: [ 1, 1 ]
# Sunrise-Science
Roboticist: [ 1, 1 ]
- type: StationGoal
goals:
- Shuttle

View file

@ -2,6 +2,8 @@
id: SunriseDelta
mapName: 'Delta Station'
mapPath: /Maps/_Sunrise/Station/delta.yml
maxRandomOffset: 0
randomRotation: false
minPlayers: 40
stations:
Delta:
@ -29,6 +31,7 @@
HeadOfPersonnel: [ 1, 1 ]
ChiefEngineer: [ 1, 1 ]
StationEngineer: [ 5, 5 ]
SeniorEngineer: [ 1, 1 ]
ChiefMedicalOfficer: [ 1, 1 ]
MedicalDoctor: [ 5, 5 ]
Chemist: [ 2, 2 ]
@ -36,6 +39,7 @@
Scientist: [ 6, 6 ]
HeadOfSecurity: [ 1, 1 ]
SecurityOfficer: [ 6, 6 ]
SecurityPilot: [ 1, 1 ]
Chaplain: [ 1, 1 ]
Warden: [ 1, 1 ]
Librarian: [ 1, 1 ]
@ -61,7 +65,6 @@
# Sunrise-Security
Brigmedic: [ 1, 1 ]
# Sunrise-Senior
SeniorEngineer: [ 1, 1 ]
SeniorPhysician: [ 1, 1 ]
SeniorResearcher: [ 1, 1 ]
SeniorOfficer: [ 1, 1 ]

View file

@ -2,6 +2,8 @@
id: SunriseFland
mapName: 'Fland Installation'
mapPath: /Maps/_Sunrise/Station/fland.yml
maxRandomOffset: 0
randomRotation: false
minPlayers: 40
stations:
Fland:
@ -47,6 +49,7 @@
#security
HeadOfSecurity: [ 1, 1 ]
Warden: [ 1, 1 ]
SecurityPilot: [ 1, 1 ]
SecurityOfficer: [ 8, 8 ]
Detective: [ 1, 1 ]
SecurityCadet: [ 4, 4 ]

View file

@ -2,6 +2,8 @@
id: SunriseMarathon
mapName: 'Marathon Station'
mapPath: /Maps/_Sunrise/Station/marathon.yml
maxRandomOffset: 0
randomRotation: false
minPlayers: 20
stations:
Marathon:
@ -46,6 +48,7 @@
#security
HeadOfSecurity: [ 1, 1 ]
Warden: [ 1, 1 ]
SecurityPilot: [ 1, 1 ]
SecurityOfficer: [ 4, 4 ]
Detective: [ 1, 1 ]
SecurityCadet: [ 4, 4 ]

View file

@ -0,0 +1,26 @@
- type: gameMap
id: PlanetPrison
mapName: 'Planet Prison'
mapPath: /Maps/_Sunrise/planet_prison.yml
maxRandomOffset: 0
randomRotation: false
minPlayers: 0
stations:
PlanetPrison:
stationProto: NanotrasenPrison
components:
- type: StationNameSetup
mapNameTemplate: '{0} Планетарная тюрьма {1}'
nameGenerator:
!type:NanotrasenNameGenerator
prefixCreator: 'TG'
- type: StationJobs
availableJobs:
HeadOfPrison: [ 1, 1 ]
PrisonWorker: [ 3, 3 ]
PrisonPilot: [ 1, 1 ]
PrisonChef: [ 1, 2 ]
PrisonDoctor: [ 2, 3 ]
PrisonEngineer: [ 2, 3 ]
PrisonGuard: [ 6, 12 ]
Prisoner: [ 6, 8 ]

View file

@ -0,0 +1,28 @@
- type: gameMap
id: SunrisePrison
mapName: 'Incisoare B28'
mapPath: /Maps/_Sunrise/sunrise_prison.yml
maxRandomOffset: 0
randomRotation: false
minPlayers: 0
stations:
SunrisePrison:
stationProto: NanotrasenPrison
components:
- type: StationBiome
biome: Grasslands
- type: StationNameSetup
mapNameTemplate: '{0} Космическая тюрьма {1}'
nameGenerator:
!type:NanotrasenNameGenerator
prefixCreator: 'TG'
- type: StationJobs
availableJobs:
HeadOfPrison: [ 1, 1 ]
PrisonWorker: [ 3, 3 ]
PrisonPilot: [ 1, 1 ]
PrisonChef: [ 1, 2 ]
PrisonDoctor: [ 2, 3 ]
PrisonEngineer: [ 2, 3 ]
PrisonGuard: [ 6, 12 ]
Prisoner: [ 6, 8 ]

View file

@ -0,0 +1,37 @@
- type: alertLevels
id: stationPrisonAlerts
defaultLevel: lightsout
levels:
rollcall:
announcement: alert-level-rollcall-announcement
sound: /Audio/Announcements/announce.ogg
color: Green
breakfast:
announcement: alert-level-breakfast-announcement
sound: /Audio/Announcements/announce.ogg
color: Green
work:
announcement: alert-level-work-announcement
sound: /Audio/Announcements/announce.ogg
color: Green
exercise:
announcement: alert-level-exercise-announcement
sound: /Audio/Announcements/announce.ogg
color: Green
rest:
announcement: alert-level-rest-announcement
sound: /Audio/Announcements/announce.ogg
color: Green
shower:
announcement: alert-level-shower-announcement
sound: /Audio/Announcements/announce.ogg
color: Green
lightsout:
announcement: alert-level-lightsout-announcement
sound: /Audio/Announcements/announce.ogg
color: Green
lockdown:
announcement: alert-level-lockdown-announcement
sound: /Audio/Announcements/war.ogg
color: Red
emergencyLightColor: Red

View file

@ -0,0 +1,25 @@
- type: entity
abstract: true
parent: BaseObjective
id: BasePlanetPrisonerObjective
components:
- type: Objective
issuer: syndicate
- type: RoleRequirement
roles:
components:
- PlanetPrisonerRole
- type: entity
noSpawn: true
parent: [BasePlanetPrisonerObjective, BaseLivingObjective]
id: PlanetPrisonerEscapeObjective
name: Сбежать с планетарной тюрьмы.
description: Вам нужно выбраться из комплекса содержания и убежать как можно дальше, возможно вам удастся скрыться.
components:
- type: Objective
difficulty: 1.0
icon:
sprite: Structures/Furniture/chairs.rsi
state: shuttle
- type: EscapePrisonCondition

View file

@ -0,0 +1,9 @@
- type: antag
id: PlanetPrisoner
name: roles-antag-planet-prisoner-name
antagonist: true
setPreference: false
objective: roles-antag-planet-prisoner-objective
requirements:
- !type:OverallPlaytimeRequirement
time: 7200 # 2h

View file

@ -0,0 +1,6 @@
- type: entity
id: PlanetPrison
parent: BaseGameRule
noSpawn: true
components:
- type: PlanetPrisonRule

View file

@ -0,0 +1,260 @@
- type: biomeTemplate
id: PrisonLowDesert
layers:
- !type:BiomeEntityLayer
threshold: 0.95
noise:
seed: 0
frequency: 2
noiseType: OpenSimplex2
allowedTiles:
- FloorAsteroidSand
entities:
- FloraRockSolid01
- FloraRockSolid02
- FloraRockSolid03
- !type:BiomeDummyLayer
id: Loot
# Fill layer
- !type:BiomeTileLayer
threshold: -1
tile: FloorAsteroidSand
# Grass
- type: biomeTemplate
id: PrisonGrasslands
layers:
# Sparse vegetation
- !type:BiomeDecalLayer
allowedTiles:
- FloorPlanetGrass
divisions: 2
threshold: -0.50
noise:
seed: 0
noiseType: Cellular
frequency: 1
decals:
- BushDOne
- BushDTwo
- BushDThree
- !type:BiomeDecalLayer
allowedTiles:
- FloorPlanetGrass
noise:
seed: 0
noiseType: OpenSimplex2
frequency: 1
divisions: 1
threshold: 0.8
decals:
- FlowersBROne
- FlowersBRTwo
- FlowersBRThree
# Dense vegetation
- !type:BiomeDecalLayer
allowedTiles:
- FloorPlanetGrass
divisions: 1
threshold: -0.35
noise:
seed: 0
noiseType: Cellular
frequency: 0.2
fractalType: FBm
octaves: 5
lacunarity: 2
cellularDistanceFunction: Euclidean
cellularReturnType: Distance2
decals:
- BushAOne
- BushATwo
- BushAThree
- BushCOne
- BushCTwo
- BushCThree
- !type:BiomeEntityLayer
threshold: 0.5
noise:
seed: 0
noiseType: OpenSimplex2
fractalType: FBm
frequency: 2
allowedTiles:
- FloorPlanetGrass
entities:
- FloraTree01
- FloraTree02
- FloraTree03
- FloraTree04
- FloraTree05
- FloraTree06
- FloraTreeLarge01
- FloraTreeLarge02
- FloraTreeLarge03
- FloraTreeLarge04
- FloraTreeLarge05
- FloraTreeLarge06
# Water
- !type:BiomeEntityLayer
allowedTiles:
- FloorPlanetGrass
- FloorPlanetDirt
threshold: 0.95
noise:
seed: 3
noiseType: OpenSimplex2
frequency: 0.003
lacunarity: 1.50
fractalType: Ridged
octaves: 1
entities:
- FloorWaterEntity
# Fill remainder with dirt.
- !type:BiomeTileLayer
threshold: -1.0
tile: FloorPlanetDirt
- !type:BiomeTileLayer
threshold: -0.90
tile: FloorPlanetGrass
noise:
seed: 0
frequency: 0.02
fractalType: None
# Water sand
- !type:BiomeTileLayer
tile: FloorPlanetDirt
threshold: 0.95
noise:
seed: 3
noiseType: OpenSimplex2
frequency: 0.003
lacunarity: 1.50
fractalType: Ridged
octaves: 1
# Rock formation sand
- !type:BiomeTileLayer
tile: FloorPlanetDirt
threshold: -0.30
noise:
seed: 0
noiseType: Cellular
frequency: 0.05
lacunarity: 2
fractalType: FBm
octaves: 5
cellularDistanceFunction: Euclidean
cellularReturnType: Distance2
# Snow
- type: biomeTemplate
id: PrisonSnow
layers:
# Sparse vegetation
- !type:BiomeDecalLayer
allowedTiles:
- FloorSnow
divisions: 2
threshold: -0.50
noise:
seed: 0
noiseType: Cellular
frequency: 1
decals:
- grasssnowa1
- grasssnowa2
- grasssnowa3
- grasssnowb1
- grasssnowb2
- grasssnowb3
- grasssnowc1
- grasssnowc2
- grasssnowc3
# Dense, bland grass
- !type:BiomeDecalLayer
allowedTiles:
- FloorSnow
divisions: 1
threshold: -0.35
noise:
seed: 0
noiseType: Cellular
frequency: 0.2
fractalType: FBm
octaves: 5
lacunarity: 2
cellularDistanceFunction: Euclidean
cellularReturnType: Distance2
decals:
- grasssnow
- grasssnow01
- grasssnow02
- grasssnow03
- grasssnow04
- grasssnow05
- grasssnow06
- grasssnow07
- grasssnow08
- grasssnow09
- grasssnow10
- grasssnow11
- grasssnow12
- grasssnow13
# Little bit of coloured grass
- !type:BiomeDecalLayer
allowedTiles:
- FloorSnow
divisions: 1
threshold: -0.0
noise:
seed: 0
noiseType: Cellular
frequency: 1
fractalType: None
cellularDistanceFunction: Euclidean
cellularReturnType: Distance2
decals:
- bushsnowa1
- bushsnowa2
- bushsnowa3
- bushsnowb3
- bushsnowb2
- bushsnowb3
- !type:BiomeEntityLayer
threshold: 0.5
noise:
seed: 0
noiseType: OpenSimplex2
fractalType: FBm
frequency: 2
allowedTiles:
- FloorSnow
entities:
- FloraTreeSnow01
- FloraTreeSnow02
- FloraTreeSnow03
- FloraTreeSnow04
- FloraTreeSnow05
- FloraTreeSnow06
# Ice tiles
- !type:BiomeTileLayer
tile: FloorIce
threshold: -0.9
noise:
seed: 0
noiseType: Cellular
frequency: 0.03
lacunarity: 2
fractalType: FBm
octaves: 5
cellularDistanceFunction: Euclidean
cellularReturnType: Distance2
- !type:BiomeDummyLayer
id: Loot
- !type:BiomeTileLayer
threshold: -0.7
tile: FloorSnow
noise:
seed: 0
frequency: 0.02
fractalType: None

View file

@ -0,0 +1,36 @@
- type: job
id: HeadOfPrison
name: job-name-head-of-prison
description: job-description-head-of-prison
playTimeTracker: JobHeadOfPrison
requirements:
- !type:RoleTimeRequirement
role: JobWarden
time: 18000 #5 hrs # Sunrise-RoleTime
- !type:DepartmentTimeRequirement
department: Security
time: 54000 #15 hrs # Sunrise-RoleTime
weight: 10
startingGear: HeadOfPrisonGear
icon: "JobIconHeadOfPrison"
requireAdminNotify: true
supervisors: job-supervisors-centcom
canBeAntag: false
alwaysUseSpawner: true
accessGroups:
- AllAccess
special:
- !type:AddImplantSpecial
implants: [ MindShieldImplant ]
speciesBlacklist:
- Vox
- type: startingGear
id: HeadOfPrisonGear
equipment:
eyes: ClothingEyesGlassesSecurity
id: HeadOfPrisonPDA
gloves: ClothingHandsGlovesCombat
ears: ClothingHeadsetAltSecurity
belt: ClothingBeltPrisonGuardianFilled
pocket1: WeaponPistolMk58Nonlethal

View file

@ -0,0 +1,20 @@
- type: job
id: PrisonChef
name: job-name-prison-chef
description: job-description-prison-chef
playTimeTracker: JobPrisonChef
startingGear: ChefGear
requirements:
- !type:RoleTimeRequirement
role: JobChef
time: 7200 #2 hrs # Sunrise-RoleTime
icon: "JobIconPrisonChef"
supervisors: job-supervisors-head-of-prison
alwaysUseSpawner: true
canBeAntag: false
access:
- Service
- Maintenance
- Kitchen
- Hydroponics
- Bar

View file

@ -0,0 +1,18 @@
- type: job
id: PrisonDoctor
name: job-name-prison-doctor
description: job-description-prison-doctor
playTimeTracker: JobPrisonDoctor
requirements:
- !type:DepartmentTimeRequirement
department: Medical
time: 7200 # 2 hrs
alwaysUseSpawner: true
canBeAntag: false
startingGear: DoctorGear
icon: "JobIconPrisonDoctor"
supervisors: job-supervisors-head-of-prison
access:
- Medical
- Maintenance
- Chemistry

View file

@ -0,0 +1,19 @@
- type: job
id: PrisonEngineer
name: job-name-prison-engineer
description: job-description-prison-engineer
playTimeTracker: JobPrisonEngineer
requirements:
- !type:DepartmentTimeRequirement
department: Engineering
time: 7200 # 2 hrs
alwaysUseSpawner: true
canBeAntag: false
startingGear: StationEngineerGear
icon: "JobIconPrisonEngineer"
supervisors: job-supervisors-head-of-prison
access:
- Maintenance
- Engineering
- External
- Atmospherics

View file

@ -0,0 +1,42 @@
- type: job
id: PrisonGuard
name: job-name-prison-guard
description: job-description-prison-guard
playTimeTracker: JobPrisonGuard
requirements:
- !type:DepartmentTimeRequirement
department: Security
time: 18000 #5 hrs # Sunrise-RoleTime
startingGear: PrisonGuardGear
alwaysUseSpawner: true
canBeAntag: false
icon: "JobIconPrisonGuard"
supervisors: job-supervisors-head-of-prison
access:
- Security
- Brig
- Maintenance
- External
- Service
- Chemistry
- Medical
- Engineering
- Atmospherics
- Janitor
- Bar
- Hydroponics
- Kitchen
special:
- !type:AddImplantSpecial
implants: [ MindShieldImplant ]
speciesBlacklist:
- Vox
- type: startingGear
id: PrisonGuardGear
equipment:
eyes: ClothingEyesGlassesSecurity
id: GuardPDA
ears: ClothingHeadsetSecurity
belt: ClothingBeltPrisonGuardianFilled
pocket1: WeaponPistolMk58Nonlethal

View file

@ -0,0 +1,46 @@
- type: job
id: PrisonPilot
name: job-name-prison-pilot
description: job-description-prison-pilot
playTimeTracker: JobPrisonPilot
requirements:
- !type:DepartmentTimeRequirement
department: Security
time: 36000 #10 hrs # Sunrise-RoleTime
startingGear: PrisonPilotGear
icon: "JobIconPrisonPilot"
alwaysUseSpawner: true
supervisors: job-supervisors-head-of-prison
canBeAntag: false
access:
- Security
- Brig
- Maintenance
- Service
- External
- Chemistry
- Medical
- Engineering
- Atmospherics
- Janitor
- Bar
- Hydroponics
- Kitchen
special:
- !type:AddImplantSpecial
implants: [ MindShieldImplant ]
speciesBlacklist:
- Vox
- type: startingGear
id: PrisonPilotGear
equipment:
mask: ClothingMaskGasPilot
eyes: ClothingEyesGlassesSecurity
gloves: ClothingHandsGlovesColorGray
head: ClothingHeadHelmetPilot
outerClothing: ClothingOuterCoatPilot
id: PrisonPilotPDA
ears: ClothingHeadsetSecurity
belt: ClothingBeltPrisonGuardianFilled
pocket1: WeaponPistolMk58Nonlethal

View file

@ -0,0 +1,17 @@
- type: job
id: PrisonWorker
name: job-name-prison-worker
description: job-description-prison-worker
playTimeTracker: JobPrisonWorker
startingGear: ServiceWorkerGear
icon: "JobIconPrisonWorker"
supervisors: job-supervisors-head-of-prison
alwaysUseSpawner: true
canBeAntag: false
access:
- Service
- Maintenance
- Janitor
- Bar
- Hydroponics
- Kitchen

View file

@ -0,0 +1,26 @@
- type: job
id: Prisoner
name: job-name-prisoner
description: job-description-prisoner
playTimeTracker: JobPrisoner
startingGear: PrisonerGear
alwaysUseSpawner: true
canBeAntag: false
icon: "JobIconPrisoner"
supervisors: job-supervisors-security
requirements:
- !type:OverallPlaytimeRequirement
time: 28800 # 8h
special:
- !type:AddImplantSpecial
implants: [ TrackingImplant ]
- !type:AddComponentSpecial
components:
- type: PlanetPrisoner
- type: startingGear
id: PrisonerGear
equipment:
shoes: ClothingShoesBootsPrisonerGrey
id: PrisonerPDA
ears: ClothingHeadsetGrey

Some files were not shown because too many files have changed in this diff Show more