Fix 3000 errors

This commit is contained in:
DrSmugleaf
2021-12-05 18:09:01 +01:00
parent 2bfec7ec62
commit 2a3b7d809d
569 changed files with 2979 additions and 3280 deletions

View File

@@ -1,8 +1,6 @@
using System;
using System.Collections.Generic;
using System.Diagnostics.CodeAnalysis;
using Content.Server.Mind.Components;
using Content.Server.Stack;
using Content.Shared.Stacks;
using Content.Shared.Traitor.Uplink;
using Robust.Shared.GameObjects;
@@ -71,7 +69,7 @@ namespace Content.Server.Traitor.Uplink.Account
}
public bool TryPurchaseItem(UplinkAccount acc, string itemId, EntityCoordinates spawnCoords, [NotNullWhen(true)] out IEntity? purchasedItem)
public bool TryPurchaseItem(UplinkAccount acc, string itemId, EntityCoordinates spawnCoords, [NotNullWhen(true)] out EntityUid purchasedItem)
{
purchasedItem = null;

View File

@@ -43,7 +43,7 @@ namespace Content.Server.Traitor.Uplink.Commands
var user = session.AttachedEntity;
// Get target item
IEntity? uplinkEntity = null;
EntityUid uplinkEntity = null;
var entityManager = IoCManager.Resolve<IEntityManager>();
if (args.Length >= 2)
{
@@ -60,7 +60,7 @@ namespace Content.Server.Traitor.Uplink.Commands
return;
}
uplinkEntity = entityManager.GetEntity(eUid);
uplinkeUid
}
// Get TC count

View File

@@ -154,7 +154,7 @@ namespace Content.Server.Traitor.Uplink
// try to put it into players hands
if (IoCManager.Resolve<IEntityManager>().TryGetComponent(player, out SharedHandsComponent? hands))
hands.TryPutInAnyHand(EntityManager.GetEntity(tcUid.Value));
hands.TryPutInAnyHand(tcUid.Value)
// play buying sound
SoundSystem.Play(Filter.SinglePlayer(args.Session), uplink.BuySuccessSound.GetSound(),
@@ -189,7 +189,7 @@ namespace Content.Server.Traitor.Uplink
ui.SetState(new UplinkUpdateState(accData, listings));
}
public bool AddUplink(IEntity user, UplinkAccount account, IEntity? uplinkEntity = null)
public bool AddUplink(EntityUid user, UplinkAccount account, EntityUid uplinkEntity = null)
{
// Try to find target item
if (uplinkEntity == null)
@@ -205,7 +205,7 @@ namespace Content.Server.Traitor.Uplink
return true;
}
private IEntity? FindUplinkTarget(IEntity user)
private EntityUid FindUplinkTarget(EntityUiduser)
{
// Try to find PDA in inventory
if (IoCManager.Resolve<IEntityManager>().TryGetComponent(user, out InventoryComponent? inventory))