mirror of
https://github.com/pragma-/pbot.git
synced 2024-11-30 07:59:42 +01:00
Spinach: Remove limit for category reroll
This commit is contained in:
parent
193f3eab07
commit
8dfd015505
@ -634,12 +634,8 @@ sub spinach_cmd {
|
||||
$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}!";
|
||||
} elsif ($arguments == @{$self->{state_data}->{category_options}} - 1) {
|
||||
if (++$self->{state_data}->{category_rerolls} >= 3) {
|
||||
return "/msg $self->{channel} $nick has chosen REROLL CATEGORIES! But they have exceeded the number of times they may reroll this turn.";
|
||||
} else {
|
||||
$self->{state_data}->{reroll_category} = 1;
|
||||
return "/msg $self->{channel} $nick has chosen REROLL CATEGORIES! Rerolling categories...";
|
||||
}
|
||||
$self->{state_data}->{reroll_category} = 1;
|
||||
return "/msg $self->{channel} $nick has chosen REROLL CATEGORIES! Rerolling categories...";
|
||||
} else {
|
||||
$self->{state_data}->{current_category} = $self->{state_data}->{category_options}->[$arguments];
|
||||
return "/msg $self->{channel} $nick has chosen $self->{state_data}->{current_category}!";
|
||||
|
Loading…
Reference in New Issue
Block a user