You can FTL to the Chess Dimension. (#26536)

This commit is contained in:
Pieter-Jan Briers 2024-03-30 03:43:25 +01:00 committed by NullWanderer
parent f0943ef42f
commit 76c415380a
No known key found for this signature in database
GPG Key ID: 65CF92BD1D26F4AC
4 changed files with 14 additions and 0 deletions

View File

@ -1,5 +1,6 @@
using System.Numerics;
using Content.Shared.GameTicking;
using Content.Shared.Shuttles.Components;
using Robust.Shared.Map;
using Robust.Shared.Map.Components;
@ -53,6 +54,8 @@ namespace Content.Server.Tabletop
var mapUid = _mapManager.GetMapEntityId(TabletopMap);
var mapComp = EntityManager.GetComponent<MapComponent>(mapUid);
_metaData.SetEntityName(mapUid, Loc.GetString("tabletop-chess-dimension"));
AddComp<FTLDestinationComponent>(mapUid);
// Lighting is always disabled in tabletop world.
mapComp.LightingEnabled = false;

View File

@ -1,4 +1,5 @@
using System.Numerics;
using Content.Server.Shuttles.Components;
using Content.Server.Tabletop.Components;
using Content.Shared.Tabletop.Events;
using Robust.Shared.Player;
@ -31,6 +32,12 @@ namespace Content.Server.Tabletop
// Since this is the first time opening this session, set up the game
tabletop.Setup.SetupTabletop(session, EntityManager);
var randomEntity = session.Entities.FirstOrNull();
if (randomEntity != null)
{
AddComp<FTLBeaconComponent>(randomEntity.Value);
}
Log.Info($"Created tabletop session number {tabletop} at position {session.Position}.");
return session;

View File

@ -23,6 +23,7 @@ namespace Content.Server.Tabletop
[Dependency] private readonly EyeSystem _eye = default!;
[Dependency] private readonly ViewSubscriberSystem _viewSubscriberSystem = default!;
[Dependency] private readonly PopupSystem _popupSystem = default!;
[Dependency] private readonly MetaDataSystem _metaData = default!;
public override void Initialize()
{

View File

@ -20,3 +20,6 @@ tabletop-checkers-board-name = Checkers
## Battlemap
tabletop-battlemap-board-name = Battlemap
## The Chess Dimension
tabletop-chess-dimension = The Chess Dimension