-
Notifications
You must be signed in to change notification settings - Fork 287
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
lightning storm updates #5436
lightning storm updates #5436
Conversation
kuronekochomusuke
commented
Apr 29, 2024
•
edited
Loading
edited
- update lightning storm effects
- resolve end turn lightning storm damage
- option to target units
This looks awesome and fun |
what do you think about a option to randomly hit a spot containing a unit? I implemented it as a random hex on the board, and with a large map it is not likely to hit anything. the rule says using any manner the players agree on for the locations. |
I like it. Mechs as lightning rods. |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #5436 +/- ##
============================================
- Coverage 29.07% 29.07% -0.01%
- Complexity 13971 13973 +2
============================================
Files 2601 2601
Lines 267426 267493 +67
Branches 47744 47761 +17
============================================
+ Hits 77766 77769 +3
- Misses 185763 185827 +64
Partials 3897 3897 ☔ View full report in Codecov by Sentry. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
please see the comments
} | ||
|
||
List<Entity> hitEntities = game.getEntitiesVector().stream() | ||
.filter(e -> e.getPosition().equals(coords) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
getPosition can return null, better turn this comparison around
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
also, should the lightning storm disregard offboard units?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why not gun emplacements?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
by default it only targets a on board hexes.
adding off board hexes would make hitting anything very rare, since you can have units sheets away from the main board.
if you use the option to target units, it will target off board units also if they have a posiition.
for gun emplacements I was thinking the building takes the damage. that is what it looks like it does for other damage types.
Let me know if the changes are done. Aiming to get some merged in for the nightly. |
it is done |