You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
(This is my first pull request so I wanted to keep it small with just a basic outline for the hardware so I know if I'm doing everything correctly. Please tell me if I need to change anything or what more I could do!)
Hi, thanks a lot for the contribution, for the next steps you need to
Create a method that returns a list of tiles or (x,y) coordinates in a line segment between two points.
Create a method that calculates the Euclidean distance between two points
Classes that implement the Radioactive interface must have a getAlphaCounts(distance), which returns the total counts of alpha particles based on the distance. The formula right now is not that important but it should follow inverse square law
The radiation detection hardware iterates every Entity in the current World, if the entity is Radioactive, get the path between the Cubot and the entity (1), subtract a constant from the getAlphaCounts(distance) value for each blocked tile in the path. Finally, return the total value (same thing for beta and gamma)
This file contains hidden or 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
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.
Added radiation detector hardware to the radioactive cloud plugin.
This is not complete and still a work in progress.
Relates to Issue #136
(This is my first pull request so I wanted to keep it small with just a basic outline for the hardware so I know if I'm doing everything correctly. Please tell me if I need to change anything or what more I could do!)