1
Fork 0
mirror of https://github.com/RYGhub/royalnet.git synced 2024-11-25 12:34:19 +00:00

Consider 49 IMP and -49 IMP to be the respective awards

This matches Stratz's website behaviour.
This commit is contained in:
Steffo 2024-08-05 15:54:51 +02:00
parent e6c1962c43
commit a7a4ad06e3
Signed by: steffo
GPG key ID: 5ADA3868646C3FC0

View file

@ -538,12 +538,12 @@ impl BroochService {
log::trace!("Emojifying IMP...");
match imp {
Short::MIN..=-50 => "🟧",
-49..=-25 => "🔶",
Short::MIN..=-49 => "🟧",
-48..=-25 => "🔶",
-24..=-1 => "🔸",
0..=24 => "🔹",
25..=49 => "🔷️",
50..=Short::MAX => "🟦",
25..=48 => "🔷️",
49..=Short::MAX => "🟦",
}
}