Skip to content

Commit

Permalink
New Hair v2.4 by WP (#13523)
Browse files Browse the repository at this point in the history
* Hair v2.4

* hair v2.5

* hair v2.6 (no genders)

* Update preferences_savefile.dm

* Update preferences_savefile.dm

---------

Co-authored-by: Alexander V. <[email protected]>
  • Loading branch information
WhaleNotPower and volas authored Sep 24, 2024
1 parent 5a82681 commit 794137e
Show file tree
Hide file tree
Showing 3 changed files with 641 additions and 674 deletions.
190 changes: 189 additions & 1 deletion code/modules/client/preferences_savefile.dm
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

//This is the current version, anything below this will attempt to update (if it's not obsolete)

#define SAVEFILE_VERSION_MAX 51
#define SAVEFILE_VERSION_MAX 52

//For repetitive updates, should be the same or below SAVEFILE_VERSION_MAX
//set this to (current SAVEFILE_VERSION_MAX)+1 when you need to update:
Expand Down Expand Up @@ -277,6 +277,194 @@ SAVEFILE UPDATING/VERSIONING - 'Simplified', or rather, more coder-friendly ~Car
if(player_alt_titles && (player_alt_titles["Librarian"] in list("Journalist")))
player_alt_titles -= "Librarian"

if(current_version < 52)
var/static/list/pre_52_hairstyles_to_modern_ones = list (
"Bald" = "Bald",
"Short Hair" = "Arnold - Short",
"Short Hair 2" = "Arnold - Short",
"Cut Hair" = "Crew Cut- Super Short",
"Shoulder-length Hair" = "Hime Cut - New Fashion",
"Long Hair" = "Emo - Long",
"Long Over Eye" = "Emo - Long",
"Very Long Hair" = "Emo - Long",
"Long Fringe" = "Longe Fringe Pirat - Movie",
"Longer Fringe" = "Longe Fringe Pirat - Movie",
"Gentle" = "Gentle - Short",
"Half-banged Hair" = "Lbang - Short",
"Half-banged Hair 2" = "Lbang - Short",
"Ponytail" = "Ponytail",
"Ponytail 2" = "Ponytail 2",
"Ponytail 3" = "Ponytail 3",
"Side Pony" = "Ponytail (f)",
"Side Pony 2" = "Ponytail (f)",
"Side Pony tail" = "Ponytail (f)",
"One Shoulder" = "Side Tail - New Fashion",
"Tress Shoulder" = "Side Tail - New Fashion",
"Parted" = "Parted - Short",
"Pompadour" = "Fastline Dandy - Movie",
"Big Pompadour" = "Fastline Dandy - Movie",
"Quiff" = "Quiff - Short",
"Bedhead" = "Bedhead",
"Bedhead 2" = "Bedhead 2",
"Bedhead 3" = "Bedhead 3",
"Messy" = "Messy - Short",
"Beehive" = "Beehive",
"Bobcurl" = "Bobcurl",
"Bob" = "Bobcut",
"Bowl" = "Bowlcut",
"Buzzcut" = "Buzz Cut",
"Crewcut" = "Crew Cut - Super Short",
"Cotton Hair" = "Side Tail - New Fashion",
"Braided Hair" = "African - Long",
"African Pigtails" = "African - Long",
"Square" = "Square - Short",
"Combover" = "Cowboy - Short",
"Devil Lock" = "Devil - Super Short",
"Dreadlocks" = "Dreads - Short",
"Curls" = "Bobcurl",
"Afro" = "Afro 1 - Short",
"Afro 2" = "Afro 2 - Short",
"Big Afro" = "Afro 2 - Short",
"Flat Top" = "Flat top - Short",
"Emo" = "Demo - Short",
"Flow Hair" = "Feather 1 - Short",
"Feather" = "Feather 1 - Short",
"Hitop" = "Feather 1 - Short",
"Mohawk" = "Mohawk Randy - Movie",
"Jensen Hair" = "Feather 1 - Short",
"Gelled Back" = "Gelled - Super Short",
"Spiky" = "Spiky - Short",
"Spiky 2" = "Spiky - Short",
"Spiky 3" = "Spiky - Short",
"Slightly long" = "Slight Messy Tereza 1 - Movie",
"Kusanagi Hair" = "Gelled - Super Short",
"Kagami Hair" = "Gelled - Super Short",
"Pigtails" = "Side Tail - New Fashion",
"Pigtails 2" = "Side Tail - New Fashion",
"Hime Cut" = "Hime Cut - New Fashion",
"Ahoge" = "Bunstick",
"Low Braid" = "Braid - Long",
"High Braid" = "Braid - Long",
"Floorlength Braid" = "Bunstick",
"Odango" = "Bunstick",
"Ombre" = "Ombre - Short",
"Updo" = "Updo - Short",
"Skinhead" = "Skinhead - Super Short",
"Balding Hair" = "Skinhead - Super Short",
"Bun Head" = "Bun",
"Braided Tail" = "Braided Sanny - Movie",
"Drill Hair" = "Braided Sanny 2 - Movie",
"Keanu Hair" = "Braided Sanny 2 - Movie",
"Swept Back Hair 2" = "Braided Sanny - Movie",
"Business Hair 3" = "Business",
"Business Hair 4" = "Business 2",
"Hedgehog Hair" = "Spiky - Short",
"Bob Hair" = "Bobcut",
"Bob Hair 2" = "Bobcurl",
"Long Hair 1" = "Side Part - Long",
"Mega Eyebrows" = "Megabrows - Super Short",
"Flaired Hair" = "Braid - Long",
"Big tails" = "Wisp - Ponytail",
"Long bedhead" = "Bedhead - Long",
"Fluttershy" = "Fluttershy - Long",
"Judge" = "Judge - Long",
"Long braid" = "Braid - Long",
"Elize" = "Elize - Short",
"Elize2" = "Elize 2 - Short",
"Female undercut" = "Zorg - Short",
"Emo right" = "Zorg - Short",
"Applejack" = "Wisp - Ponytail",
"Rosa" = "Rosa - Short",
"Dave" = "Dave - Short",
"Aradia" = "Aradia - Long",
"Nepeta" = "Nepeta - Short",
"Kanaya" = "Kanaya - Short",
"Terezi" = "Slight Messy Tereza 1 - Movie",
"Vriska" = "Vriska - New Fashion",
"Equius" = "Nepeta - Short",
"Gamzee" = "Gamzee - Short",
"Feferi" = "Gamzee - Short",
"Rose" = "Rose - New Fashion",
"Ramona" = "CIA - Short",
"Dirk" = "Dirk - Short",
"Jade" = "Dirk - Short",
"Roxy" = "Roxy - Short",
"Side tail 3" = "Side Tail - New Fashion",
"Big Flat Top" = "Flat top - Short",
"Dubs Hair " = "Dubs - Short",
"Swept Back Hair" = "Dubs - Short",
"Metal" = "Mentalist - Short",
"Mentalist" = "Mentalist - Short",
"fujisaki" = "Fujiyabash - New Fashion",
"Twin Buns" = "Double Bun",
"Fujiyabashi" = "Fujiyabash - New Fashion",
"Shinibu" = "Double Bun",
"Combed Hair" = "Dad 2 - Short",
"Long Sideparts" = "Side Part - Long",
"Blunt Bangs" = "Bluntbangs - Long",
"Combed Bob" = "Dad 2 - Short",
"Long Half Shaved" = "Halfshaved - Long",
"Slightly Messed" = "Messy - Short",
"Long Gypsy" = "Gipsy - Long",
"Geisha" = "Geisha - Short",
"Hair Over Eye" = "Over Eye - New Fashion",
"Chub" = "Chub - Short",
"Ponytail female" = "Ponytail (f)",
"Wisp" = "Wisp - Ponytail",
"Half-Shaved Emo" = "Emo - Long",
"Long Hair Alt 2" = "Wild - Long",
"Bun 4" = "Double Bun 2",
"Double-Bun" = "Double Bun 3",
"Rows" = "Rows - Gang",
"Rows 2" = "Rows 2 - Gang",
"Twintail" = "Nitori - New Fashion",
"Coffee House Cut" = "Hime Cut - New Fashion",
"Overeye Very Short" = "Over Eye - New Fashion",
"Oxton" = "Oxton - Short",
"Zieglertail" = "Ziegler - Ponytail",
"Emo Fringe" = "Emo - Long",
"Poofy2" = "Poofy - Short",
"Fringetail" = "Ponytail (f)",
"Bun 3" = "Bunstick",
"Overeye Very Short, Alternate" = "Ougi - Short",
"Undercut Swept Right" = "Blackswordcut",
"Spiky Ponytail" = "Brazeska - Ponytail",
"Grande Braid" = "Braid - Long",
"Row Bun" = "Row bun - Gang",
"Row Dual Braid" = "Row bun - Gang",
"Row Braid" = "Row bun - Gang",
"Regulation Mohawk" = "Mohawk Randy - Movie",
"Topknot" = "Chao Topknot - Gang",
"Ronin" = "Jensen - Short",
"Bowl 2" = "Bowlcut",
"Manbun" = "Small Beehive",
"Country" = "Ponytail (f)",
"Ougi" = "Ougi - Short",
"Half Zingertail" = "Half Ziegler - Ponytail",
"Lbangs 2" = "Lbang - Short",
"Slight Messy 2" = "Slight Messy Tereza 2 - Movie",
"Ragby" = "Rabby - Ponytail",
"Bun 5" = "Double Bun 3",
"Maya" = "Maya - Short",
"Dolly" = "Dolly - Short",
"Longside Partstraight 2" = "Side Part 2 - Long",
"Elly" = "Elly - Short",
"Wild 1" = "Wild - Long",
"Wild 2" = "Wild Princess - Movie",
"Millenium" = "Millenium - Short",
"Feather 2" = "Feathe 2 - Short",
"Braided Hair 2" = "Braided Sanny 2 - Movie",
"Fridge" = "Fridge - Short",
"Rabby" = "Rabby - Ponytail",
"Zoey" = "Zoe - Ponytail",
"Kitty" = "Kitty - Short",
"Star" = "Star - Movie",
"Pear" = "Pear - Short",
"Spicy" = "Spicy - Short",
"Piggy" = "Piggy - Short",
)
if (pre_52_hairstyles_to_modern_ones[h_style])
h_style = pre_52_hairstyles_to_modern_ones[h_style]

//
/datum/preferences/proc/repetitive_updates_character(current_version, savefile/S)
Expand Down
Loading

0 comments on commit 794137e

Please sign in to comment.