-
Notifications
You must be signed in to change notification settings - Fork 68
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Sensitive Snout Customization (#2436)
* The boopening * Forgot this one * Finish implementing severity config * Early return after boop Otherwise we're constantly shaking them to get them up after the stun Also typecast the quirk * Swap severities around * whoopsie * glorf * emote cooldown * Review, use defines for severities
- Loading branch information
1 parent
70799df
commit e5b1e6a
Showing
5 changed files
with
78 additions
and
4 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
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
modular_nova/master_files/code/modules/client/preferences/sensitive_snout.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/choiced/snout_sensitivity | ||
category = PREFERENCE_CATEGORY_MANUALLY_RENDERED | ||
savefile_key = "snout_sensitivity" | ||
savefile_identifier = PREFERENCE_CHARACTER | ||
|
||
/datum/preference/choiced/snout_sensitivity/init_possible_values() | ||
return assoc_to_keys(GLOB.possible_snout_sensitivities) | ||
|
||
/datum/preference/choiced/snout_sensitivity/create_default_value() | ||
return "Collapse" | ||
|
||
/datum/preference/choiced/snout_sensitivity/apply_to_human() | ||
return | ||
|
||
/datum/preference/choiced/snout_sensitivity/is_accessible(datum/preferences/preferences) | ||
. = ..() | ||
if (!.) | ||
return FALSE | ||
|
||
return "Sensitive Snout" in preferences.all_quirks |
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
...faces/PreferencesMenu/preferences/features/character_preferences/nova/sensitive_snout.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 { FeatureChoiced } from '../../base'; | ||
import { FeatureDropdownInput } from '../../dropdowns'; | ||
|
||
export const snout_sensitivity: FeatureChoiced = { | ||
name: 'Severity', | ||
component: FeatureDropdownInput, | ||
}; |