Skip to content

Commit

Permalink
add rocksmash to seed tool
Browse files Browse the repository at this point in the history
  • Loading branch information
E-Sh4rk committed Oct 5, 2024
1 parent 695d204 commit 883c062
Showing 1 changed file with 13 additions and 5 deletions.
18 changes: 13 additions & 5 deletions Main/seed_tools_common.ml
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,10 @@ and main_1 fmt str =
Format.fprintf fmt "To determine the seed to use with the PRNG stall ACE code, please enter your method:@." ;
Format.fprintf fmt "1. Method H1 (wild pokemon) using sweet scent.@." ;
Format.fprintf fmt "2. Method H1 (wild pokemon) using a rod.@." ;
Format.fprintf fmt "3. Method 1 (stationnary pokemon).@." ;
Format.fprintf fmt "4. Other (show all the seeds in the vicinity).@." ;
Format.fprintf fmt "5. Choose another target seed.@." ;
Format.fprintf fmt "3. Method H1 (wild pokemon) using rock smash.@." ;
Format.fprintf fmt "4. Method 1 (stationnary pokemon).@." ;
Format.fprintf fmt "5. Other (show all the seeds in the vicinity).@." ;
Format.fprintf fmt "6. Choose another target seed.@." ;
Cont (main_2 seed)

and show_vicinity fmt print_cycle seed start stop =
Expand All @@ -58,13 +59,20 @@ and main_2 seed fmt str =
Format.fprintf fmt "3. I will be fishing for feebas on a feebas tile.@." ;
Cont (main_4 seed)
| "3" ->
let delay = 3 in
let seed' = iter prev_seed delay seed in
Format.fprintf fmt "You should use the seed %#lx (%n cycle(s) before your target).@." seed' delay ;
Format.fprintf fmt "You should use rock smash directly after triggering the ACE," ;
Format.fprintf fmt " without closing the pokemon menu.@." ;
NoCont
| "4" ->
Format.fprintf fmt "Please select the pokemon you want:@." ;
stationnary |> List.iteri (fun i (name,_,_) ->
Format.fprintf fmt "%i. %s@." (i+1) name
) ;
Format.fprintf fmt "%i. Other@." ((List.length stationnary) + 1) ;
Cont (main_5 seed)
| "4" ->
| "5" ->
Format.fprintf fmt "Please enter the range (example: -25 5):@." ;
Cont (main_vicinity seed)
| _ -> NoCont
Expand All @@ -77,7 +85,7 @@ and main_vicinity seed fmt str =
and main_3 seed fmt str =
let delay =
match str with
| "1" -> 4
| "1" -> 3 (* Also reported as 4 ? *)
| "2" -> 2
| "3" -> 3
| _ -> failwith "Unknown answer."
Expand Down

0 comments on commit 883c062

Please sign in to comment.