You can FTL to the Chess Dimension. (#26536)
This commit is contained in:
parent
f0943ef42f
commit
76c415380a
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -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()
|
||||
{
|
||||
|
|
|
|||
|
|
@ -20,3 +20,6 @@ tabletop-checkers-board-name = Checkers
|
|||
|
||||
## Battlemap
|
||||
tabletop-battlemap-board-name = Battlemap
|
||||
|
||||
## The Chess Dimension
|
||||
tabletop-chess-dimension = The Chess Dimension
|
||||
|
|
|
|||
Loading…
Reference in New Issue