Skip to content

Commit

Permalink
bruh
Browse files Browse the repository at this point in the history
  • Loading branch information
face-hh committed Feb 5, 2024
1 parent 73ba8f8 commit 9468d1b
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ While running your code, you have a 10% of being interrupted by a spinning wheel
- Dude I'm stuck at...
- The `tasks/` folder contains the solutions for each problem. Please peek at it only if you REALLY can't figure out the answers.
- Why did my `main.ts` get deleted??
- Once your solution passes, it is moved to `.history/{0..100000}main.ts`. The active file however get's rewritten with the boilerplate for the next problem.
- Once your solution passes, it is moved to `history/{0..100000}main.ts`. The active file however get's rewritten with the boilerplate for the next problem.
- How do I get money?
- The prices are designed to revolve around giving you exactly how much you need for the feature required in the next problem, and so on. If you've spent money on a feature you don't need, you can go in `/src/data/savedata.json` and modify the "money" property. It isn't recommended as it may alter your gaming experience. Otherwise, you can get money from *problems* and *battlepass*.
- How is the BP XP calculated?
Expand Down
4 changes: 2 additions & 2 deletions src/checker.rs
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ pub fn index_to_battlepass_tier(save_file: &SaveFile, index: i64) -> Option<Batt
}

pub fn check(mut contents: String, current_problem: &Problem) -> bool {
let file_path = ".dump/mutated.ts";
let file_path = "dump/mutated.ts";
let help_funcs = r"/** INJECTED BY SUBTERFUGE */
function __arraysEqual(arr1, arr2) {
Expand All @@ -36,7 +36,7 @@ pub fn check(mut contents: String, current_problem: &Problem) -> bool {

match file {
Err(err) => {
create_dir_all(".dump")
create_dir_all("dump")
}
Ok(_) => {},
}
Expand Down
2 changes: 1 addition & 1 deletion src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -271,7 +271,7 @@ fn update_field(field: &str, value: bool) {
fs::write(file_path, updated_json_string).unwrap();
}
fn move_file(problem: Problem, file_path: &String) {
let _ = fs::copy(file_path, ".history/".to_owned() + &rand::thread_rng().gen_range(10..10000).to_string() + file_path);
let _ = fs::copy(file_path, "history/".to_owned() + &rand::thread_rng().gen_range(10..10000).to_string() + file_path);

let _ = fs::write(
file_path,
Expand Down

0 comments on commit 9468d1b

Please sign in to comment.