mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-20 19:49:39 +01:00
Moved a few monkeys features out of species code (+ updated a couple infusion organs) (#96735)
## About The Pull Request Title. I'm moving a few monkey features away from the species and into its bodyparts and organs. I plan on following up with another PR for the various `ismonkey()` in the code, as these are necessary changes for a niche thing I'm ultimately working on. Also one carp organ and one stoat organ both had bits of code made redundant by available traits. This takes care of them. Also removed the passwindow_on/off and passtable_on/off procs. We can just register the associated trait signals on init for living mobs (plus they were being misused on non-mobs). ## Why It's Good For The Game Less code associated directly to the species and more to its body parts and organs, which is basically something we've been doing for a few years ~~(also I need it for skeletonized monkeys)~~. ## Changelog N/A
This commit is contained in:
@@ -124,7 +124,7 @@
|
||||
human.add_traits(list(TRAIT_MOVE_FLOATING, TRAIT_IGNORING_GRAVITY, TRAIT_NOGRAV_ALWAYS_DRIFT), SPECIES_FLIGHT_TRAIT)
|
||||
human.add_movespeed_modifier(/datum/movespeed_modifier/jetpack/wings)
|
||||
human.AddElement(/datum/element/forced_gravity, 0)
|
||||
passtable_on(human, SPECIES_FLIGHT_TRAIT)
|
||||
ADD_TRAIT(human, TRAIT_PASSTABLE, SPECIES_FLIGHT_TRAIT)
|
||||
open_wings()
|
||||
to_chat(human, span_notice("You beat your wings and begin to hover gently above the ground..."))
|
||||
human.set_resting(FALSE, TRUE)
|
||||
@@ -135,7 +135,7 @@
|
||||
human.remove_traits(list(TRAIT_MOVE_FLOATING, TRAIT_IGNORING_GRAVITY, TRAIT_NOGRAV_ALWAYS_DRIFT), SPECIES_FLIGHT_TRAIT)
|
||||
human.remove_movespeed_modifier(/datum/movespeed_modifier/jetpack/wings)
|
||||
human.RemoveElement(/datum/element/forced_gravity, 0)
|
||||
passtable_off(human, SPECIES_FLIGHT_TRAIT)
|
||||
REMOVE_TRAIT(human, TRAIT_PASSTABLE, SPECIES_FLIGHT_TRAIT)
|
||||
to_chat(human, span_notice("You settle gently back onto the ground..."))
|
||||
close_wings()
|
||||
human.refresh_gravity()
|
||||
|
||||
Reference in New Issue
Block a user