mirror of
https://github.com/HbmMods/Hbm-s-Nuclear-Tech-GIT.git
synced 2026-01-25 10:32:49 +00:00
commit
bfdd790faf
@ -526,7 +526,7 @@ public class HazardRegistry {
|
||||
HazardData data = new HazardData();
|
||||
data.addEntry(new HazardEntry(RADIATION, base).addMod(new HazardModifierRTGRadiation(target)));
|
||||
if(hot > 0) data.addEntry(new HazardEntry(HOT, hot));
|
||||
if(blinding > 0) data.addEntry(new HazardEntry(BLINDING, hot));
|
||||
if(blinding > 0) data.addEntry(new HazardEntry(BLINDING, blinding));
|
||||
HazardSystem.register(pellet, data);
|
||||
}
|
||||
|
||||
|
||||
@ -64,9 +64,9 @@ public class ItemPlateFuel extends ItemFuelRod {
|
||||
|
||||
switch(this.function) {
|
||||
case LOGARITHM: return (int) (Math.log10(flux + 1) * 0.5D * reactivity);
|
||||
case SQUARE_ROOT: return (int) (Math.sqrt(flux) * this.reactivity / 10);
|
||||
case NEGATIVE_QUADRATIC: return (int) (Math.max(flux - (flux * flux / 10000) / 100 * reactivity, 0));
|
||||
case LINEAR: return (int) (flux / 100 * reactivity);
|
||||
case SQUARE_ROOT: return (int) (Math.sqrt(flux) * this.reactivity / 10D);
|
||||
case NEGATIVE_QUADRATIC: return (int) (Math.max((flux - (flux * flux / 10000D)) / 100D * reactivity, 0));
|
||||
case LINEAR: return (int) (flux / 100D * reactivity);
|
||||
case PASSIVE:
|
||||
setLifeTime(stack, getLifeTime(stack) + reactivity);
|
||||
return reactivity;
|
||||
|
||||
@ -239,7 +239,7 @@ public class ItemRBMKRod extends Item {
|
||||
case PASSIVE: return selfRate * enrichment;
|
||||
case LOG_TEN: return Math.log10(flux + 1) * 0.5D * reactivity;
|
||||
case PLATEU: return (1 - Math.pow(Math.E, -flux / 25D)) * reactivity;
|
||||
case ARCH: return Math.max(flux - (flux * flux / 10000D) / 100D * reactivity, 0D);
|
||||
case ARCH: return Math.max((flux - (flux * flux / 10000D)) / 100D * reactivity, 0D);
|
||||
case SIGMOID: return reactivity / (1 + Math.pow(Math.E, -(flux - 50D) / 10D));
|
||||
case SQUARE_ROOT: return Math.sqrt(flux) * reactivity / 10D;
|
||||
case LINEAR: return flux / 100D * reactivity;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user