Skip to content
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

Ports two of my recent /tg/ PRs #3896

Merged
merged 2 commits into from
Oct 21, 2024
Merged

Conversation

Absolucy
Copy link
Member

@Absolucy Absolucy commented Oct 20, 2024

About The Pull Request

Ports the following PRs from /tg/, both by me:

Changelog

🆑
add: PDA ringtones now show a balloon alert to the PDA holder.
refactor: Refactored how some screen alerts, such as aura healing, show atom overlays.
/:cl:

This makes it so receiving a PDA message will give the holder a balloon
alert with their ringtone.

PDA messages are often ignored due to not being noticed, as many players
are more often focused on the main game screen (which runechat has
somewhat normalized) than the chat window. This makes things more
obvious that there's a PDA message.

:cl:
add: PDA ringtones now show a balloon alert to the PDA holder.
/:cl:
…cloning instead of directly overlaying the master (#87281)

## About The Pull Request

This reworks the `/mob/proc/throw_alert(new_master = ...)` to use
appearance cloning instead of just directly adding the master atom as an
overlay.

There's several advantages to this:
- We don't have to change anything about the original target at all
- Setting the plane/layer, adding the overlay, then resetting it to
before (as it does without this PR), feels like an awful hack ngl.
- We can ensure the target is always facing south, and has no pixel
x/y/z shift.

<details>
<summary><h3>Proof of testing / screenshots</h3></summary>

I had the healing rod holder standing on a table when the alert was
added, to ensure that the pixel_x/y/z reset worked.

![2024-10-17 (1729221218) ~
dreamseeker](https://github.com/user-attachments/assets/664abbef-d543-4d13-99ec-3264e05edfd8)
![2024-10-17 (1729221245) ~
dreamseeker](https://github.com/user-attachments/assets/6073dcd4-75e0-404a-bea1-6bea5fbd7591)

</details>

## Why It's Good For The Game

Ensures the aura healing alerts and such always look consistent - no
pixel offsets, always facing south, with more reliable code.

## Changelog
:cl:
refactor: Refactored how some screen alerts, such as aura healing, show
atom overlays.
/:cl:
@Absolucy Absolucy merged commit b5cbe6f into Monkestation:master Oct 21, 2024
23 checks passed
@Absolucy Absolucy deleted the two-tg-ports branch October 21, 2024 03:14
github-actions bot added a commit that referenced this pull request Oct 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant