3
0
mirror of https://github.com/pragma-/pbot.git synced 2024-11-06 20:19:33 +01:00

Spinach: clean up debug statements

This commit is contained in:
Pragmatic Software 2018-02-14 22:17:58 -08:00
parent c3049e7528
commit bed111dbc4

View File

@ -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) {