-
Notifications
You must be signed in to change notification settings - Fork 5.2k
Free agent rules reference #43693
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
JustinWinningham
wants to merge
9
commits into
space-wizards:master
Choose a base branch
from
JustinWinningham:free-agent-rules-reference
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Free agent rules reference #43693
Changes from 7 commits
Commits
Show all changes
9 commits
Select commit
Hold shift + click to select a range
caccef1
new guidebook entries
JustinWinningham 11dff59
totally overkill rework of ghost role selection screen
JustinWinningham fee6cbc
bugfix and typo fix
JustinWinningham 3686bff
Rule fixes
JustinWinningham 9fefe9e
fixed for gamerule style spawns
JustinWinningham c888fcb
Zombie edge case handling
JustinWinningham aecb3ec
Typo Fix for build error
JustinWinningham 9f871ab
feedback fixes from other mins
JustinWinningham 8920eff
last fix
JustinWinningham File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
15 changes: 15 additions & 0 deletions
15
Content.Client/Guidebook/Controls/GhostRoleRulesEmbed.xaml
This file contains hidden or 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,15 @@ | ||
| <BoxContainer xmlns="https://spacestation14.io" | ||
| Orientation="Vertical" | ||
| HorizontalExpand="True"> | ||
| <Collapsible HorizontalExpand="True"> | ||
| <CollapsibleHeading Title="{Loc 'ghost-role-rules-embed-header'}"/> | ||
| <CollapsibleBody> | ||
| <BoxContainer Orientation="Vertical" HorizontalExpand="True" Margin="5 2 5 5"> | ||
| <Label Text="{Loc 'ghost-role-rules-embed-allowed-header'}" HorizontalExpand="True"/> | ||
| <RichTextLabel Name="AllowedContent" HorizontalExpand="True" Margin="5 0 0 5"/> | ||
| <Label Text="{Loc 'ghost-role-rules-embed-not-allowed-header'}" HorizontalExpand="True"/> | ||
| <RichTextLabel Name="NotAllowedContent" HorizontalExpand="True" Margin="5 0 0 0"/> | ||
| </BoxContainer> | ||
| </CollapsibleBody> | ||
| </Collapsible> | ||
| </BoxContainer> |
38 changes: 38 additions & 0 deletions
38
Content.Client/Guidebook/Controls/GhostRoleRulesEmbed.xaml.cs
This file contains hidden or 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,38 @@ | ||
| using System.Diagnostics.CodeAnalysis; | ||
| using Content.Client.Guidebook.Richtext; | ||
| using Content.Client.Message; | ||
| using JetBrains.Annotations; | ||
| using Robust.Client.AutoGenerated; | ||
| using Robust.Client.UserInterface; | ||
| using Robust.Client.UserInterface.Controls; | ||
| using Robust.Client.UserInterface.XAML; | ||
| using Robust.Shared.Localization; | ||
|
|
||
| namespace Content.Client.Guidebook.Controls; | ||
|
|
||
| /// <summary> | ||
| /// Embed for displaying a collapsible "Specific Rules" section in ghost role guidebook entries. | ||
| /// Usage: <GhostRoleRulesEmbed Id="free-agent-skeletons"/> | ||
| /// </summary> | ||
| [UsedImplicitly, GenerateTypedNameReferences] | ||
| public sealed partial class GhostRoleRulesEmbed : BoxContainer, IDocumentTag | ||
| { | ||
| public GhostRoleRulesEmbed() | ||
| { | ||
| RobustXamlLoader.Load(this); | ||
| } | ||
|
|
||
| public bool TryParseTag(Dictionary<string, string> args, [NotNullWhen(true)] out Control? control) | ||
| { | ||
| control = null; | ||
|
|
||
| if (!args.TryGetValue("Id", out var id)) | ||
| return false; | ||
|
|
||
| AllowedContent.SetMarkupPermissive(Loc.GetString($"ghost-role-rules-{id}-allowed")); | ||
| NotAllowedContent.SetMarkupPermissive(Loc.GetString($"ghost-role-rules-{id}-not-allowed")); | ||
|
|
||
| control = this; | ||
| return true; | ||
| } | ||
| } |
16 changes: 12 additions & 4 deletions
16
Content.Client/UserInterface/Systems/Ghost/Controls/Roles/GhostRoleRulesWindow.xaml
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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
18 changes: 18 additions & 0 deletions
18
Content.Server/Ghost/Roles/Components/GhostRoleConversionComponent.cs
This file contains hidden or 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,18 @@ | ||
| using Content.Shared.Guidebook; | ||
| using Robust.Shared.GameObjects; | ||
| using Robust.Shared.Prototypes; | ||
| using Robust.Shared.Serialization.Manager.Attributes; | ||
|
|
||
| namespace Content.Server.Ghost.Roles.Components; | ||
|
|
||
| /// <summary> | ||
| /// Added by conversion antagonist systems (zombies, etc.) to override the guidebook entry | ||
| /// shown in the ghost role popup, taking priority over <see cref="GhostRoleComponent.GuideEntry"/>. | ||
| /// Remove this component to restore the original guide entry. Future proofed for new conversion style antags. | ||
| /// </summary> | ||
| [RegisterComponent] | ||
| public sealed partial class GhostRoleConversionComponent : Component | ||
| { | ||
| [DataField] | ||
| public ProtoId<GuideEntryPrototype>? GuideEntry; | ||
| } |
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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
64 changes: 64 additions & 0 deletions
64
Resources/Locale/en-US/guidebook/ghost-roles/antagonists.ftl
This file contains hidden or 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,64 @@ | ||
| # Traitors | ||
| ghost-role-rules-traitors-allowed = | ||
|
JustinWinningham marked this conversation as resolved.
|
||
| - Team up with Nukies (they can still shoot you) | ||
| ghost-role-rules-traitors-not-allowed = | ||
| - Doing a prisoner exchange with a corpse that you are not allowed to RR (they tend to rot before being saved) | ||
|
JustinWinningham marked this conversation as resolved.
Outdated
|
||
|
|
||
| # Nuclear Operatives | ||
| ghost-role-rules-nuclear-operatives-allowed = | ||
| - Everything | ||
| ghost-role-rules-nuclear-operatives-not-allowed = | ||
| - N/A | ||
|
JustinWinningham marked this conversation as resolved.
|
||
|
|
||
| # Zombies | ||
| ghost-role-rules-zombies-allowed = | ||
| - Attack Borgs (They have brains/cyberbrains inside them) | ||
| - Show basic intelligence (take cover from gunfire, feign death, go prone, etc) | ||
| - Point at things as a method of communication | ||
| ghost-role-rules-zombies-not-allowed = | ||
| - Attack power sources | ||
| - Try to Loose | ||
| - Attack atmos | ||
|
|
||
| # Revolutionaries | ||
| ghost-role-rules-revolutionaries-allowed = | ||
| - Convert command / sec (instead of killing or gibbing) | ||
| - Order your minions to suicide bomb somewhere to progress your objectives | ||
|
JustinWinningham marked this conversation as resolved.
Outdated
|
||
| - Sacrifice a minion to keep your cover | ||
| - Team up with lesser threats (Xenoborgs, Ninja) | ||
| ghost-role-rules-revolutionaries-not-allowed = | ||
| - Order your minions to round remove themselves for no reason | ||
| - Loose, or order a loose | ||
| - Trit / Plasma flood without directive from Headrev | ||
|
JustinWinningham marked this conversation as resolved.
|
||
| - Team up with station destroying threats (Nukies, Dragon) | ||
|
|
||
| # Space Ninja | ||
| ghost-role-rules-space-ninja-allowed = | ||
| - Teaming with other threats | ||
| ghost-role-rules-space-ninja-not-allowed = | ||
| - Same limitations as traitor without DAGD | ||
|
|
||
| # Wizard | ||
| ghost-role-rules-wizard-allowed = | ||
| - Everything | ||
| ghost-role-rules-wizard-not-allowed = | ||
| - N/A | ||
|
|
||
| # Xenoborgs | ||
| ghost-role-rules-xenoborgs-allowed = | ||
| - Use cyberbrains instead of crew brains | ||
| ghost-role-rules-xenoborgs-not-allowed = | ||
| - Loose | ||
|
|
||
| # Space Dragon | ||
| ghost-role-rules-space-dragon-allowed = | ||
| - Teaming with other threats | ||
| ghost-role-rules-space-dragon-not-allowed = | ||
| - Loosing | ||
| - (As Fish) Attacking power sources without directive from Dragon | ||
|
|
||
| # Thieves | ||
| ghost-role-rules-thieves-allowed = | ||
| - Killing people (if you can figure out how) | ||
| ghost-role-rules-thieves-not-allowed = | ||
| - Same limitations as traitor without DAGD | ||
This file contains hidden or 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,7 @@ | ||
| # Emergency Response Team | ||
| ghost-role-rules-centcom-allowed = | ||
| - Disobey or ignore orders from the Captain or other members of command | ||
| ghost-role-rules-centcom-not-allowed = | ||
| - Kill people outside your given objectives | ||
| - Gib anybody without direct instructions | ||
| - Station or power sabotage |
63 changes: 63 additions & 0 deletions
63
Resources/Locale/en-US/guidebook/ghost-roles/free-agents.ftl
This file contains hidden or 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,63 @@ | ||
| # Shared embed UI strings | ||
| ghost-role-rules-embed-header = Role Specific Rule Interactions | ||
| ghost-role-rules-embed-allowed-header = Allowed | ||
| ghost-role-rules-embed-not-allowed-header = Not Allowed | ||
|
|
||
| # Skeletons | ||
| ghost-role-rules-free-agent-skeletons-allowed = | ||
| - Killing people who look at you funny | ||
|
JustinWinningham marked this conversation as resolved.
Outdated
|
||
| - Teaming with traitors, nukies, Dragon, etc. | ||
| ghost-role-rules-free-agent-skeletons-not-allowed = | ||
| - Round removing crew | ||
|
JustinWinningham marked this conversation as resolved.
Outdated
|
||
| - Sabotauging power sources (Loose, TEG, AME) | ||
| - Plasma/Trit flooding | ||
|
|
||
| # Mice | ||
| ghost-role-rules-free-agent-mice-allowed = | ||
| - Eat anything and everything not locked in a secure container | ||
| - Drinking drugs in chem | ||
| - Become a pet | ||
| - Taunt crew | ||
| ghost-role-rules-free-agent-mice-not-allowed = | ||
| - Miming to crew that you found something in maints (or similar) | ||
|
|
||
| # Mothroach | ||
| ghost-role-rules-free-agent-mothroach-allowed = | ||
| - Eat anything made of cloth | ||
| - Become a pet | ||
| - Taunt crew | ||
| ghost-role-rules-free-agent-mothroach-not-allowed = | ||
| - Miming to crew that you found something in maints (or similar) | ||
|
|
||
| # Snails | ||
| ghost-role-rules-free-agent-snails-allowed = | ||
| - Eat anything | ||
| - Become a pet | ||
|
JustinWinningham marked this conversation as resolved.
|
||
| ghost-role-rules-free-agent-snails-not-allowed = | ||
| - Miming to crew that you found something in maints (or similar) | ||
|
|
||
| # Bots | ||
| ghost-role-rules-free-agent-bots-allowed = | ||
| - Slip any one for any reason at any time | ||
| ghost-role-rules-free-agent-bots-not-allowed = | ||
| - N/A | ||
|
|
||
| # Visitors | ||
| ghost-role-rules-free-agent-visitors-allowed = | ||
| - Get hired (Visitors are not crew by default) | ||
| - Go adventuring in your ship | ||
| ghost-role-rules-free-agent-visitors-not-allowed = | ||
| - Act like a nukie or traitor | ||
|
|
||
| # Sentient Artifact | ||
| ghost-role-rules-free-agent-artifact-allowed = | ||
| - Kill or round remove crew with your powers | ||
| ghost-role-rules-free-agent-artifact-not-allowed = | ||
| - N/A | ||
|
|
||
| # Station Pets | ||
| ghost-role-rules-pets-allowed = | ||
| - N/A | ||
|
JustinWinningham marked this conversation as resolved.
Outdated
|
||
| - Attack crew in self defense or if threatened | ||
| ghost-role-rules-pets-not-allowed = | ||
| - Act like a free agent | ||
24 changes: 24 additions & 0 deletions
24
Resources/Locale/en-US/guidebook/ghost-roles/minorantagonists.ftl
This file contains hidden or 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,24 @@ | ||
| # Paradox Clone | ||
| ghost-role-rules-paradox-clone-allowed = | ||
| - Act like a traitor without DAGD | ||
| ghost-role-rules-paradox-clone-not-allowed = | ||
| - Take up your clones objectives if they are a traitor | ||
|
JustinWinningham marked this conversation as resolved.
|
||
|
|
||
| # Revenant | ||
| ghost-role-rules-revenant-allowed = | ||
| - Spacing station/evac with your powers | ||
| ghost-role-rules-revenant-not-allowed = | ||
| - N/A | ||
|
|
||
| # Rat King | ||
| ghost-role-rules-rat-king-allowed = | ||
| - Making a deal with crew to aide them in exchange for food | ||
| ghost-role-rules-rat-king-not-allowed = | ||
| - Become a pet | ||
|
|
||
| # Slimes and Spiders | ||
| ghost-role-rules-angry-mobs-allowed = | ||
| - Pointing or gesturing to communicate with other Mobs | ||
| ghost-role-rules-angry-mobs-not-allowed = | ||
| - Pointing or gesturing to communicate with crew | ||
| - Become a pet | ||
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.