diff --git a/lib/api.js b/lib/api.js
index f5283b03..e6c740f6 100644
--- a/lib/api.js
+++ b/lib/api.js
@@ -1,7 +1,21 @@
import fs from "fs";
-const titles = ["Sráč zelenáč", "Sráč", "Sráč mazák", "Velesráč"];
-const classes = ["srac-zelenac", "srac", "srac-mazak", "velesrac"];
+const titles = [
+ "Sráč zelenáč",
+ "Sráč",
+ "Sráč mazák",
+ "Velesráč",
+ "Megasráč",
+ "Gigasráč",
+];
+const classes = [
+ "srac-zelenac",
+ "srac",
+ "srac-mazak",
+ "velesrac",
+ "megasrac",
+ "gigasrac",
+];
const extension = ["trůn", "trůny", "trůny", "trůny", "trůnů"];
export function getData2HallOfShits() {
@@ -34,14 +48,22 @@ export function getData2HallOfShits() {
if (out[index].score == 3) out[index].extension = extension[2];
if (out[index].score == 4) out[index].extension = extension[3];
if (out[index].score == 5) out[index].extension = extension[4];
- if (out[index].score > 20) {
+ if (out[index].score >= 20) {
out[index].title = titles[2];
out[index].class = classes[2];
}
- if (out[index].score > 50) {
+ if (out[index].score >= 50) {
out[index].title = titles[3];
out[index].class = classes[3];
}
+ if (out[index].score >= 100) {
+ out[index].title = titles[4];
+ out[index].class = classes[4];
+ }
+ if (out[index].score >= 200) {
+ out[index].title = titles[5];
+ out[index].class = classes[5];
+ }
}
});
return out;
diff --git a/pages/hall.js b/pages/hall.js
index a4544cc9..68ec27f8 100644
--- a/pages/hall.js
+++ b/pages/hall.js
@@ -22,11 +22,12 @@ export default function Hall({ nickNames }) {