mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-01-12 02:22:11 +00:00
* 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 <89928798+lewcc@users.noreply.github.com> * lewcc suggestion * SQL update script --------- Co-authored-by: Luc <89928798+lewcc@users.noreply.github.com>
27 lines
577 B
SQL
27 lines
577 B
SQL
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;
|