mirror of
https://github.com/HbmMods/Hbm-s-Nuclear-Tech-GIT.git
synced 2026-02-24 06:50:46 +00:00
Merge pull request #315 from TehTemmie/patch-1
Reworked radiation math with the reacher equipped
This commit is contained in:
commit
414cca55af
@ -34,7 +34,7 @@ public class HazardTypeRadiation extends HazardTypeBase {
|
|||||||
float rad = level / 20F;
|
float rad = level / 20F;
|
||||||
|
|
||||||
if(reacher)
|
if(reacher)
|
||||||
rad = (float) Math.min(Math.sqrt(rad), rad); //to prevent radiation from going up when being <1
|
rad = (float) Math.sqrt(rad + 1F / ((rad + 2F) * (rad + 2F))) - 1F / (rad + 2F); //Reworked radiation function: sqrt(x+1/(x+2)^2)-1/(x+2)
|
||||||
|
|
||||||
ContaminationUtil.contaminate(target, HazardType.RADIATION, ContaminationType.CREATIVE, rad);
|
ContaminationUtil.contaminate(target, HazardType.RADIATION, ContaminationType.CREATIVE, rad);
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user