forked from space-syndicate/space-station-14
-
Notifications
You must be signed in to change notification settings - Fork 43
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* First commit * Improvements * Fix * Removed holo * Edited items * Starts and ends * _corvaxnext * Fix part 1 * Fix part 2 * Ftl fix * Added greeting * Attribution * ApiRule * Reverted ThiefRule * EndRound improvements * Revert ThiefRuleSystem again * .ftl changes
- Loading branch information
1 parent
bd06ed9
commit 199dc73
Showing
11 changed files
with
67 additions
and
32 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
namespace Content.Server._CorvaxNext.Api; | ||
|
||
[RegisterComponent] | ||
public sealed partial class ApiRuleComponent : Component; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
using Content.Server.Antag; | ||
using Content.Server.GameTicking.Rules; | ||
using Content.Server.Roles; | ||
|
||
namespace Content.Server._CorvaxNext.Api; | ||
|
||
public sealed class ApiRuleSystem : GameRuleSystem<ApiRuleComponent> | ||
{ | ||
[Dependency] private readonly AntagSelectionSystem _antag = default!; | ||
|
||
public override void Initialize() | ||
{ | ||
base.Initialize(); | ||
|
||
SubscribeLocalEvent<ApiRuleComponent, AfterAntagEntitySelectedEvent>(OnAfterAntagEntitySelected); | ||
SubscribeLocalEvent<ApiRuleComponent, GetBriefingEvent>(OnGetBriefing); | ||
} | ||
|
||
private void OnAfterAntagEntitySelected(EntityUid entity, ApiRuleComponent apiRule, AfterAntagEntitySelectedEvent e) | ||
{ | ||
_antag.SendBriefing(e.EntityUid, Loc.GetString("api-role-greeting"), null, null); | ||
} | ||
|
||
private void OnGetBriefing(EntityUid entity, ApiRuleComponent apiRule, GetBriefingEvent e) | ||
{ | ||
e.Append(Loc.GetString("api-role-greeting")); | ||
} | ||
} |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
- files: ["api_greeting.ogg"] | ||
license: "CC-BY-4.0" | ||
copyright: "Created by AivelCry using sounds from vengeance-sound.com/samples.php." | ||
source: "https://github.com/FireNameFN/space-station-14-next/blob/503ef7641a977c2e5de70defcf7e2d399fc16a79/Resources/Audio/_CorvaxNext/Misc/api_greeting.ogg" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 2 additions & 0 deletions
2
Resources/Locale/ru-RU/ss14-ru/prototypes/_corvaxnext/entities/objects/tools/api_toolbox.ftl
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
ent-ToolboxApi = ящик воровских инструментов неопределённости | ||
.desc = Здесь лежат ваши излюбленные воровские штучки. Осталось вспомнить, какие именно. |
2 changes: 2 additions & 0 deletions
2
Resources/Locale/ru-RU/ss14-ru/prototypes/_corvaxnext/objectives/api.ftl
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
ent-EscapeApiShuttleObjective = Улететь на Центком живым и свободным. | ||
.desc = Вы ещё нужны агенству. Не дайте себя арестовать. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters