-
Notifications
You must be signed in to change notification settings - Fork 191
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Intellicards now have a doAfter. (#33198)
* init * cleanup * Oops! Forgot something * addressing changes * guh * guh 2.0 * some cleanup * all bless the intellicard * Yippee * small locale thing * changes + small bugfix --------- Co-authored-by: slarticodefast <[email protected]>
- Loading branch information
1 parent
0383dc1
commit c359d95
Showing
7 changed files
with
149 additions
and
7 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
39 changes: 39 additions & 0 deletions
39
Content.Shared/Intellicard/Components/IntellicardComponent.cs
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,39 @@ | ||
using Robust.Shared.Audio; | ||
using Robust.Shared.GameStates; | ||
|
||
namespace Content.Shared.Intellicard; | ||
|
||
/// <summary> | ||
/// Allows this entity to download the station AI onto an AiHolderComponent. | ||
/// </summary> | ||
[RegisterComponent, NetworkedComponent, AutoGenerateComponentState] | ||
public sealed partial class IntellicardComponent : Component | ||
{ | ||
/// <summary> | ||
/// The duration it takes to download the AI from an AiHolder. | ||
/// </summary> | ||
[DataField, AutoNetworkedField] | ||
public int DownloadTime = 15; | ||
|
||
/// <summary> | ||
/// The duration it takes to upload the AI to an AiHolder. | ||
/// </summary> | ||
[DataField, AutoNetworkedField] | ||
public int UploadTime = 3; | ||
|
||
/// <summary> | ||
/// The sound that plays for the AI | ||
/// when they are being downloaded | ||
/// </summary> | ||
[DataField, AutoNetworkedField] | ||
public SoundSpecifier? WarningSound = new SoundPathSpecifier("/Audio/Misc/notice2.ogg"); | ||
|
||
/// <summary> | ||
/// The delay before allowing the warning to play again in seconds. | ||
/// </summary> | ||
[DataField, AutoNetworkedField] | ||
public TimeSpan WarningDelay = TimeSpan.FromSeconds(8); | ||
|
||
[ViewVariables] | ||
public TimeSpan NextWarningAllowed = TimeSpan.Zero; | ||
} |
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,3 @@ | ||
# General | ||
intellicard-core-occupied = The AI core is already occupied by another digital consciousness. | ||
intellicard-core-empty = The AI core has no digital consciousness to download. |
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