Skip to content

Commit

Permalink
Revert "Merge pull request #64 from VMSolidus/Changeling-Playtest"
Browse files Browse the repository at this point in the history
This reverts commit b9796a7, reversing
changes made to c93299b.
  • Loading branch information
VMSolidus committed Aug 18, 2024
1 parent cb49ec2 commit 5d27ffc
Show file tree
Hide file tree
Showing 299 changed files with 4,800 additions and 8,853 deletions.
2 changes: 1 addition & 1 deletion Content.Benchmarks/SpawnEquipDeleteBenchmark.cs
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ await _pair.Server.WaitPost(() =>
for (var i = 0; i < N; i++)
{
_entity = server.EntMan.SpawnAttachedTo(Mob, _coords);
_spawnSys.EquipStartingGear(_entity, _gear);
_spawnSys.EquipStartingGear(_entity, _gear, null);
server.EntMan.DeleteEntity(_entity);
}
});
Expand Down
3 changes: 0 additions & 3 deletions Content.Client/Actions/ActionsSystem.cs
Original file line number Diff line number Diff line change
Expand Up @@ -248,10 +248,7 @@ public void TriggerAction(EntityUid actionId, BaseActionComponent action)
if (action.ClientExclusive)
{
if (instantAction.Event != null)
{
instantAction.Event.Performer = user;
instantAction.Event.Action = actionId;
}

PerformAction(user, actions, actionId, instantAction, instantAction.Event, GameTiming.CurTime);
}
Expand Down
47 changes: 0 additions & 47 deletions Content.Client/Goobstation/Changeling/ChangelingSystem.cs

This file was deleted.

5 changes: 1 addition & 4 deletions Content.Client/Humanoid/HumanoidAppearanceSystem.cs
Original file line number Diff line number Diff line change
Expand Up @@ -118,11 +118,8 @@ private void SetLayerData(
/// This should not be used if the entity is owned by the server. The server will otherwise
/// override this with the appearance data it sends over.
/// </remarks>
public override void LoadProfile(EntityUid uid, HumanoidCharacterProfile? profile, HumanoidAppearanceComponent? humanoid = null)
public override void LoadProfile(EntityUid uid, HumanoidCharacterProfile profile, HumanoidAppearanceComponent? humanoid = null)
{
if (profile == null)
return;

if (!Resolve(uid, ref humanoid))
{
return;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,6 @@ private bool TryTargetWorld(in PointerInputCmdArgs args, EntityUid actionId, Wor
{
action.Event.Target = coords;
action.Event.Performer = user;
action.Event.Action = actionId;
}

_actionsSystem.PerformAction(user, actionComp, actionId, action, action.Event, _timing.CurTime);
Expand Down Expand Up @@ -250,7 +249,6 @@ private bool TryTargetEntity(in PointerInputCmdArgs args, EntityUid actionId, En
{
action.Event.Target = entity;
action.Event.Performer = user;
action.Event.Action = actionId;
}

_actionsSystem.PerformAction(user, actionComp, actionId, action, action.Event, _timing.CurTime);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -281,19 +281,10 @@ public void UpdateIcons()

_controller ??= UserInterfaceManager.GetUIController<ActionUIController>();
_spriteSys ??= _entities.System<SpriteSystem>();
if ((_controller.SelectingTargetFor == ActionId || _action.Toggled))
{
if (_action.IconOn != null)
SetActionIcon(_spriteSys.Frame0(_action.IconOn));

if (_action.BackgroundOn != null)
_buttonBackgroundTexture = _spriteSys.Frame0(_action.BackgroundOn);
}
if ((_controller.SelectingTargetFor == ActionId || _action.Toggled) && _action.IconOn != null)
SetActionIcon(_spriteSys.Frame0(_action.IconOn));
else
{
SetActionIcon(_action.Icon != null ? _spriteSys.Frame0(_action.Icon) : null);
_buttonBackgroundTexture = Theme.ResolveTexture("SlotBackground");
}
}

public void UpdateBackground()
Expand Down
208 changes: 0 additions & 208 deletions Content.IntegrationTests/Tests/GameRules/NukeOpsTest.cs

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
using Content.Server.GameTicking;
using Content.Server.GameTicking.Commands;
using Content.Server.GameTicking.Components;
using Content.Server.GameTicking.Rules;
using Content.Server.GameTicking.Rules.Components;
using Content.Shared.CCVar;
Expand Down
6 changes: 4 additions & 2 deletions Content.IntegrationTests/Tests/GameRules/SecretStartsTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ public async Task TestSecretStarts()

var server = pair.Server;
await server.WaitIdleAsync();
var entMan = server.ResolveDependency<IEntityManager>();
var gameTicker = server.ResolveDependency<IEntitySystemManager>().GetEntitySystem<GameTicker>();

await server.WaitAssertion(() =>
Expand All @@ -33,7 +32,10 @@ await server.WaitAssertion(() =>

await server.WaitAssertion(() =>
{
Assert.That(gameTicker.GetAddedGameRules().Count(), Is.GreaterThan(1), $"No additional rules started by secret rule.");
foreach (var rule in gameTicker.GetAddedGameRules())
{
Assert.That(gameTicker.GetActiveGameRules(), Does.Contain(rule));
}
// End all rules
gameTicker.ClearGameRules();
Expand Down
5 changes: 0 additions & 5 deletions Content.Server/Actions/ActionOnInteractSystem.cs
Original file line number Diff line number Diff line change
Expand Up @@ -47,10 +47,7 @@ private void OnActivate(EntityUid uid, ActionOnInteractComponent component, Acti

var (actId, act) = _random.Pick(options);
if (act.Event != null)
{
act.Event.Performer = args.User;
act.Event.Action = actId;
}

_actions.PerformAction(args.User, null, actId, act, act.Event, _timing.CurTime, false);
args.Handled = true;
Expand Down Expand Up @@ -78,7 +75,6 @@ private void OnAfterInteract(EntityUid uid, ActionOnInteractComponent component,
if (entAct.Event != null)
{
entAct.Event.Performer = args.User;
entAct.Event.Action = entActId;
entAct.Event.Target = args.Target.Value;
}

Expand All @@ -104,7 +100,6 @@ private void OnAfterInteract(EntityUid uid, ActionOnInteractComponent component,
if (act.Event != null)
{
act.Event.Performer = args.User;
act.Event.Action = actId;
act.Event.Target = args.ClickLocation;
}

Expand Down
1 change: 0 additions & 1 deletion Content.Server/Administration/ServerApi.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
using System.Threading.Tasks;
using Content.Server.Administration.Systems;
using Content.Server.GameTicking;
using Content.Server.GameTicking.Components;
using Content.Server.GameTicking.Presets;
using Content.Server.GameTicking.Rules.Components;
using Content.Server.Maps;
Expand Down
Loading

0 comments on commit 5d27ffc

Please sign in to comment.