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

Kapulimbs #65523

Merged
merged 52 commits into from
Apr 2, 2022
Merged

Kapulimbs #65523

merged 52 commits into from
Apr 2, 2022

Conversation

Kapu1178
Copy link
Contributor

@Kapu1178 Kapu1178 commented Mar 17, 2022

About The Pull Request

Ports Kapulimbs 1.0 & 1.1 from Shiptest, while trimming some unrelated code.

Kapulimbs is a bodypart & update icons rewrite I created with a few specific intentions:

  1. Simplify the code
  2. Allow players to create frankensteins of different species parts
  3. Enable non-humanoid species to be created

How is this achieved?

Bodyparts are now pathed to their specific species, and they can have their own unique life loops, appearances, and anything else a bodypart child should have. A "bodytypes" bitfield is utilized to differentiate important attributes, such as BODYTYPE_ORGANIC and BODYTYPE_HUMANOID.

Why It's Good For The Game

Better code AND better fun.
image

Changelog

🆑
add: Limbgrower limbs are now a sickly green
refactor: Digitigrade legs should now behave consistently.
refactor: Limbs will no longer update appearance as owner is transferred, allowing for multi-species frankensteins
fix: CHANGELING TRANSFORM FUNCTIONS PROPERLY
del: Synths and synth-related mechanics (Synth fugative)
/:cl:

@Kapu1178 Kapu1178 marked this pull request as draft March 17, 2022 02:53
@tgstation-server tgstation-server added Code Improvement Code is now easier to copy paste. Fix Rewrites a bug so it appears in different circumstances Feature Exposes new bugs in interesting ways Refactor Makes the code harder to read labels Mar 17, 2022
@github-actions github-actions bot requested a review from Fikou March 17, 2022 02:54
code/modules/mob/living/carbon/carbon_update_icons.dm Outdated Show resolved Hide resolved
code/modules/mob/living/carbon/carbon_update_icons.dm Outdated Show resolved Hide resolved
code/modules/mob/living/carbon/carbon_update_icons.dm Outdated Show resolved Hide resolved
code/modules/mob/living/carbon/carbon_update_icons.dm Outdated Show resolved Hide resolved
code/modules/mob/living/carbon/carbon_update_icons.dm Outdated Show resolved Hide resolved
code/modules/antagonists/changeling/changeling.dm Outdated Show resolved Hide resolved
code/__HELPERS/icons.dm Outdated Show resolved Hide resolved
code/__DEFINES/mobs.dm Outdated Show resolved Hide resolved
code/modules/mob/living/carbon/human/human_update_icons.dm Outdated Show resolved Hide resolved
@optimumtact
Copy link
Member

furry shit

@optimumtact optimumtact added the Do Not Merge You must have really upset someone label Mar 17, 2022
code/__DEFINES/mobs.dm Outdated Show resolved Hide resolved
code/__DEFINES/mobs.dm Outdated Show resolved Hide resolved
@Archanial
Copy link
Contributor

furry shit

Don't pretend you don't like it

@SuperNovaa41
Copy link
Contributor

SuperNovaa41 commented Mar 17, 2022

Most of your changelog isnt relevant to players

@ExcessiveUseOfCobblestone
Copy link
Contributor

Transformation erp enabler

@AlinaStarkova
Copy link
Contributor

how would it work with changelings if people swap species limbs? does the dna sting/absorbtion remember the limbs the target had? and what happens when the target changes limbs again? is that a case of "out of date DNA" that a re-sting will solve or does the DNA update?

@Kapu1178
Copy link
Contributor Author

Most of your changelog isnt relevant to players

Changelogs are for coders too. Thats why refactor and code are tags.

@ShibaInuLord
Copy link

ShibaInuLord commented Mar 17, 2022

i sure do love getting a message specifying i have human limbs every time i get hit

@JohnFulpWillard
Copy link
Member

Most of your changelog isnt relevant to players

Changelogs are for coders too. Thats why refactor and code are tags.

image

@Kapu1178 Kapu1178 requested a review from MrMelbert April 1, 2022 00:35
@Ryll-Ryll Ryll-Ryll merged commit 1d0eadc into tgstation:master Apr 2, 2022
@tralezab
Copy link
Contributor

tralezab commented Apr 2, 2022

yeet

@Kapu1178
Copy link
Contributor Author

Kapu1178 commented Apr 2, 2022

@Sinestia
Copy link

Sinestia commented Apr 2, 2022

o shit grats

return msg
. = ..()
. += span_notice("Remember the rules of Wiz-Off!")
. += "\t[span_info("Each player draws 5 cards.")]"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why was this even touched?

@cacogen
Copy link
Contributor

cacogen commented Apr 2, 2022

combat text changed from limb name to limb body zone.

I don't think you did...

TheBoondock pushed a commit to TheBoondock/tgstation that referenced this pull request Apr 6, 2022
* i wanna go to bed so im pushing this

* It compiles but doesn't work yet

* It works!

* I WANT TO DIE

* Appease linters

* some CI fixes

* Address reviews + oversight

* Limb grower fix

* more icon fixes

* forgot to hit save

* I'm a dumbass

* Removes bodypart parent from unit test

* Fixes monkeys and CI

* Grammar pass

* I hate zombie code so much

* General code cleanup

* THE SHITCODERS ARE COMING FOR MY VARS

* THE UNIT TESTS ARE COMING FOR MY SHITCODE

* Reviews + skirts

* Removes an unused DMI

* Why didn't I do this in the first place?

* HAIR REFACTOR

* Haha whoops

* How did I miss this

* Admin spawned creatures now have their features

* Optimize me harder

* minor fix i need to push to merge master

* Fixes hair (maybe) and a runtime

* Maybe fixes mirrors

* Attempts to fix women

* Fixes hair on dismembered heads and a grammar change

* Caps lock did me dirty

* address reviews

* icon failures fix + missed reviews

* Fixes: Facehuggers and Regenerate_limb

* Fixes ethereal color pref appearance

* How the fuck did this not break everything else horribly?

* JESUS FUCKING CHRIST IM A MORON

* Fixes compile

* I'm not high I swear

* Im a dipshiiiit

* grumble grumble

* Fixes a visual bug with digitigrade legs. Adds \improper to roundstart species names. Added two new clothing-related helper procs. Renamed a couple procs to be more accurate. Adds SHOULD_CALL_PARENT(TRUE) to examine_more. Addresses reviews.

* Forgot this little readability thing.

* Updates CODEOWNERS

* Me when I forget how github works

* mapload me harder

* Last second fixes
TheBoondock pushed a commit to TheBoondock/tgstation that referenced this pull request Apr 6, 2022
@ShibaInuLord
Copy link

combat text changed from limb name to limb body zone.

I don't think you did...

he lied to me wow

@cacogen
Copy link
Contributor

cacogen commented Apr 8, 2022

To be fair, there are a huge amount of messages that use a limb's name in the code. I'm guessing changing them all to refer to the body zone is probably not the best way to fix it.

I think you'd have to revert the limb names to be generic and have the species prefixed only in the places that need it.

optimumtact pushed a commit that referenced this pull request May 4, 2022

#65523 made some changes to bodypart names that messed with the grammar of a few messages around the codebase by inserting the species of a bodypart where it's really not needed. For example:

For most general combat/health cases, we don't need to worry about the species of a bodypart. So, this changes combat and wound messages back to simply displaying the relevant bodypart zone being attacked/affected. See below:

dreamseeker_2022-04-10_02-05-55.png

Let me know if I missed any!
Why It's Good For The Game

Better grammar
Changelog

cl Ryll/Shaps
spellcheck: Wound and combat messages will no longer mention the species of an attacked bodypart when not appropriate
/cl
LemonInTheDark pushed a commit to LemonInTheDark/tgstation that referenced this pull request Mar 12, 2023
* i wanna go to bed so im pushing this

* It compiles but doesn't work yet

* It works!

* I WANT TO DIE

* Appease linters

* some CI fixes

* Address reviews + oversight

* Limb grower fix

* more icon fixes

* forgot to hit save

* I'm a dumbass

* Removes bodypart parent from unit test

* Fixes monkeys and CI

* Grammar pass

* I hate zombie code so much

* General code cleanup

* THE SHITCODERS ARE COMING FOR MY VARS

* THE UNIT TESTS ARE COMING FOR MY SHITCODE

* Reviews + skirts

* Removes an unused DMI

* Why didn't I do this in the first place?

* HAIR REFACTOR

* Haha whoops

* How did I miss this

* Admin spawned creatures now have their features

* Optimize me harder

* minor fix i need to push to merge master

* Fixes hair (maybe) and a runtime

* Maybe fixes mirrors

* Attempts to fix women

* Fixes hair on dismembered heads and a grammar change

* Caps lock did me dirty

* address reviews

* icon failures fix + missed reviews

* Fixes: Facehuggers and Regenerate_limb

* Fixes ethereal color pref appearance

* How the fuck did this not break everything else horribly?

* JESUS FUCKING CHRIST IM A MORON

* Fixes compile

* I'm not high I swear

* Im a dipshiiiit

* grumble grumble

* Fixes a visual bug with digitigrade legs. Adds \improper to roundstart species names. Added two new clothing-related helper procs. Renamed a couple procs to be more accurate. Adds SHOULD_CALL_PARENT(TRUE) to examine_more. Addresses reviews.

* Forgot this little readability thing.

* Updates CODEOWNERS

* Me when I forget how github works

* mapload me harder

* Last second fixes
LemonInTheDark pushed a commit to LemonInTheDark/tgstation that referenced this pull request Mar 12, 2023
* Removes some unnecessary species mentions from kapuparts (tgstation#66112)



tgstation#65523 made some changes to bodypart names that messed with the grammar of a few messages around the codebase by inserting the species of a bodypart where it's really not needed. For example:

For most general combat/health cases, we don't need to worry about the species of a bodypart. So, this changes combat and wound messages back to simply displaying the relevant bodypart zone being attacked/affected. See below:

dreamseeker_2022-04-10_02-05-55.png

Let me know if I missed any!
Why It's Good For The Game

Better grammar
Changelog

cl Ryll/Shaps
spellcheck: Wound and combat messages will no longer mention the species of an attacked bodypart when not appropriate
/cl

* Continues removing unnecessary species names of bodyparts in visible messages (tgstation#67254)

* removes some more unnecessary species mentions from bodypart messages

Co-authored-by: Ryll Ryll <3589655+Ryll-Ryll@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Code Improvement Code is now easier to copy paste. Feature Exposes new bugs in interesting ways Fix Rewrites a bug so it appears in different circumstances GitHub Remember that time they had to get us to send them a copy of the repo Refactor Makes the code harder to read Sprites A bikeshed full of soulless bikes. 📌 Test Merge Candidate This version will not be removed by actions when the PR is updated
Projects
None yet
Development

Successfully merging this pull request may close these issues.