Skip to content

Commit

Permalink
Demote status and show sec icons fix (#1091)
Browse files Browse the repository at this point in the history
* demote status

* try to fix showsecicons

* fix mindshield
  • Loading branch information
MiraHell committed Jun 6, 2024
1 parent 6e04be8 commit 15bb291
Show file tree
Hide file tree
Showing 6 changed files with 25 additions and 4 deletions.
5 changes: 3 additions & 2 deletions Content.Client/Overlays/ShowCriminalRecordIconsSystem.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
using Content.Shared.Access.Components;
using Content.Shared.Access.Systems;
using Content.Shared.IdentityManagement.Components;
using Content.Shared.Overlays;
using Content.Shared.PDA;
using Content.Shared.Security.Components;
Expand All @@ -20,10 +21,10 @@ public override void Initialize()
{
base.Initialize();

SubscribeLocalEvent<CriminalRecordComponent, GetStatusIconsEvent>(OnGetStatusIconsEvent);
SubscribeLocalEvent<IdentityComponent, GetStatusIconsEvent>(OnGetStatusIconsEvent); // 220 secincons fix
}

private void OnGetStatusIconsEvent(EntityUid uid, CriminalRecordComponent component, ref GetStatusIconsEvent ev)
private void OnGetStatusIconsEvent(EntityUid uid, IdentityComponent _, ref GetStatusIconsEvent ev) // 220 secincons fix
{
if (!IsActive || ev.InContainer)
return;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,10 @@ criminal-status-wanted = В розыске
criminal-status-search = Обыскать
criminal-status-monitor = Следить
criminal-status-execute = Казнить
criminal-status-demote = Увольнение
criminal-status-wanted-report = {$target} был объявлен в розыск! Причина: {$reason}
criminal-status-execute-report = {$target} был приговорён к казни! Причина: {$reason}
criminal-status-demote-report = {$target} в розыске для увольнения! Причина: {$reason}
criminal-status-cooldown-popup = Вы пытаетесь добавлять записи слишком часто.
10 changes: 9 additions & 1 deletion Resources/Prototypes/SS220/StatusEffects/sechud.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
- type: statusIcon
id: SecHudIcon
abstract: true
priority: 2
priority: 3
locationPreference: Right
isShaded: true

- type: statusIcon
parent: SecHudIcon
Expand Down Expand Up @@ -31,3 +32,10 @@
icon:
sprite: /Textures/SS220/Interface/Misc/sechud.rsi
state: execute

- type: statusIcon
parent: SecHudIcon
id: SecDemoteIcon
icon:
sprite: /Textures/SS220/Interface/Misc/sechud.rsi
state: demote
9 changes: 8 additions & 1 deletion Resources/Prototypes/SS220/criminal_statuses.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,11 @@
name: criminal-status-execute
color: "#CC0000FF"
statusIcon: SecExecuteIcon
radioReportMessage: criminal-status-execute-report
radioReportMessage: criminal-status-execute-report

- type: criminalStatus
id: demote
name: criminal-status-demote
color: "#FF0000FF"
statusIcon: SecDemoteIcon
radioReportMessage: criminal-status-demote-report
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions Resources/Textures/SS220/Interface/Misc/sechud.rsi/meta.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,9 @@
},
{
"name": "monitor"
},
{
"name": "demote"
}
]
}

0 comments on commit 15bb291

Please sign in to comment.