-
Notifications
You must be signed in to change notification settings - Fork 179
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
Assay Psionic Power #1450
base: master
Are you sure you want to change the base?
Assay Psionic Power #1450
Conversation
# Description **(Use a MERGE COMMIT, not squash if possible to ~~avoid~~ reduce merge conflicts for our downstream)** Cherry-picks some PRs from The Den: - TheDenSS14/TheDen#8 - TheDenSS14/TheDen#31 - TheDenSS14/TheDen#108 - TheDenSS14/TheDen#116 - TheDenSS14/TheDen#117 - TheDenSS14/TheDen#123 - TheDenSS14/TheDen#124 # Changelog <!-- You can add an author after the `:cl:` to change the name that appears in the changelog (ex: `:cl: Death`) Leaving it blank will default to your GitHub display name This includes all available types for the changelog --> :cl: The Den Contributors - fix: Put actual prescription lenses in the prescription medhuds and sechuds (by KyuPolaris) - add: Added the CMO turtleneck and head mirror to the CMO loadouts. (by sleepyyapril, KyuPolaris) - add: Added an armored trenchcoat for the Captain. Enjoy your swag! (by Rosycup) - fix: Fixed uneven pants leg on summer security uniforms. (by Rosycup) - add: Added the Captain's Combat Gas Mask, for those more fond of close encounters. (by Rosycup) - tweak: Added the Captain's Trenchcoat to the other captain locker variants. (by Rosycup) - fix: Fixed they/them pronouns being displayed for it/its characters in the character preview. (by Azzy) --------- Co-authored-by: flyingkarii <123355664+flyingkarii@users.noreply.github.com> Co-authored-by: sleepyyapril <123355664+sleepyyapril@users.noreply.github.com>
This reverts commit cb3ca2a.
This reverts commit d02fc77.
This pull request has conflicts, please resolve those before we can evaluate the pull request. |
Signed-off-by: VMSolidus <evilexecutive@gmail.com>
namespace Content.Shared.Actions.Events; | ||
public sealed partial class AssayPowerActionEvent : EntityTargetActionEvent |
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.
namespace Content.Shared.Actions.Events; | |
public sealed partial class AssayPowerActionEvent : EntityTargetActionEvent | |
namespace Content.Shared.Actions.Events; | |
public sealed partial class AssayPowerActionEvent : EntityTargetActionEvent |
SubscribeLocalEvent<PsionicComponent, AssayDoAfterEvent>(OnDoAfter); | ||
} | ||
|
||
private void OnPowerUsed(EntityUid uid, PsionicComponent psionic, AssayPowerActionEvent args) |
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'd appreciate it if you'd turn your events into Entity<T>
events
private void OnPowerUsed(EntityUid uid, PsionicComponent psionic, AssayPowerActionEvent args) | |
private void OnPowerUsed(Entity<PsionicComponent> psionic, AssayPowerActionEvent args) |
var userAmp = MathF.Round(userPsionic.CurrentAmplification, 2).ToString("#.##"); | ||
var userDamp = MathF.Round(userPsionic.CurrentDampening, 2).ToString("#.##"); | ||
var userPotentia = MathF.Round(userPsionic.Potentia, 2).ToString("#.##"); | ||
var assayBody = Loc.GetString("assay-body", ("entity", target), ("amplification", userAmp), ("dampening", userDamp), ("potentia", userPotentia)); | ||
var userFeedback = $"[font size={args.FontSize}][color={args.FontColor}]{assayBody}[/color][/font]"; | ||
SendDescToChat(userFeedback, session); | ||
|
||
var assaySelf = Loc.GetString("assay-self", ("entity", target)); | ||
_popups.PopupEntity(assaySelf, user, user, PopupType.LargeCaution); | ||
|
||
var assaySelfFeedback = $"[font size={args.FontSize}][color={args.FontColor}]{assaySelf}[/color][/font]"; | ||
SendDescToChat(assaySelfFeedback, session); | ||
return; |
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.
For the pure sake of readability this block and block after it should be turned into two separate method like InspectSelf and InspectOther
Description
This PR adds a new psionic power to the game, called Assay. Assay is a more advanced information gathering tool that is available roundstart to the Mantis. It essentially acts as the first ingame method for characters to discover the underlying math behind Psionics, displaying to them the target's casting stats, potentia, and metapsionic feedback messages. These messages don't tell the caster directly which powers a target has, instead providing hints as to what those powers might be.
Media
Changelog
🆑