use Sub::Exporter -setup => {
exports => [
- qw(successful_sequential_posts days_remaining_to_post)
+ qw(successful_sequential_posts days_remaining_to_post level_for_post_count)
]
};
return check_both(\&check_time_remaining, @posts);
}
+sub level_for_post_count($count) {
+ return 'paper' if $count < 4;
+ return 'stone' if $count < 12;
+ return 'bronze' if $count < 36;
+ return 'iron';
+}
+
1;