mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2026-08-23 05:07:51 +01:00
[MIRROR] Fix shadekin voices being revealed (#12109)
Co-authored-by: Aura Dusklight <46622484+NovaDusklight@users.noreply.github.com> Co-authored-by: Cameron Lennox <killer65311@gmail.com>
This commit is contained in:
co-authored by
Aura Dusklight
Cameron Lennox
parent
6a8ca10abf
commit
065e2cfd28
@@ -81,3 +81,14 @@
|
||||
var/datum/component/shadekin/our_SK = target.get_shadekin_component()
|
||||
if(our_SK)
|
||||
our_SK.nutrition_energy_conversion = value
|
||||
|
||||
/datum/preference/toggle/living/shadekin_hide_voice_in_phase
|
||||
category = PREFERENCE_CATEGORY_MANUALLY_RENDERED
|
||||
savefile_key = "SHADEKIN_HIDE_VOICE_IN_PHASE"
|
||||
default_value = TRUE
|
||||
savefile_identifier = PREFERENCE_PLAYER
|
||||
|
||||
/datum/preference/toggle/living/shadekin_hide_voice_in_phase/apply_to_living(mob/living/target, value)
|
||||
var/datum/component/shadekin/our_SK = target.get_shadekin_component()
|
||||
if(our_SK)
|
||||
our_SK.hide_voice_in_phase = value
|
||||
|
||||
Reference in New Issue
Block a user