Open aj47 opened 1 year ago
I found the following snippets in your repository. I will now analyze these snippets and come up with a plan.
frontend/src/store.js
✅ Commit e119b99
• Add a new state "userHarvesting" with initial value as null. • Add a new function "setUserHarvesting" to update the "userHarvesting" state.Sandbox Execution Logs
trunk init
1/3 ✓⡿ Downloading Trunk 1.16.0... ⡿ Downloading Trunk 1.16.0... ⢿ Downloading Trunk 1.16.0... ⣻ Downloading Trunk 1.16.0... ⣽ Downloading Trunk 1.16.0... ⣾ Downloading Trunk 1.16.0... ⣷ Downloading Trunk 1.16.0... ⣯ Downloading Trunk 1.16.0... ⣟ Downloading Trunk 1.16.0... ⡿ Downloading Trunk 1.16.0... ⢿ Downloading Trunk 1.16.0... ⣻ Downloading Trunk 1.16.0... ⣽ Downloading Trunk 1.16.0... ⣾ Downloading Trunk 1.16.0... ✔ Downloading Trunk 1.16.0... done ⡿ Verifying Trunk sha256... ✔ Verifying Trunk sha256... done ⡿ Unpacking Trunk... ✔ Unpacking Trunk... done ✔ 11 linters were enabled (.trunk/trunk.yaml) checkov 2.4.9 (17 json, 4 yaml files) dotenv-linter 3.3.0 (1 dotenv file) git-diff-check (257 files) markdownlint 0.37.0 (3 markdown files) (created .markdownlint.yaml) osv-scanner 1.4.0 (6 lockfile files) oxipng 8.0.0 (36 png files) prettier 3.0.3 (7 css, 2 html, 53 javascript, 8 json, 3 markdown, 22 typescript, 4 yaml files) svgo 3.0.2 (18 svg files) (created svgo.config.js) trivy 0.45.1 (6 lockfile, 4 yaml files) trufflehog 3.57.0 (716 files) yamllint 1.32.0 (4 yaml files) (created .yamllint.yaml) Next Steps 1. Read documentation Our documentation can be found at https://docs.trunk.io 2. Get help and give feedback Join the Trunk community at https://slack.trunk.io
trunk fmt frontend/src/store.js
2/3 ✓✔ Formatted frontend/src/store.js Re-checking autofixed files... Checked 1 file ✔ No issues
trunk check --fix frontend/src/store.js
3/3 ✓Checked 1 file ✔ No issues
frontend/src/Components/3D/BerryTree.tsx
✅ Commit 33d12a9
• Import the "useUserStateStore" from "../../store". • Inside the "Harvest" option's onClick function, call the "setUserHarvesting" function with the objRef as the argument.Sandbox Execution Logs
trunk init
1/3 ✓⡿ Downloading Trunk 1.16.0... ⡿ Downloading Trunk 1.16.0... ⢿ Downloading Trunk 1.16.0... ⣻ Downloading Trunk 1.16.0... ⣽ Downloading Trunk 1.16.0... ⣾ Downloading Trunk 1.16.0... ⣷ Downloading Trunk 1.16.0... ⣯ Downloading Trunk 1.16.0... ⣟ Downloading Trunk 1.16.0... ⡿ Downloading Trunk 1.16.0... ⢿ Downloading Trunk 1.16.0... ⣻ Downloading Trunk 1.16.0... ⣽ Downloading Trunk 1.16.0... ⣾ Downloading Trunk 1.16.0... ✔ Downloading Trunk 1.16.0... done ⡿ Verifying Trunk sha256... ✔ Verifying Trunk sha256... done ⡿ Unpacking Trunk... ✔ Unpacking Trunk... done ✔ 11 linters were enabled (.trunk/trunk.yaml) checkov 2.4.9 (17 json, 4 yaml files) dotenv-linter 3.3.0 (1 dotenv file) git-diff-check (257 files) markdownlint 0.37.0 (3 markdown files) (created .markdownlint.yaml) osv-scanner 1.4.0 (6 lockfile files) oxipng 8.0.0 (36 png files) prettier 3.0.3 (7 css, 2 html, 53 javascript, 8 json, 3 markdown, 22 typescript, 4 yaml files) svgo 3.0.2 (18 svg files) (created svgo.config.js) trivy 0.45.1 (6 lockfile, 4 yaml files) trufflehog 3.57.0 (716 files) yamllint 1.32.0 (4 yaml files) (created .yamllint.yaml) Next Steps 1. Read documentation Our documentation can be found at https://docs.trunk.io 2. Get help and give feedback Join the Trunk community at https://slack.trunk.io
trunk fmt frontend/src/Components/3D/BerryTree.tsx
2/3 ✓✔ Formatted frontend/src/Components/3D/BerryTree.tsx Re-checking autofixed files... Checked 1 file ✔ No issues
trunk check --fix frontend/src/Components/3D/BerryTree.tsx
3/3 ✓Checked 1 file ✔ No issues
frontend/src/Components/3D/PlayerController.tsx
✅ Commit 2b29ada
• Get the "userHarvesting" state using the "useUserStateStore" hook. • In the "onPositionUpdate" function, add a new condition to check if "userHarvesting" is true. • If "userHarvesting" is true and the player character is in range of the BerryTree, play the "RightHook" animation.Sandbox Execution Logs
trunk init
1/3 ✓⡿ Downloading Trunk 1.16.0... ⡿ Downloading Trunk 1.16.0... ⢿ Downloading Trunk 1.16.0... ⣻ Downloading Trunk 1.16.0... ⣽ Downloading Trunk 1.16.0... ⣾ Downloading Trunk 1.16.0... ⣷ Downloading Trunk 1.16.0... ⣯ Downloading Trunk 1.16.0... ⣟ Downloading Trunk 1.16.0... ⡿ Downloading Trunk 1.16.0... ⢿ Downloading Trunk 1.16.0... ⣻ Downloading Trunk 1.16.0... ⣽ Downloading Trunk 1.16.0... ⣾ Downloading Trunk 1.16.0... ✔ Downloading Trunk 1.16.0... done ⡿ Verifying Trunk sha256... ✔ Verifying Trunk sha256... done ⡿ Unpacking Trunk... ✔ Unpacking Trunk... done ✔ 11 linters were enabled (.trunk/trunk.yaml) checkov 2.4.9 (17 json, 4 yaml files) dotenv-linter 3.3.0 (1 dotenv file) git-diff-check (257 files) markdownlint 0.37.0 (3 markdown files) (created .markdownlint.yaml) osv-scanner 1.4.0 (6 lockfile files) oxipng 8.0.0 (36 png files) prettier 3.0.3 (7 css, 2 html, 53 javascript, 8 json, 3 markdown, 22 typescript, 4 yaml files) svgo 3.0.2 (18 svg files) (created svgo.config.js) trivy 0.45.1 (6 lockfile, 4 yaml files) trufflehog 3.57.0 (716 files) yamllint 1.32.0 (4 yaml files) (created .yamllint.yaml) Next Steps 1. Read documentation Our documentation can be found at https://docs.trunk.io 2. Get help and give feedback Join the Trunk community at https://slack.trunk.io
trunk fmt frontend/src/Components/3D/PlayerController.tsx
2/3 ✓✔ Formatted frontend/src/Components/3D/PlayerController.tsx Re-checking autofixed files... Checked 1 file ✔ No issues
trunk check --fix frontend/src/Components/3D/PlayerController.tsx
3/3 ✓Checked 1 file ✔ No issues
I have finished reviewing the code for completeness. I did not find errors for sweep/harvest-animation_1
.
.
🎉 Latest improvements to Sweep:
💡 To recreate the pull request edit the issue title or description. To tweak the pull request, leave a comment on the pull request. Join Our Discord
Checklist
- [X] `frontend/src/store.js` ✅ Commit [`e119b99`](https://github.com/aj47/berigame/commit/e119b99a6d6f46742de5155276da36d4267d762a) - [X] `frontend/src/Components/3D/BerryTree.tsx` ✅ Commit [`33d12a9`](https://github.com/aj47/berigame/commit/33d12a9e7e66ba9051d478b2c3082eb1845a2363) - [X] `frontend/src/Components/3D/PlayerController.tsx` ✅ Commit [`2b29ada`](https://github.com/aj47/berigame/commit/2b29adaeeab7eec0b33d2667e32497d82eb6ee4a)