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

Spinach: Remove limit for category reroll

This commit is contained in:
Pragmatic Software 2018-04-01 14:25:13 -07:00
parent 193f3eab07
commit 8dfd015505

View File

@ -634,12 +634,8 @@ sub spinach_cmd {
$self->{state_data}->{current_category} = $self->{state_data}->{category_options}->[$arguments]; $self->{state_data}->{current_category} = $self->{state_data}->{category_options}->[$arguments];
return "/msg $self->{channel} $nick has chosen RANDOM CATEGORY! Randomly choosing category: $self->{state_data}->{current_category}!"; return "/msg $self->{channel} $nick has chosen RANDOM CATEGORY! Randomly choosing category: $self->{state_data}->{current_category}!";
} elsif ($arguments == @{$self->{state_data}->{category_options}} - 1) { } elsif ($arguments == @{$self->{state_data}->{category_options}} - 1) {
if (++$self->{state_data}->{category_rerolls} >= 3) { $self->{state_data}->{reroll_category} = 1;
return "/msg $self->{channel} $nick has chosen REROLL CATEGORIES! But they have exceeded the number of times they may reroll this turn."; return "/msg $self->{channel} $nick has chosen REROLL CATEGORIES! Rerolling categories...";
} else {
$self->{state_data}->{reroll_category} = 1;
return "/msg $self->{channel} $nick has chosen REROLL CATEGORIES! Rerolling categories...";
}
} else { } else {
$self->{state_data}->{current_category} = $self->{state_data}->{category_options}->[$arguments]; $self->{state_data}->{current_category} = $self->{state_data}->{category_options}->[$arguments];
return "/msg $self->{channel} $nick has chosen $self->{state_data}->{current_category}!"; return "/msg $self->{channel} $nick has chosen $self->{state_data}->{current_category}!";