Only sec glasses can show contraband: second attempt (#36412)
* Add base code for cheking contraband in hud * Fix missing using in InventorySystem.Relay * Fix errors and update HUD yml * Add show contraband with component on entity * fix component description * Update Content.Shared/Contraband/ShowContrabandDetailsComponent.cs Co-authored-by: ArtisticRoomba <145879011+ArtisticRoomba@users.noreply.github.com> * Update "if" for check if ent hasComp in contrabandSystem * Remove << InventorySystem.Relay.cs * Update Content.Shared/Contraband/ShowContrabandDetailsComponent.cs Co-authored-by: slarticodefast <161409025+slarticodefast@users.noreply.github.com> * Update Content.Shared/CCVar/CCVars.Game.cs Co-authored-by: slarticodefast <161409025+slarticodefast@users.noreply.github.com> * Fix partial class ShowContrabandSystem Co-authored-by: slarticodefast <161409025+slarticodefast@users.noreply.github.com> * Update Content.Shared/Contraband/ShowContrabandDetailsComponent.cs Co-authored-by: slarticodefast <161409025+slarticodefast@users.noreply.github.com> * Update Content.Shared/Inventory/InventorySystem.Relay.cs Co-authored-by: slarticodefast <161409025+slarticodefast@users.noreply.github.com> * Some update ShowContrabandSystem * Try with record struct * back again ti default class with EntityEventArgs * Remove EntityEventArgs * Finally use record struct --------- Co-authored-by: ArtisticRoomba <145879011+ArtisticRoomba@users.noreply.github.com> Co-authored-by: slarticodefast <161409025+slarticodefast@users.noreply.github.com>
This commit is contained in:
@@ -4,6 +4,7 @@ using Content.Shared.Chat;
|
||||
using Content.Shared.Chemistry;
|
||||
using Content.Shared.Chemistry.Hypospray.Events;
|
||||
using Content.Shared.Climbing.Events;
|
||||
using Content.Shared.Contraband;
|
||||
using Content.Shared.Damage;
|
||||
using Content.Shared.Damage.Events;
|
||||
using Content.Shared.Electrocution;
|
||||
@@ -55,6 +56,7 @@ public partial class InventorySystem
|
||||
SubscribeLocalEvent<InventoryComponent, GetSlowedOverSlipperyModifierEvent>(RefRelayInventoryEvent);
|
||||
SubscribeLocalEvent<InventoryComponent, ModifySlowOnDamageSpeedEvent>(RefRelayInventoryEvent);
|
||||
SubscribeLocalEvent<InventoryComponent, ExtinguishEvent>(RefRelayInventoryEvent);
|
||||
SubscribeLocalEvent<InventoryComponent, GetContrabandDetailsEvent>(RefRelayInventoryEvent);
|
||||
|
||||
// Eye/vision events
|
||||
SubscribeLocalEvent<InventoryComponent, CanSeeAttemptEvent>(RelayInventoryEvent);
|
||||
|
||||
Reference in New Issue
Block a user