-
Notifications
You must be signed in to change notification settings - Fork 165
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
Shadowkin Rework #1200
Open
FoxxoTrystan
wants to merge
20
commits into
Simple-Station:master
Choose a base branch
from
FoxxoTrystan:shadowkin-rework
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
Shadowkin Rework #1200
Changes from all commits
Commits
Show all changes
20 commits
Select commit
Hold shift + click to select a range
702bf07
Startup
FoxxoTrystan 4f25931
Alert/Mana
FoxxoTrystan fe19540
Apply Alert Changes
FoxxoTrystan ed7ce5b
better
FoxxoTrystan 47283ce
DarkSwap Rework
FoxxoTrystan 569fd36
Finishing Touches
FoxxoTrystan 83243c0
Powers
FoxxoTrystan 60d7e74
Merge branch 'master' into shadowkin-rework
FoxxoTrystan 0a87907
tiny fix
FoxxoTrystan b20fa81
Stun on full mana drain.
FoxxoTrystan 47d32af
linter is happy
FoxxoTrystan 84cdd1b
Merge branch 'master' into shadowkin-rework
FoxxoTrystan 325db03
gun
FoxxoTrystan f9940a5
alert
FoxxoTrystan 11b8405
Merge branch 'master' into shadowkin-rework
FoxxoTrystan 99756ed
Merge branch 'master' into shadowkin-rework
FoxxoTrystan c1527d5
Merge branch 'master' into shadowkin-rework
FoxxoTrystan b890530
Merge branch 'master' into shadowkin-rework
FoxxoTrystan 34af30d
Apply suggestions from code review
FoxxoTrystan b2143ff
Merge branch 'master' into shadowkin-rework
FoxxoTrystan 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
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,38 @@ | ||
using Content.Server.Chat.Managers; | ||
using Content.Shared.Abilities.Psionics; | ||
using Content.Shared.Alert; | ||
using Content.Shared.Chat; | ||
using JetBrains.Annotations; | ||
using Robust.Server.Player; | ||
using Robust.Shared.Player; | ||
|
||
namespace Content.Server.Alert.Click; | ||
|
||
[UsedImplicitly] | ||
[DataDefinition] | ||
public sealed partial class CheckMana : IAlertClick | ||
{ | ||
public void AlertClicked(EntityUid player) | ||
{ | ||
var chatManager = IoCManager.Resolve<IChatManager>(); | ||
var entityManager = IoCManager.Resolve<IEntityManager>(); | ||
var playerManager = IoCManager.Resolve<IPlayerManager>(); | ||
|
||
if (!entityManager.TryGetComponent(player, out PsionicComponent? magic) || | ||
!playerManager.TryGetSessionByEntity(player, out var session)) | ||
return; | ||
|
||
var baseMsg = Loc.GetString("mana-alert", ("mana", magic.Mana), ("manaMax", magic.MaxMana)); | ||
SendMessage(chatManager, baseMsg, session); | ||
} | ||
|
||
private static void SendMessage(IChatManager chatManager, string msg, ICommonSession session) | ||
{ | ||
chatManager.ChatMessageToOne(ChatChannel.Emotes, | ||
msg, | ||
msg, | ||
EntityUid.Invalid, | ||
false, | ||
session.Channel); | ||
} | ||
} |
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
This file was deleted.
Oops, something went wrong.
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
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
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think you can do this with something like this
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh Neat