1
Fork 0
mirror of https://github.com/RYGhub/royalnet.git synced 2024-11-22 02:54:21 +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..."); log::trace!("Emojifying IMP...");
match imp { match imp {
Short::MIN..=-50 => "🟧", Short::MIN..=-49 => "🟧",
-49..=-25 => "🔶", -48..=-25 => "🔶",
-24..=-1 => "🔸", -24..=-1 => "🔸",
0..=24 => "🔹", 0..=24 => "🔹",
25..=49 => "🔷️", 25..=48 => "🔷️",
50..=Short::MAX => "🟦", 49..=Short::MAX => "🟦",
} }
} }