added new radioactive hazard effect, langs

This commit is contained in:
Pyritie 2026-01-04 23:59:55 +00:00
parent 451441f4ca
commit 434a36d0b8
22 changed files with 243 additions and 188 deletions

View file

@ -231,7 +231,11 @@ global.GTCEU_DISABLED_ITEMS = /** @type {const} */ ([
"gtceu:thorium_plate",
"gtceu:double_thorium_plate",
"gtceu:thorium_rod",
"gtceu:thorium_bucket"
"gtceu:thorium_bucket",
// Replaced with our own
"gtceu:paracetamol_pill",
"gtceu:rad_away_pill"
]);
//#endregion

View file

@ -12,6 +12,7 @@ const registerGTCEuMaterialModification = (event) => {
const $ITEM_PIPE_PROPERTY = Java.loadClass('com.gregtechceu.gtceu.api.data.chemical.material.properties.ItemPipeProperties')
const $FLUID_PIPE_PROPERTY = Java.loadClass('com.gregtechceu.gtceu.api.data.chemical.material.properties.FluidPipeProperties')
const $HAZARD_PROPERTY = Java.loadClass('com.gregtechceu.gtceu.api.data.chemical.material.properties.HazardProperty')
const $TFGT_MEDICAL_CONDITIONS = Java.loadClass('su.terrafirmagreg.core.common.data.tfgt.TFGTMedicalConditions')
const $MATERIAL_FLAGS = Java.loadClass('com.gregtechceu.gtceu.api.data.chemical.material.info.MaterialFlags')
@ -368,7 +369,7 @@ const registerGTCEuMaterialModification = (event) => {
GTMaterials.Cobaltite.setProperty(PropertyKey.HAZARD, new $HAZARD_PROPERTY($HAZARD_PROPERTY.HazardTrigger.INHALATION, GTMedicalConditions.ARSENICOSIS, 1, false));
GTMaterials.Galena.setProperty(PropertyKey.HAZARD, new $HAZARD_PROPERTY($HAZARD_PROPERTY.HazardTrigger.INHALATION, GTMedicalConditions.WEAK_POISON, 1, false));
GTMaterials.Chromite.setProperty(PropertyKey.HAZARD, new $HAZARD_PROPERTY($HAZARD_PROPERTY.HazardTrigger.SKIN_CONTACT, GTMedicalConditions.IRRITANT, 1, false));
GTMaterials.Thorium.setProperty(PropertyKey.HAZARD, new $HAZARD_PROPERTY($HAZARD_PROPERTY.HazardTrigger.ANY, GTMedicalConditions.CARCINOGEN, 1, true));
GTMaterials.Thorium.setProperty(PropertyKey.HAZARD, new $HAZARD_PROPERTY($HAZARD_PROPERTY.HazardTrigger.ANY, $TFGT_MEDICAL_CONDITIONS.RADIOACTIVE, 1, true));
// This contains hazardous elements so GT tags it as hazardous automatically
GTMaterials.get('ostrum').getProperties().removeProperty(PropertyKey.HAZARD);
@ -460,4 +461,5 @@ const registerGTCEuMaterialModification = (event) => {
GTMaterials.GraniteRed.setComponents([])
GTMaterials.GraniteRed.setFormula("?")
GTMaterials.Thorium.setFormula('ThO2')
GTMaterials.Americium.setFormula('Am²⁴³')
}