Skip to content

Commit

Permalink
Fixing the transhumanist quirk. (#194)
Browse files Browse the repository at this point in the history
* Fixing the transhumanist quirk. (#80603)

## About The Pull Request
Apparently `get_bodypart_score` was being called on simple/basic mobs
too.

## Why It's Good For The Game
I've seen a few runtimes about it on Terry.

## Changelog

:cl:
fix: The transhumanist quirk now should work as intended.
/:cl:

* Fixing the transhumanist quirk.

---------

Co-authored-by: Ghom <[email protected]>
Co-authored-by: NovaBot <[email protected]>
  • Loading branch information
3 people authored and Iajret committed Jan 3, 2024
1 parent 80b1c48 commit d03e7c1
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions code/datums/quirks/neutral_quirks/transhumanist.dm
Original file line number Diff line number Diff line change
Expand Up @@ -130,18 +130,18 @@
if(!isturf(target.loc) || target == quirk_holder || target.alpha <= 128 || target.invisibility > quirk_holder.see_invisible)
continue

if(target.mob_biotypes & MOB_ORGANIC)
if(iscarbon(target))
var/list/score = get_bodypart_score(target, limbs_only = TRUE)
// For an average human, they'll need 2 augmented limbs to not get counted as an organic nor a silicon.
// If some monstrosity has 20-30 organic limbs, they'll likely need more.
if(score[BODYPART_SCORE_OVERALL] < 1)
organics_nearby += 1
else if(score[BODYPART_SCORE_ORGANIC] == 0)
silicons_nearby += 1
else if(target.mob_biotypes & MOB_ROBOTIC)
// Dead silicons don't count, they're basically just machinery
if(target.stat != DEAD)
silicons_nearby += 1
else if(target.mob_biotypes & MOB_ORGANIC)
organics_nearby += 1
else if(target.mob_biotypes & MOB_ROBOTIC && target.stat != DEAD) // Dead silicons don't count, they're basically just machinery
silicons_nearby += 1

var/mood_result = silicons_nearby - organics_nearby

Expand Down

0 comments on commit d03e7c1

Please sign in to comment.