Skip to content

Commit

Permalink
upd
Browse files Browse the repository at this point in the history
  • Loading branch information
Rxup committed Jul 18, 2024
1 parent 95e11b8 commit 5bde087
Show file tree
Hide file tree
Showing 8 changed files with 28 additions and 57 deletions.
3 changes: 0 additions & 3 deletions Content.Client/Content.Client.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -45,9 +45,6 @@
<Compile Update="Backmen\Economy\WageConsole\UI\BonusWageWindow.cs">
<DependentUpon>BonusWageWindow.xaml</DependentUpon>
</Compile>
<Compile Update="Backmen\Ghost\Roles\UI\RollerRow.cs">
<DependentUpon>RollerRow.xaml</DependentUpon>
</Compile>
</ItemGroup>
<Import Project="..\RobustToolbox\MSBuild\Robust.Properties.targets" />
<Import Project="..\RobustToolbox\MSBuild\XamlIL.targets" />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@
<BoxContainer Name="TopLeftContainer" Orientation="Vertical">
<actions:ActionsBar Name="Actions" Access="Protected" />
<BoxContainer Name="VoteMenu" Access="Public" Orientation="Vertical"/>
<BoxContainer Name="RollerMenu" Access="Public" Orientation="Vertical"/> <!-- backmen: GhostRoller -->
</BoxContainer>
<alerts:AlertsUI Name="Alerts" Access="Protected" />
</LayoutContainer>
Expand Down
9 changes: 8 additions & 1 deletion Content.Server/Backmen/StationAI/AiEyeMover.cs
Original file line number Diff line number Diff line change
Expand Up @@ -47,10 +47,17 @@ public AiEyeMover(EntityManager entityManager, AICameraSystem cameraSystem, Enti
return null;
}

if (!NewPosition.EntityId.IsValid())
{
_entityManager.QueueDeleteEntity(Eye);
return null;
}


var core = Eye.Comp.AiCore.Value;


var gridUid = _transform.GetGrid(NewPosition);
var gridUid = _transform.GetGrid(NewPosition.EntityId);

if (
gridUid == null ||
Expand Down
8 changes: 0 additions & 8 deletions Content.Server/Ghost/Roles/GhostRoleSystem.cs
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,6 @@ public sealed class GhostRoleSystem : EntitySystem
[Dependency] private readonly TransformSystem _transform = default!;
[Dependency] private readonly SharedMindSystem _mindSystem = default!;
[Dependency] private readonly Backmen.RoleWhitelist.WhitelistSystem _roleWhitelist = default!; // backmen: whitelist
[Dependency] private readonly Backmen.Ghost.Roles.GhostRoleRollerSystem _roleRoller = default!; // backmen: ghost roller
[Dependency] private readonly SharedRoleSystem _roleSystem = default!;
[Dependency] private readonly IGameTiming _timing = default!;
[Dependency] private readonly PopupSystem _popupSystem = default!;
Expand Down Expand Up @@ -311,7 +310,6 @@ public void RegisterGhostRole(Entity<GhostRoleComponent> role)
return;

_ghostRoles[role.Comp.Identifier = GetNextRoleIdentifier()] = role;
_roleRoller.RegisterGhostRole(role); // backmen: ghost roller
UpdateAllEui();
}

Expand All @@ -322,7 +320,6 @@ public void UnregisterGhostRole(Entity<GhostRoleComponent> role)
return;

_ghostRoles.Remove(comp.Identifier);
_roleRoller.UnregisterGhostRole(role); // backmen: ghost roller
if (TryComp(role.Owner, out GhostRoleRaffleComponent? raffle))
{
// if a raffle is still running, get rid of it
Expand Down Expand Up @@ -482,11 +479,6 @@ public bool Takeover(ICommonSession player, uint identifier)
// end-backmen: whitelist

var ev = new TakeGhostRoleEvent(player);
// start-backmen: ghost roller
_roleRoller.Takeover(role, ref ev);
if(ev.TookRole)
return false;
// end-backmen: ghost roller
RaiseLocalEvent(role, ref ev);

if (!ev.TookRole)
Expand Down
12 changes: 0 additions & 12 deletions Content.Shared/Backmen/CCVar/CCVars.cs
Original file line number Diff line number Diff line change
Expand Up @@ -163,16 +163,4 @@ public static readonly CVarDef<bool>
public static readonly CVarDef<int> SpecForceDelay =
CVarDef.Create("specforce.delay", 2, CVar.SERVERONLY);


/*
* enabling a roll to enter a ghost role for one player from the vote
*/
public static readonly CVarDef<bool>
GhostRollerEnabled = CVarDef.Create("ghost.roller_enabled", false, CVar.SERVERONLY);

/// <summary>
/// the time that will be given to throw a number to vote for the ghost role
/// </summary>
public static readonly CVarDef<int> GhostRollerTime =
CVarDef.Create("ghost.roller_time", 20, CVar.REPLICATED | CVar.SERVER);
}
1 change: 0 additions & 1 deletion Resources/Prototypes/Entities/Mobs/Player/observer.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
noSpawn: true
components:
- type: CargoSellBlacklist
- type: GhostVisRoller
- type: Sprite
overrideContainerOcclusion: true # Ghosts always show up regardless of where they're contained.
drawdepth: Ghosts
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
- Omega
- Reach
- Bagel
- Train
- CorvaxSplit
- Oasis
- no_madDelta
50 changes: 20 additions & 30 deletions Resources/Prototypes/_Backmen/ghostSponsor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,127 +3,117 @@
components:
- type: Sprite
overrideContainerOcclusion: true # Ghosts always show up regardless of where they're contained.
noRot: true
drawdepth: Ghosts
sprite: Backmen/Mobs/Ghost/ghost_red.rsi
state: animated-red
color: "#fff8"
layers:
- state: animated-red
- state: animated-red
shader: unshaded

- type: ghostTheme
id: tier2
components:
- type: Sprite
overrideContainerOcclusion: true # Ghosts always show up regardless of where they're contained.
noRot: true
drawdepth: Ghosts
sprite: Backmen/Mobs/Ghost/ghost_lava.rsi
state: animated-lava
color: "#fff8"
layers:
- state: animated-lava
- state: animated-lava
shader: unshaded

- type: ghostTheme
id: tier01
components:
- type: Sprite
overrideContainerOcclusion: true # Ghosts always show up regardless of where they're contained.
noRot: true
drawdepth: Ghosts
sprite: Backmen/Mobs/Ghost/ghost_vip.rsi
state: animated_orange
color: "#fff8"
layers:
- state: animated_orange
- state: animated_orange
shader: unshaded

- type: ghostTheme
id: tier02
components:
- type: Sprite
overrideContainerOcclusion: true # Ghosts always show up regardless of where they're contained.
noRot: true
drawdepth: Ghosts
sprite: Backmen/Mobs/Ghost/ghost_vip.rsi
state: animated_white
color: "#fff8"
layers:
- state: animated_white
- state: animated_white
shader: unshaded

- type: ghostTheme
id: tier03
components:
- type: Sprite
overrideContainerOcclusion: true # Ghosts always show up regardless of where they're contained.
noRot: true
drawdepth: Ghosts
sprite: Backmen/Mobs/Ghost/ghost_vip.rsi
state: animated_ash
color: "#fff8"
layers:
- state: animated_ash
- state: animated_ash
shader: unshaded

- type: ghostTheme
id: tier04
components:
- type: Sprite
overrideContainerOcclusion: true # Ghosts always show up regardless of where they're contained.
noRot: true
drawdepth: Ghosts
sprite: Backmen/Mobs/Ghost/ghost_vip.rsi
state: animated_ice
color: "#fff8"
layers:
- state: animated_ice
- state: animated_ice
shader: unshaded

- type: ghostTheme
id: tier05
components:
- type: Sprite
overrideContainerOcclusion: true # Ghosts always show up regardless of where they're contained.
noRot: true
drawdepth: Ghosts
sprite: Backmen/Mobs/Ghost/ghost_vip.rsi
state: animated_superwhite
color: "#fff8"
layers:
- state: animated_superwhite
- state: animated_superwhite
shader: unshaded

- type: ghostTheme
id: tier06
components:
- type: Sprite
overrideContainerOcclusion: true # Ghosts always show up regardless of where they're contained.
noRot: true
drawdepth: Ghosts
sprite: Backmen/Mobs/Ghost/ghost_vip.rsi
state: animated_star
color: "#fff8"
layers:
- state: animated_star
- state: animated_star
shader: unshaded

- type: ghostTheme
id: tier07
components:
- type: Sprite
overrideContainerOcclusion: true # Ghosts always show up regardless of where they're contained.
noRot: true
drawdepth: Ghosts
sprite: Backmen/Mobs/Ghost/ghost_vip.rsi
state: animated_faceless
color: "#fff8"
layers:
- state: animated_faceless
- state: animated_faceless
shader: unshaded

- type: ghostTheme
id: tier08
components:
- type: Sprite
overrideContainerOcclusion: true # Ghosts always show up regardless of where they're contained.
noRot: true
drawdepth: Ghosts
sprite: Backmen/Mobs/Ghost/ghost_vip.rsi
state: animated_kaiju
color: "#fff8"
layers:
- state: animated_kaiju
- state: animated_kaiju
shader: unshaded

0 comments on commit 5bde087

Please sign in to comment.