z_mirror/Krastorio2
git clone https://git.raiguard.me/z_mirror/Krastorio2
5cb376ce
real-fusion-reactor
1local compatibility ={} 2 3function compatibility . aai_industry () 4-- Disable AAI industry crash site 5if script . active_mods [ "aai-industry" ] then 6remote . add_interface ( "kr-to-aai-industry" , { 7allow_aai_crash_sequence =function ( _ ) 8return { allow =false , weight =1 } 9end , 10} ) 11end 12end 13 14function compatibility . disco_science () 15if 16game . active_mods [ "DiscoScience" ] 17and remote . interfaces [ "DiscoScience" ] 18and remote . interfaces [ "DiscoScience" ][ "setIngredientColor" ] 19then 20remote . call ( "DiscoScience" , "setIngredientColor" , "kr-basic-tech-card" , { r =0.823 , g =0.411 , b =0.117 } ) 21end 22end 23 24function compatibility . nuclear_fuel () 25if game . active_mods [ "Nuclear Fuel" ] then 26remote . call ( "kr-radioactivity" , "add_item" , "breeder-fuel-cell" ) 27remote . call ( "kr-radioactivity" , "add_item" , "plutonium" ) 28remote . call ( "kr-radioactivity" , "add_item" , "used-up-breeder-fuel-cell" ) 29end 30end 31 32function compatibility . schall_uranium () 33if script . active_mods [ "SchallUraniumProcessing" ] then 34remote . call ( "kr-radioactivity" , "add_item" , "uranium-concentrate" ) 35remote . call ( "kr-radioactivity" , "add_item" , "uranium-low-enriched" ) 36end 37end 38 39function compatibility . should_build_pump () 40if prototypes . entity [ "kr-electric-offshore-pump" ] then 41return true 42end 43return false 44end 45 46return compatibility