mirror of
https://github.com/pragma-/pbot.git
synced 2025-01-11 20:42:38 +01:00
Spinach: Reveal answer when skipping/rerolling
This commit is contained in:
parent
7dbaa0b6c3
commit
ed774ac379
@ -1903,6 +1903,8 @@ sub getlies {
|
|||||||
$needed -= @rerolls;
|
$needed -= @rerolls;
|
||||||
if ($needed <= 0) {
|
if ($needed <= 0) {
|
||||||
$state->{reroll_question} = 1;
|
$state->{reroll_question} = 1;
|
||||||
|
my $answer = uc $state->{current_question}->{answer};
|
||||||
|
$self->send_message($self->{channel}, "The answer was: $answer");
|
||||||
return 'reroll';
|
return 'reroll';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -1911,6 +1913,8 @@ sub getlies {
|
|||||||
my $needed = int (@{$state->{players}} / 2) + 1;
|
my $needed = int (@{$state->{players}} / 2) + 1;
|
||||||
$needed += @keeps;
|
$needed += @keeps;
|
||||||
$needed -= @skips;
|
$needed -= @skips;
|
||||||
|
my $answer = uc $state->{current_question}->{answer};
|
||||||
|
$self->send_message($self->{channel}, "The answer was: $answer");
|
||||||
return 'skip' if $needed <= 0;
|
return 'skip' if $needed <= 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user