-
Notifications
You must be signed in to change notification settings - Fork 269
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
1fa4cb6
commit f436e7e
Showing
4 changed files
with
43 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
20 changes: 20 additions & 0 deletions
20
monkestation/code/modules/client/preferences/species_features/lizard.dm
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
/datum/preference/numeric/hiss_length | ||
savefile_key = "hiss_length" | ||
savefile_identifier = PREFERENCE_CHARACTER | ||
category = PREFERENCE_CATEGORY_SECONDARY_FEATURES | ||
priority = PREFERENCE_PRIORITY_NAMES | ||
can_randomize = FALSE | ||
minimum = 2 | ||
maximum = 6 | ||
|
||
/datum/preference/numeric/hiss_length/create_default_value() | ||
return 3 | ||
|
||
/datum/preference/numeric/hiss_length/is_accessible(datum/preferences/preferences) | ||
return ..() && ispath(preferences.read_preference(/datum/preference/choiced/species), /datum/species/lizard) | ||
|
||
/datum/preference/numeric/hiss_length/apply_to_human(mob/living/carbon/human/target, value) | ||
var/obj/item/organ/internal/tongue/lizard/tongue = target.get_organ_slot(ORGAN_SLOT_TONGUE) | ||
if(!istype(tongue)) | ||
return | ||
tongue.draw_length = value |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
7 changes: 7 additions & 0 deletions
7
...ckages/tgui/interfaces/PreferencesMenu/preferences/features/_modular_species_features.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
import { FeatureNumberInput, FeatureNumeric } from './base'; | ||
|
||
export const hiss_length: FeatureNumeric = { | ||
name: 'Hiss Length', | ||
description: 'How long do you hissssss for?', | ||
component: FeatureNumberInput, | ||
}; |