Master fix + Bank removal (#888)

* bugfix

* bank removal

* red and blue carpet

* Update carpets.yml
This commit is contained in:
Ed
2025-02-12 22:36:19 +03:00
committed by GitHub
parent 73b4060c65
commit 007249b675
31 changed files with 11685 additions and 12640 deletions

View File

@@ -1,6 +1,6 @@
using System.Text;
using Content.Shared.GameTicking;
using Content.Shared.Hands.EntitySystems;
using Content.Shared.Inventory;
using Content.Shared.Paper;
using Content.Shared.Roles;
using Robust.Shared.Prototypes;
@@ -12,8 +12,8 @@ public sealed partial class CP14PassportSystem : EntitySystem
{
[Dependency] private readonly IPrototypeManager _proto = default!;
[Dependency] private readonly PaperSystem _paper = default!;
[Dependency] private readonly SharedHandsSystem _hands = default!;
[Dependency] private readonly IRobustRandom _random = default!;
[Dependency] private readonly InventorySystem _inventory = default!;
public readonly EntProtoId PassportProto = "CP14Passport";
public override void Initialize()
@@ -39,7 +39,7 @@ public sealed partial class CP14PassportSystem : EntitySystem
StampedName = Loc.GetString("cp14-passport-stamp")
},
"");
_hands.TryPickupAnyHand(ev.Mob, passport);
_inventory.TryEquip(ev.Mob, passport, "pocket1");
}
private string GeneratePassportText(PlayerSpawnCompleteEvent ev)