Closed btmeadows closed 3 years ago
Hi, thanks a lot for the contribution, for the next steps you need to
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)
Don't hesitate if you have questions
Superseeded by #235
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!)