mirror of
https://github.com/pragma-/pbot.git
synced 2024-12-24 11:42:35 +01:00
Spinach: clean up debug statements
This commit is contained in:
parent
c3049e7528
commit
bed111dbc4
@ -552,8 +552,8 @@ sub spinach_cmd {
|
|||||||
|
|
||||||
my $needed = ceil (@{$self->{state_data}->{players}} / 2);
|
my $needed = ceil (@{$self->{state_data}->{players}} / 2);
|
||||||
$needed -= $skipped;
|
$needed -= $skipped;
|
||||||
my $votes_needed;
|
|
||||||
|
|
||||||
|
my $votes_needed;
|
||||||
if ($needed == 1) {
|
if ($needed == 1) {
|
||||||
$votes_needed = "$needed more vote to skip!";
|
$votes_needed = "$needed more vote to skip!";
|
||||||
} elsif ($needed > 1) {
|
} elsif ($needed > 1) {
|
||||||
@ -1397,13 +1397,8 @@ sub getlies {
|
|||||||
|
|
||||||
if (@skips) {
|
if (@skips) {
|
||||||
my $needed = ceil (@{$state->{players}} / 2);
|
my $needed = ceil (@{$state->{players}} / 2);
|
||||||
$self->{pbot}->{logger}->log("getlies: needed: $needed, skips: " . (scalar @skips) . "\n");
|
|
||||||
$needed -= @skips;
|
$needed -= @skips;
|
||||||
$self->{pbot}->{logger}->log("getlies: needed after: $needed\n");
|
return 'skip' if $needed <= 0;
|
||||||
|
|
||||||
if ($needed <= 0) {
|
|
||||||
return 'skip';
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($state->{ticks} % $tock == 0) {
|
if ($state->{ticks} % $tock == 0) {
|
||||||
|
Loading…
Reference in New Issue
Block a user