mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-08-23 03:57:13 +01:00
Adds custom age limits to each species (#20878)
* Custom min/max ages for species
* fixing the pitch
* tweaking AGE_MAX
* Revert "tweaking AGE_MAX"
This reverts commit 0270ba6840.
* max_age decreased roughly by 10%
* Update code/__DEFINES/mob_defines.dm
Co-authored-by: Ryan <80364400+Sirryan2002@users.noreply.github.com>
* machine minimum age
* clamp
* Adjustments to ages
* age max
* Update code/modules/mob/living/carbon/human/species/_species.dm
Co-authored-by: Ryan <80364400+Sirryan2002@users.noreply.github.com>
* clamp and age pitch tweaks
* finally found plasmaman lifespan1
---------
Co-authored-by: Ryan <80364400+Sirryan2002@users.noreply.github.com>
This commit is contained in:
@@ -267,7 +267,7 @@
|
||||
if(age_based && ishuman(user))
|
||||
var/mob/living/carbon/human/H = user
|
||||
// Vary needs to be true as otherwise frequency changes get ignored deep within playsound_local :(
|
||||
playsound(user.loc, sound_path, sound_volume, TRUE, frequency = H.get_age_pitch())
|
||||
playsound(user.loc, sound_path, sound_volume, TRUE, frequency = H.get_age_pitch(H.dna.species.max_age))
|
||||
else
|
||||
playsound(user.loc, sound_path, sound_volume, vary)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user