From 355190820dca4068f4b0dd2ef7c42c240b83c6f1 Mon Sep 17 00:00:00 2001
From: prndev <prndev@users.noreply.github.com>
Date: Tue, 1 May 2018 10:59:39 +0200
Subject: [PATCH] Generating SVG outfit suffixes from documentation now sorts
 results.

---
 artTools/game_suffixes.txt         | 85 +++++++++++++++---------------
 artTools/generate_game_suffixes.sh |  4 +-
 2 files changed, 46 insertions(+), 43 deletions(-)

diff --git a/artTools/game_suffixes.txt b/artTools/game_suffixes.txt
index 27af55c1450..b5f4080ea00 100644
--- a/artTools/game_suffixes.txt
+++ b/artTools/game_suffixes.txt
@@ -1,53 +1,54 @@
-NoClothing
-FuckdollSuit
+Apron
 AttractiveLingerie
-StringBikini
-Cutoffs
-Slutty
-UncomfortableStraps
-FallenNunsHabit
-PenitentNunsHabit
-SluttyJewelry
-HaremGauze
-SlaveGown
-SluttyBusinessAttire
-NiceBusinessAttire
-ComfortableBodysuit
-SluttyMaid
-NiceNurse
-SluttyNurse
-Schoolgirl
-Kimono
-Hijab
+AttractiveLingerie
+BallGown
 Battledress
-NiceMaid
-RestrictiveLatex
-LatexCatsuit
-MilitaryUniform
-Minidress
-ConservativeClothing
+BodyOil
+Bunny
 Chains
+ChattelHabit
 Cheerleader
 ClubslutNetting
-ShibariRopes
-WesternClothing
-BodyOil
-Toga
-SluttyQipao
+ComfortableBodysuit
+Conservative
+Cutoffs
+Cybersuit
+FallenNunsHabit
+FuckdollSuit
+HalterTopDress
+HaremGauze
+Hijab
 Huipil
-Bunny
+Kimono
+LatexCatsuit
 Leotard
-ChattelHabit
-HalterTopDress
-BallGown
-Succubus
-AttractiveLingerie
 MaternityDress
-StretchPants
-Spats
-ScalemailBikini
+MilitaryUniform
+MiniDress
 Monokini
-Apron
-Cybersuit
+NiceBusinessAttire
+NiceMaid
+NiceNurse
+No
+PenitentNunsHabit
 RedArmyUniform
+RestrictiveLatex
+ScalemailBikini
+Schoolgirl
 SchutzstaffelUniform
+ShibariRopes
+SlaveGown
+Slutty
+SluttyBusinessAttire
+SluttyJewelry
+SluttyMaid
+SluttyNurse
+SluttyQipao
+SluttySchutzstaffelUniform
+Spats
+StretchPants
+StringBikini
+Succubus
+Toga
+UncomfortableStraps
+Western
diff --git a/artTools/generate_game_suffixes.sh b/artTools/generate_game_suffixes.sh
index e2ba0179523..9740781e882 100644
--- a/artTools/generate_game_suffixes.sh
+++ b/artTools/generate_game_suffixes.sh
@@ -6,10 +6,12 @@
 # This script is meant to be executed at the project root directory.
 # This script depends on bash, grep, sed, paste and nodejs (so best executed on Linux, I guess)
 
+# grep -Porh '(?<=\.clothes = )"[^"]+"' src/ | sort | uniq # searches sources for all clothes strings actually used in the game, even undocumented ones
+
 ( 
   echo 'var window = {};'
   grep -v '^:' src/art/vector/Helper_Functions.tw
   echo -n 'Array('
   sed '/^clothes:/,/:/!d' "slave variables documentation - Pregmod.txt" | grep '"' | paste -sd,
   echo ').forEach(v => {console.log(window.clothing2artSuffix(v));});' 
-) | nodejs
+) | nodejs | sort
-- 
GitLab