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

[MIRROR] Cleans up blood deficiency hardcoding #2592

Merged
merged 1 commit into from
Mar 28, 2024
Merged

Conversation

Steals-The-PRs
Copy link
Collaborator

Mirrored on Nova: NovaSector/NovaSector#1605
Original PR: tgstation/tgstation#82185

About The Pull Request

  • Dehardcode blood deficiency
    • Deletes "update mail goodies"
    • Deletes "updates quirk mail goodies"
      • Both of these were only used to update blood deficiency mail goods, we can just do that with a signal.
    • Deletes hardcoded "get_quirk / lose_blood" calls
      • While you can get_quirk, much like you can GetComponent generally speaking it's much cleaner to do it via signals.
      • In this case I added a signal to handle_blood.
      • And by adding this signal we can do similar dehardcoding for jellypeople, removing their spec_life and running it off the signal.

Why It's Good For The Game

Ye olde "consistency and cleaner code". And probably a tiny but of optimization to be yeeked out of it since we don't need to iterate over a mob's quirk list every life tick, nor every time we change specieses. But that's probably not even a drop in the bucket so not even worth mentioning.

Blood defi still happens in sync with Life (as noted by the comment).

Changelog

🆑 Melbert
refactor: Blood deficiency and slimepeople now handle blood a tiny bit differently, report any oddities.
refactor: Blood deficiency now handles its mail goods a tiny bit different, report any oddities.
/:cl:

* Cleans up blood deficiency hardcoding

* Modular

* No mail goodies

---------

Co-authored-by: MrMelbert <[email protected]>
Co-authored-by: Mal <[email protected]>
Co-authored-by: SomeRandomOwl <[email protected]>
@Iajret Iajret merged commit d2bd284 into master Mar 28, 2024
24 checks passed
@Iajret Iajret deleted the upstream-mirror-1605 branch March 28, 2024 12:36
AnywayFarus added a commit that referenced this pull request Mar 28, 2024
Iajret pushed a commit that referenced this pull request May 21, 2024
* add smoke kit to uplink (#83330)

## About The Pull Request

Add smoke kit (5 grenades) by 2 TC

## Why It's Good For The Game

Smokes can be a good addition for stealth implant, vanishing and slicing
with a katana

## Proof of Testing

<details>
<summary>Screenshots/Videos OLD</summary>
  

![image](https://github.com/tgstation/tgstation/assets/60922927/89b56042-2b25-4f5e-bfd4-b5d088c56abd)

![image](https://github.com/tgstation/tgstation/assets/60922927/56d0c084-6c46-4e58-8931-c30d623858ee)

</details>

## Changelog


:cl:
add: Added smoke kit (5 grenades) with four grenades to uplink by 2 TC
/:cl:

---------

Co-authored-by: Helg2 <[email protected]>

* add smoke kit to uplink

---------

Co-authored-by: hack-wrench <[email protected]>
Co-authored-by: Helg2 <[email protected]>
Co-authored-by: NovaBot13 <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants