-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add boosted hexes ability to accumulate multipliers
A cell can be boosted more than once. Old boosts will retain device_type of ::All. Any boost matching the device_type accumulates into the multiplier. ex: 3 boost with a multiplier of 10, will multiply by 30.
- Loading branch information
1 parent
ed652e2
commit 303aab1
Showing
2 changed files
with
114 additions
and
34 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
with this method, if there are 2x and 5x boosts on the same hex for a specific device_type, it becomes 7x boost.
for a standalone 2x boost, we're normally getting (2-1)x additional points. like the SP is paying for 1x additional points.
and for 5x boost, we're normally getting (5-1)x additional points.
so if both are active for the same hex, should not we be getting
(2-1) + (5-1) = 5
x additional points? that would make combining 2x and 5x boosts, 6x at the end.