mirror of
https://github.com/ayywrk/hardfight.git
synced 2024-11-16 12:46:37 +00:00
hall of fame only on deathmatches
This commit is contained in:
parent
69fab9980c
commit
14b171b1c3
11
src/main.rs
11
src/main.rs
@ -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!(
|
||||
|
Loading…
Reference in New Issue
Block a user