✨ Add ToggleSwitch component & Giant Arrow logic #10
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
With the introduction of the Giant Arrow many clashers might want to use a combination of zaps and quakes, in conjunction with the Giant Arrow, to take down important structures of an enemy base.
This MR adds the optional functionality for calculating zapquakes in conjunction with the Giant Arrow.
This functionality is off by default.
Features
Additional information
With the December 2023 update Clash of Clans introduced Hero Equipment.
One of the Archer Queen's Equipment pieces is the Giant Arrow.
When activated the Giant Arrow flies in a straight path across the base and damages everything along its path.
The Giant Arrow can be especially useful for removing or damaging key defenses. While the Giant Arrow does quite a lot of damage on its own many buildings will need additional zaps and/or quakes to be taken down.
https://clashofclans.fandom.com/wiki/Giant_Arrow
Comments
I don't have any prior experience with React or Tailwind so some solutions might be suboptimal.
The Toggle Switch is fine, but could be designed in a nicer way.
There might be a more intuitive / overall better solution for turning on and off the Giant Arrow functionality.