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