Commit Graph

5 Commits

Author SHA1 Message Date
The Sharkening a64066d34c Expands on the functionality of !do_after and allows you to make custom cog icons (#90225)
## About The Pull Request

This PR makes the cog icon an argument inside the ``do_after()`` proc
which allows you to override it for custom cogs.

## Why It's Good For The Game

Wouldn't it be cool to have little custom progross icons displayed to
other people? I don't have any sprites now to do this but I would like
this to be a thing.

## Changelog

🆑
code: do_after() can now hold custom cog icons. Add some today!
/🆑
2025-03-25 21:42:18 +01:00
Jacquerel aee2a69ad7 Do_after cogs inherit mob alpha (#90174)
## About The Pull Request

While testing #90173 I noticed that the cogs created by the progress bar
in the voidwalker's "space dive" ability are completely visible even
while the mob is invisible, meaning you see a very clear pair of gears
floating in space which is quite silly.

Initially I just set this progress bar to hidden, but then I thought
"well what if you're not invisible while doing it?" as technically
voidwalkers can become visible even while in space if engaged in a
fight.
Instead I elected to make the visible effect inherit the alpha that the
mob had when it started acting. I haven't _quite_ thought through every
case where this would come up, but I'm assuming that if a mob is hard to
see then the things it is doing... should probably also generally be
hard to see? This is a bit of a buff to various forms of invisibility
which also let you act, but do_afters also weren't visible when most of
those were added, so I don't know how much of a balance concern it
actually is.
But I'm thinking... it's probably fine!

If this isn't liked then I can do something else specific to my one use
case instead I guess.

## Why It's Good For The Game

If you can't see the mob how can you see what it is doing?

## Changelog

🆑
balance: The action animation indicating someone is performing an action
with a progress bar now inherits how visible they are. You won't easily
see a pair of gears floating in space if a Voidwalker starts diving
under the station.
/🆑
2025-03-23 17:45:29 +01:00
tonty 3f0b4abb8d Replaces world.icon_size (and some magic numbers) with defines (#86819)
## About The Pull Request

All usages of world.icon_size in code have been replaced with new
`ICONSIZE_X`, `ICONSIZE_Y` and `ICONSIZE_ALL` defines depending on
context

Replaces some "32" magic numbers with the defines

A few bits of code have been modified to split up x/y math as well

## Why It's Good For The Game

Magic number bad, code more readable, code more flexible and I'm told
there's an access cost to doing world.icon_size so minor performance
gains

## Changelog

🆑 tonty
code: made some code relating to the world's icon size more readable
/🆑

---------

Co-authored-by: Ghom <42542238+Ghommie@users.noreply.github.com>
2024-09-29 13:28:32 +00:00
Mothblocks 4b39b67f30 Change COGBAR_ANIMATION_TIME to seconds and not deciseconds (#82530)
Most people should not be using this define
2024-04-07 19:54:32 -06:00
Jeremiah c448745976 Creates a "busy" animation for players (#82416)
## About The Pull Request
Little indicator above a player when they're currently doing something.

<details>
<summary>vids</summary>

Perspective: You are the moth

![dreamseeker_b2LA4PpPAr](https://github.com/tgstation/tgstation/assets/42397676/3a38dd3c-23f2-430f-acf4-444ad5c478d3)

Hides under runechat

![dreamseeker_ZgkCWTGqDz](https://github.com/tgstation/tgstation/assets/42397676/ec1d9665-4ff0-47f7-85b6-65998c31b9be)

</details>

Todo:

- [x] Feedback?
- [x] Sneaky params so it doesn't spoil your stealth run
- [x] Possible refactor
- [x] Probably missed some "sneaky" actions
- [x] coggers
## Why It's Good For The Game

<details>
<summary>sound on:</summary>


https://github.com/tgstation/tgstation/assets/42397676/ad71c567-0202-4158-ba50-c2946375f988

</details>

## Changelog
🆑 jlsnow301, infraredbaron
add: Added a new UI element over players that are interacting, building,
etc.
/🆑

---------

Co-authored-by: Zephyr <12817816+ZephyrTFA@users.noreply.github.com>
Co-authored-by: LemonInTheDark <58055496+LemonInTheDark@users.noreply.github.com>
Co-authored-by: san7890 <the@san7890.com>
2024-04-05 02:02:14 +00:00