Merge pull request #74 from Kak2X/patch-1

adding namecolor entry
This commit is contained in:
Xkeeper
2021-06-18 18:13:03 -07:00
committed by GitHub

View File

@@ -243,7 +243,10 @@
$sql->query("UPDATE `users` SET `sex` = '22' WHERE `id` = 20"); #nicole $sql->query("UPDATE `users` SET `sex` = '22' WHERE `id` = 20"); #nicole
$sql->query("UPDATE `users` SET `sex` = '23' WHERE `id` = 50"); #Rena $sql->query("UPDATE `users` SET `sex` = '23' WHERE `id` = 50"); #Rena
$sql->query("UPDATE `users` SET `sex` = '24' WHERE `id` = 2069"); #Adelheid/Stark/etc. $sql->query("UPDATE `users` SET `sex` = '24' WHERE `id` = 2069"); #Adelheid/Stark/etc.
// So I can switch between Schezo/Witch colors myself :D
$kakcol = filter_bool($_GET['witch_colors']) ? 96 : 25;
$sql->query("UPDATE `users` SET `sex` = '{$kakcol}' WHERE `id` = 2889"); #Kak
$sql->query("UPDATE `users` SET `name` = 'Xkeeper' WHERE `id` = 1"); #Xkeeper. (Change this and I WILL Z-Line you from Badnik for a week.) $sql->query("UPDATE `users` SET `name` = 'Xkeeper' WHERE `id` = 1"); #Xkeeper. (Change this and I WILL Z-Line you from Badnik for a week.)
} }
@@ -880,6 +883,8 @@ function getnamecolor($sex, $powl, $prefix = true){
$namecolor .= "77ECFF"; break; $namecolor .= "77ECFF"; break;
case 24: // Adelheid case 24: // Adelheid
$namecolor .= "D2A6E1"; break; $namecolor .= "D2A6E1"; break;
case 25: // Kak - Schezo
$namecolor .= "D8E8FE"; break;
case 41: case 41:
$namecolor .= "8a5231"; break; $namecolor .= "8a5231"; break;
case 42: case 42:
@@ -890,6 +895,8 @@ function getnamecolor($sex, $powl, $prefix = true){
$namecolor .= $nmcol[0][3]; break; $namecolor .= $nmcol[0][3]; break;
case 97: case 97:
$namecolor .= "6600DD"; break; $namecolor .= "6600DD"; break;
case 96: // Kak - Witch
$namecolor .= $nmcol[2][3]; break; // Make it readable in case the user has a light theme
default: default:
$namecolor .= $nmcol[$sex][$powl]; $namecolor .= $nmcol[$sex][$powl];
break; break;