Skip to content

Commit

Permalink
correction+bugsolve
Browse files Browse the repository at this point in the history
  • Loading branch information
carpotoxin committed Oct 3, 2024
1 parent 15c9959 commit 92b9abe
Show file tree
Hide file tree
Showing 12 changed files with 13 additions and 117 deletions.
2 changes: 0 additions & 2 deletions code/__DEFINES/~doppler_defines/mutant_variations.dm
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
#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 @@ -31,7 +30,6 @@ GLOBAL_LIST_INIT(mutant_variations, list(
MONKEY,
MOUSE,
SYNTHETIC,
RAMATAN,
))

/// This list gets read by the animalistic preference for genemod and anthros
Expand Down
5 changes: 0 additions & 5 deletions code/~doppler_earliest_defines.dm
Original file line number Diff line number Diff line change
Expand Up @@ -172,11 +172,6 @@
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
Expand Up @@ -25,7 +25,6 @@
name = "Rattlesnake"
icon_state = "rattlesnake"


/datum/sprite_accessory/tails/lizard/big
icon = 'modular_doppler/modular_customization/accessories/icons/lizard/lizard_tail_big.dmi'
name = "Shadekin (Big)"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,30 +1,29 @@
/datum/sprite_accessory/ears_more/ramatan
icon = 'modular_doppler/modular_customization/accessories/icons/ramatan/ramatan_ears.dmi'

/datum/sprite_accessory/ears_more/ramatan/standard
/datum/sprite_accessory/ears_more/lizard/ramatan
name = "Ramatan"
icon_state = "ramatan_standard"
icon = 'modular_doppler/modular_customization/accessories/icons/ramatan/ramatan_ears.dmi'

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

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

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

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

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

/datum/sprite_accessory/ears_more/ramatan/short
/datum/sprite_accessory/ears_more/lizard/ramatan/short
name = "Ramatan Short"
icon_state = "ramatan_short"
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
/datum/sprite_accessory/tails/ramatan
icon = 'modular_doppler/modular_customization/accessories/icons/ramatan/ramatan_tail.dmi'

/datum/sprite_accessory/tails/ramatan/standard
/datum/sprite_accessory/tails/lizard/ramatan
name = "Ramatan"
icon_state = "ramatan_std"
icon = 'modular_doppler/modular_customization/accessories/icons/ramatan/ramatan_tail.dmi'

/datum/sprite_accessory/tails/ramatan/thick
/datum/sprite_accessory/tails/lizard/ramatan/thick
name = "Ramatan Thick"
icon_state = "ramatan_thick"
13 changes: 0 additions & 13 deletions modular_doppler/modular_customization/organs/external/tail.dm
Original file line number Diff line number Diff line change
Expand Up @@ -199,16 +199,3 @@

/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
11 changes: 0 additions & 11 deletions modular_doppler/modular_customization/organs/internal/ears.dm
Original file line number Diff line number Diff line change
Expand Up @@ -113,14 +113,3 @@

/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


29 changes: 0 additions & 29 deletions modular_doppler/modular_customization/preferences/ears.dm
Original file line number Diff line number Diff line change
Expand Up @@ -456,35 +456,6 @@
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
30 changes: 0 additions & 30 deletions modular_doppler/modular_customization/preferences/tail.dm
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@
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 @@ -476,35 +475,6 @@
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
Expand Down
5 changes: 0 additions & 5 deletions modular_doppler/modular_customization/tri_color/ears.dm
Original file line number Diff line number Diff line change
Expand Up @@ -64,11 +64,6 @@
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: 0 additions & 5 deletions modular_doppler/modular_customization/tri_color/tail.dm
Original file line number Diff line number Diff line change
Expand Up @@ -65,11 +65,6 @@
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
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,8 @@
ramatan_for_preview.dna.features["lizard_markings"] = "Ramatan Underbelly"
ramatan_for_preview.dna.features["body_markings_color_1"] = "#ccecff"
ramatan_for_preview.dna.features["mcolor"] = "#FFFFFF"
ramatan_for_preview.dna.ear_type = RAMATAN
ramatan_for_preview.dna.ear_type = LIZARD
ramatan_for_preview.dna.features["ears"] = "Ramatan"
ramatan_for_preview.dna.features["ears_color_1"] = "#ffffff"
ramatan_for_preview.dna.features["ears_color_2"] = "#dddddd"
ramatan_for_preview.dna.features["frills"] = "Ramatan"
Expand All @@ -98,7 +99,6 @@
ramatan_for_preview.dna.features["snout_color_1"] = "#ffffff"
ramatan_for_preview.dna.features["snout_color_2"] = "#dddddd"
ramatan_for_preview.dna.features["snout_color_3"] = "#9a9b9e"
ramatan_for_preview.dna.tail_type = RAMATAN
ramatan_for_preview.eye_color_left = "#CCECFF"
ramatan_for_preview.eye_color_right = "#CCECFF"
regenerate_organs(ramatan_for_preview)
Expand Down

0 comments on commit 92b9abe

Please sign in to comment.