hall of fame only on deathmatches

This commit is contained in:
wrk 2023-06-10 02:06:37 +02:00
parent 69fab9980c
commit 14b171b1c3

View File

@ -327,7 +327,9 @@ fn fight(
.text(" <- !")
.to_string(),
);
hall_of_fame.add_winner(&winners[0].nick);
if fight.kind == FightKind::DeathMatch {
hall_of_fame.add_winner(&winners[0].nick);
}
} else {
ctx.privmsg(
&fight.channel,
@ -349,7 +351,9 @@ fn fight(
.text(" <-")
.to_string(),
);
hall_of_fame.add_winner(&w.nick);
if fight.kind == FightKind::DeathMatch {
hall_of_fame.add_winner(&w.nick);
}
}
}
@ -445,10 +449,11 @@ fn fight(
.text(" is lying dead!")
.to_string(),
);
hall_of_fame.add_fucking_looser(&fucking_victim.nick);
ctx.mode(&fight.channel, &format!("-v {}", fucking_victim.nick));
if fight.kind == FightKind::DeathMatch {
hall_of_fame.add_fucking_looser(&fucking_victim.nick);
ctx.privmsg(
"ChanServ",
&format!(