/
githubmirror
/
vgstation13
Обзор
Документация
Войти
/
githubmirror
/
vgstation13
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
Bleeding-Edge
code/modules/reagents/fission.dm
38 строк
2 KB
CrazyAmphibian
equalizone bug fix and general fission reagent tweak (#38789)
04 янв 2026, 00:05
Не верифицирован
04 янв 2026, 00:05
79a7f8f
Код
Авторство
О чём код?
/datum/reagent/proc/irradiate(var/list/current_reagents=null) //called when getting products in the fission reactor. The first param is a list of the reactor's current fuel (normalized so it sums to 1). you should always account for it being able to be null. return list(src.id=1.0) //by default, it will do nothing (return itself). this list is what percent of things to return. that is to say, return 100% of itself. //the variables determining power output and fuel duration are in the reagent defines. /datum/reagent/uranium/irradiate(var/list/current_reagents=null) //primary purpose: general purpose. gets you a bit of everything and decent power. return list(LEAD=0.3, PLUTONIUM=0.2, RADIUM=0.25, THALLIUM=0.1, RADON=0.15) /datum/reagent/plutonium/irradiate(var/list/current_reagents=null) //primary purpose: pure power bay bee. return list(LEAD=0.5, URANIUM=0.2, RADIUM=0.2, RADON=0.1) /datum/reagent/radium/irradiate(var/list/current_reagents=null) //primary purpose: getting you the new materials, radon, thallium, and lead. return list(LEAD=0.4, RADON=0.4, THALLIUM=0.2) /datum/reagent/radon/irradiate(var/list/current_reagents=null) //primary purpose: wasting radon (and speeding up fission reactions). return list(LEAD=1.0) /datum/reagent/thorium/irradiate(var/list/current_reagents=null) //purpose: generates uranium, as well as some byproducts return list(URANIUM=0.55, RADON=0.25, LEAD=0.1, THALLIUM=0.1) /datum/reagent/plasma/irradiate(var/list/current_reagents=null) //primary purpose: a very lossy way to get phazon via plasma. powergaymers rejoice. return list(PHAZON=0.05) //fun fact. 1 sheet of plas = 20 units. 1 sheet of phaz = 1 unit. funny, huh? /datum/reagent/degeneratecalcium/irradiate(var/list/current_reagents=null) return list(REGENERATECALCIUM=1.0) //these give the same reagent, but in different ratios. DD is far more efficent, but to support our ghetto chem brothers, we let them get some of this, too. not as much, though. /datum/reagent/tricordrazine/irradiate(var/list/current_reagents=null) return list(EQUALIZONE=0.4) /datum/reagent/drink/doctor_delight/irradiate(var/list/current_reagents=null) return list(EQUALIZONE=1.0) //big powah. /datum/reagent/agentw/irradiate(var/list/current_reagents=null) return list(RADON=1.0)