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