Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ramatae 2: Fixing prefs & sprite names. #124

Merged
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions code/__DEFINES/~doppler_defines/mutant_variations.dm
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
#define BUG "bug"
#define SYNTHETIC "synthetic"
#define HUMANOID "humanoid"
#define RAMATAN "ramatan"

/// This list gets read by the dropdown pref when a player chooses what type of sprite accessory to access
GLOBAL_LIST_INIT(mutant_variations, list(
Expand All @@ -30,6 +31,7 @@ GLOBAL_LIST_INIT(mutant_variations, list(
MONKEY,
MOUSE,
SYNTHETIC,
RAMATAN,
))

/// This list gets read by the animalistic preference for genemod and anthros
Expand Down
10 changes: 10 additions & 0 deletions code/~doppler_earliest_defines.dm
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,11 @@
name = DOPPLER_SPRITE_ACCESSORY_NOEARS
icon_state = /datum/sprite_accessory/ears/none::icon_state

/datum/sprite_accessory/ears_more/ramatan/none
icon = 'modular_doppler/modular_customization/accessories/code/~overrides/icons/fallbacks.dmi'
name = DOPPLER_SPRITE_ACCESSORY_NOEARS
icon_state = /datum/sprite_accessory/ears/none::icon_state

/// Tail time
/datum/sprite_accessory/tails/none
icon = 'modular_doppler/modular_customization/accessories/code/~overrides/icons/fallbacks.dmi'
Expand Down Expand Up @@ -167,6 +172,11 @@
name = DOPPLER_SPRITE_ACCESSORY_NOTAIL
icon_state = /datum/sprite_accessory/tails/none::icon_state

/datum/sprite_accessory/tails/ramatan/none
icon = /datum/sprite_accessory/tails/none::icon
name = DOPPLER_SPRITE_ACCESSORY_NOTAIL
icon_state = /datum/sprite_accessory/tails/none::icon_state

/// Lizard exclusive 🦎
/datum/sprite_accessory/snouts/none
icon = 'modular_doppler/modular_customization/accessories/code/~overrides/icons/fallbacks.dmi'
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/datum/sprite_accessory/lizard_markings/ramatan
icon = 'modular_doppler/modular_customization/accessories/icons/ramatan/ramatan_markings.dmi'
name = "Ramatan Underbelly"
icon_state = "scug_lbelly"
icon_state = "ramatan_lbelly"
gender_specific = TRUE
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
/datum/sprite_accessory/ears_more/ramatan
icon = 'modular_doppler/modular_customization/accessories/icons/ramatan/ramatan_ears.dmi'

/datum/sprite_accessory/ears_more/ramatan/standard
name = "Ramatan"
icon_state = "ramatan_standard"

/datum/sprite_accessory/ears_more/ramatan/tall
name = "Ramatan Tall"
icon_state = "ramatan_tall"

/datum/sprite_accessory/ears_more/ramatan/sharp
name = "Ramatan Sharp"
icon_state = "ramatan_sharp"

/datum/sprite_accessory/ears_more/ramatan/forward
name = "Ramatan Droopy"
icon_state = "ramatan_forward"

/datum/sprite_accessory/ears_more/ramatan/flopped
name = "Ramatan Long Flop"
icon_state = "ramatan_flopped"

/datum/sprite_accessory/ears_more/ramatan/fluffy
name = "Ramatan Fluffy"
icon_state = "ramatan_fluffy"

/datum/sprite_accessory/ears_more/ramatan/short
name = "Ramatan Short"
icon_state = "ramatan_short"
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
/datum/sprite_accessory/frills/ramatan
icon = 'modular_doppler/modular_customization/accessories/icons/ramatan/ramatan_frills.dmi'
name = "Ramatan"
icon_state = "scug_aquatic"
icon_state = "ramatan_aquatic"

/datum/sprite_accessory/frills/ramatan/sharp
name = "Ramatan Sharp"
icon_state = "scug_sharp"
icon_state = "ramatan_sharp"

/datum/sprite_accessory/frills/ramatan/fluffy
name = "Ramatan Fluffy"
icon_state = "scug_fluffy"
icon_state = "ramatan_fluffy"

/datum/sprite_accessory/frills/ramatan/draconic
name = "Ramatan Draconic"
icon_state = "scug_dragon"
icon_state = "ramatan_dragon"

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
/datum/sprite_accessory/snouts/ramatan
icon = 'modular_doppler/modular_customization/accessories/icons/ramatan/ramatan_snout.dmi'
name = "Ramatan"
icon_state = "scug_standard"
icon_state = "ramatan_standard"

/datum/sprite_accessory/snouts/ramatan/sharp
name = "Ramatan Sharp"
icon_state = "scug_sharp"
icon_state = "ramatan_sharp"

/datum/sprite_accessory/snouts/ramatan/round
name = "Ramatan Round"
icon_state = "scug_round"
icon_state = "ramatan_round"
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
/datum/sprite_accessory/tails/lizard/ramatan
/datum/sprite_accessory/tails/ramatan
icon = 'modular_doppler/modular_customization/accessories/icons/ramatan/ramatan_tail.dmi'

/datum/sprite_accessory/tails/ramatan/standard
name = "Ramatan"
icon_state = "scug_std"
icon_state = "ramatan_std"

/datum/sprite_accessory/tails/lizard/ramatan/thick
/datum/sprite_accessory/tails/ramatan/thick
name = "Ramatan Thick"
icon_state = "scug_thick"
icon_state = "ramatan_thick"
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
14 changes: 13 additions & 1 deletion modular_doppler/modular_customization/organs/external/tail.dm
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,6 @@
/datum/bodypart_overlay/mutant/tail/synthetic/get_global_feature_list()
return SSaccessories.tails_list_synth


/// Humanoid tail
//
/obj/item/organ/external/tail/humanoid
Expand All @@ -200,3 +199,16 @@

/datum/bodypart_overlay/mutant/tail/humanoid/get_global_feature_list()
return SSaccessories.tails_list_humanoid

/// Ramatan tail
//
/obj/item/organ/external/tail/ramatan
preference = "feature_ramatan_tail"
dna_block = null
bodypart_overlay = /datum/bodypart_overlay/mutant/tail/ramatan

/datum/bodypart_overlay/mutant/tail/ramatan
feature_key = "tail_other"

/datum/bodypart_overlay/mutant/tail/ramatan/get_global_feature_list()
return SSaccessories.tails_list_ramatan
Original file line number Diff line number Diff line change
Expand Up @@ -114,4 +114,13 @@
/datum/bodypart_overlay/mutant/ears/synthetic_ears/get_global_feature_list()
return SSaccessories.ears_list_synthetic

/// Ramatan ears
//
/obj/item/organ/internal/ears/ramatan
preference = "feature_ramatan_ears"
bodypart_overlay = /datum/bodypart_overlay/mutant/ears/ramatan_ears

/datum/bodypart_overlay/mutant/ears/ramatan_ears/get_global_feature_list()
return SSaccessories.ears_list_ramatan


31 changes: 31 additions & 0 deletions modular_doppler/modular_customization/preferences/ears.dm
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
var/list/ears_list_bug
var/list/ears_list_humanoid
var/list/ears_list_synthetic
var/list/ears_list_ramatan

/datum/controller/subsystem/accessories/setup_lists()
. = ..()
Expand All @@ -27,6 +28,7 @@
ears_list_bug = init_sprite_accessory_subtypes(/datum/sprite_accessory/ears_more/bug)["default_sprites"]
ears_list_humanoid = init_sprite_accessory_subtypes(/datum/sprite_accessory/ears_more/humanoid)["default_sprites"]
ears_list_synthetic = init_sprite_accessory_subtypes(/datum/sprite_accessory/ears_more/synthetic)["default_sprites"]
ears_list_ramatan = init_sprite_accessory_subtypes(/datum/sprite_accessory/ears_more/ramatan)["default_sprites"]

/datum/dna
/// This variable is read by the regenerate_organs() proc to know what organ subtype to give
Expand Down Expand Up @@ -454,6 +456,35 @@
var/datum/sprite_accessory/chosen_ears = SSaccessories.ears_list_synthetic[value]
return generate_ears_icon(chosen_ears)

// Ramatan
/datum/preference/choiced/ramatan_ears
savefile_key = "feature_ramatan_ears"
savefile_identifier = PREFERENCE_CHARACTER
category = PREFERENCE_CATEGORY_CLOTHING
relevant_external_organ = null
should_generate_icons = TRUE
main_feature_name = "Ears"

/datum/preference/choiced/ramatan_ears/init_possible_values()
return assoc_to_keys_features(SSaccessories.ears_list_ramatan)

/datum/preference/choiced/ramatan_ears/is_accessible(datum/preferences/preferences)
. = ..()
var/chosen_variation = preferences.read_preference(/datum/preference/choiced/ear_variation)
if(chosen_variation == RAMATAN)
return TRUE
return FALSE

/datum/preference/choiced/ramatan_ears/create_default_value()
return /datum/sprite_accessory/ears_more/ramatan/none::name

/datum/preference/choiced/ramatan_ears/apply_to_human(mob/living/carbon/human/target, value)
if(target.dna.ear_type == RAMATAN)
target.dna.features["ears"] = value

/datum/preference/choiced/ramatan_ears/icon_for(value)
var/datum/sprite_accessory/chosen_ears = SSaccessories.ears_list_ramatan[value]
return generate_ears_icon(chosen_ears)

/// Proc to gen that icon
// We don't wanna copy paste this
Expand Down
32 changes: 32 additions & 0 deletions modular_doppler/modular_customization/preferences/tail.dm
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
var/list/tails_list_bug
var/list/tails_list_synth
var/list/tails_list_humanoid
var/list/tails_list_ramatan

/datum/controller/subsystem/accessories/setup_lists()
. = ..()
Expand All @@ -23,6 +24,7 @@
tails_list_bug = init_sprite_accessory_subtypes(/datum/sprite_accessory/tails/bug)["default_sprites"]
tails_list_synth = init_sprite_accessory_subtypes(/datum/sprite_accessory/tails/synthetic)["default_sprites"]
tails_list_humanoid = init_sprite_accessory_subtypes(/datum/sprite_accessory/tails/humanoid)["default_sprites"]
tails_list_ramatan = init_sprite_accessory_subtypes(/datum/sprite_accessory/tails/ramatan)["default_sprites"]

/datum/dna
/// This variable is read by the regenerate_organs() proc to know what organ subtype to give
Expand Down Expand Up @@ -474,6 +476,36 @@
var/datum/sprite_accessory/chosen_tail = SSaccessories.tails_list_humanoid[value]
return generate_back_icon(chosen_tail, "tail")

// Ramatan
/datum/preference/choiced/ramatan_tail
savefile_key = "feature_ramatan_tail"
savefile_identifier = PREFERENCE_CHARACTER
category = PREFERENCE_CATEGORY_CLOTHING
relevant_external_organ = null
should_generate_icons = TRUE
main_feature_name = "Tail"

/datum/preference/choiced/ramatan_tail/init_possible_values()
return assoc_to_keys_features(SSaccessories.tails_list_ramatan)

/datum/preference/choiced/ramatan_tail/is_accessible(datum/preferences/preferences)
. = ..()
var/chosen_variation = preferences.read_preference(/datum/preference/choiced/tail_variation)
if(chosen_variation == RAMATAN)
return TRUE
return FALSE

/datum/preference/choiced/ramatan_tail/create_default_value()
return /datum/sprite_accessory/tails/ramatan/none::name

/datum/preference/choiced/ramatan_tail/apply_to_human(mob/living/carbon/human/target, value)
if(target.dna.tail_type == RAMATAN)
target.dna.features["tail_other"] = value

/datum/preference/choiced/ramatan_tail/icon_for(value)
var/datum/sprite_accessory/chosen_tail = SSaccessories.tails_list_ramatan[value]
return generate_back_icon(chosen_tail, "tail")

#define WIDTH_WINGS_FILE 45
#define HEIGHT_WINGS_FILE 34
#define WIDTH_BIGTAILS_FILE 64
Expand Down
5 changes: 5 additions & 0 deletions modular_doppler/modular_customization/tri_color/ears.dm
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,11 @@
data[SUPPLEMENTAL_FEATURE_KEY] = /datum/preference/tri_color/ears_color::savefile_key
return data

/datum/preference/choiced/ramatan_ears/compile_constant_data()
var/list/data = ..()
data[SUPPLEMENTAL_FEATURE_KEY] = /datum/preference/tri_color/ears_color::savefile_key
return data


/// Ears colors!
/datum/preference/tri_color/ears_color
Expand Down
5 changes: 5 additions & 0 deletions modular_doppler/modular_customization/tri_color/tail.dm
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,11 @@
data[SUPPLEMENTAL_FEATURE_KEY] = /datum/preference/tri_color/tail_color::savefile_key
return data

/datum/preference/choiced/ramatan_tail/compile_constant_data()
var/list/data = ..()
data[SUPPLEMENTAL_FEATURE_KEY] = /datum/preference/tri_color/tail_color::savefile_key
return data


/// Tail colors!
/datum/preference/tri_color/tail_color
Expand Down
Loading
Loading