forked from ParadiseSS13/Paradise
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adds more skintones and tweaks existing ones. (ParadiseSS13#22765)
* skintones babey * adds a note for anyone adding skintones * shortens the skin menu * conflict fix PLEASE. adjusted shading * Update code/modules/client/preference/link_processing.dm Co-authored-by: Luc <[email protected]> * lewcc suggestion * SQL update script --------- Co-authored-by: Luc <[email protected]>
- Loading branch information
Showing
10 changed files
with
53 additions
and
19 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
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
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,26 @@ | ||
CREATE TEMPORARY TABLE characters_temp ( | ||
id INT, | ||
new_skintone INT | ||
) ENGINE=MEMORY; | ||
|
||
INSERT INTO characters_temp (id, new_skintone) | ||
SELECT | ||
id, | ||
CASE | ||
WHEN skin_tone = 1 THEN 1 | ||
WHEN skin_tone = 2 THEN 13 | ||
WHEN skin_tone = 3 THEN 12 | ||
WHEN skin_tone = 4 THEN 4 | ||
WHEN skin_tone = 5 THEN 2 | ||
WHEN skin_tone = 6 THEN 6 | ||
WHEN skin_tone = 7 THEN 3 | ||
WHEN skin_tone = 8 THEN 5 | ||
ELSE 1 | ||
END AS st | ||
FROM characters; | ||
|
||
UPDATE characters, characters_temp | ||
SET characters.skin_tone = characters_temp.new_skintone | ||
WHERE characters.id = characters_temp.id; | ||
|
||
DROP TABLE characters_temp; |