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:
parent
193f3eab07
commit
8dfd015505
@ -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) {
|
|
||||||
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;
|
$self->{state_data}->{reroll_category} = 1;
|
||||||
return "/msg $self->{channel} $nick has chosen REROLL CATEGORIES! Rerolling categories...";
|
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}!";
|
||||||
|
Loading…
Reference in New Issue
Block a user