Skip to content

Commit

Permalink
ssr sub ramdom max
Browse files Browse the repository at this point in the history
  • Loading branch information
esdeathlove committed Jun 5, 2017
1 parent 079b326 commit e931fe8
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -721,6 +721,7 @@ final class ProfileManagerActivity extends AppCompatActivity with OnMenuItemClic
limit_num = response_string.split("\\n")(0).split("MAX=")(1).replaceAll("\\D+","").toInt
}
var profiles_ssr = Parser.findAll_ssr(response_string)
profiles_ssr = scala.util.Random.shuffle(profiles_ssr)
profiles_ssr.foreach((profile: Profile) => {
if (encounter_num < limit_num && limit_num != -1 || limit_num == -1) {
val result = app.profileManager.createProfile_sub(profile)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@ class SSRSubUpdateJob() extends Job {
limit_num = response_string.split("\\n")(0).split("MAX=")(1).replaceAll("\\D+","").toInt
}
var profiles_ssr = Parser.findAll_ssr(response_string)
profiles_ssr = scala.util.Random.shuffle(profiles_ssr)
profiles_ssr.foreach((profile: Profile) => {
if (encounter_num < limit_num && limit_num != -1 || limit_num == -1) {
val result_id = app.profileManager.createProfile_sub(profile)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,7 @@ object SSRSubUpdate {
limit_num = response_string.split("\\n")(0).split("MAX=")(1).replaceAll("\\D+","").toInt
}
var profiles_ssr = Parser.findAll_ssr(response_string)
profiles_ssr = scala.util.Random.shuffle(profiles_ssr)
profiles_ssr.foreach((profile: Profile) => {
if (encounter_num < limit_num && limit_num != -1 || limit_num == -1) {
val result_id = app.profileManager.createProfile_sub(profile)
Expand Down

0 comments on commit e931fe8

Please sign in to comment.