Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ports xenomedes' fusion rework #26

Closed
wants to merge 2 commits into from

Conversation

jupyterkat
Copy link
Collaborator

from base BeeStation/BeeStation-Hornet#2614

Dm side changes:

/proc/fusion_ball(datum/holder, reaction_energy, standard_energy)
	var/turf/open/location
	if (istype(holder,/datum/pipeline)) //Find the tile the reaction is occuring on, or a random part of the network if it's a pipenet.
		var/datum/pipeline/fusion_pipenet = holder
		location = get_turf(pick(fusion_pipenet.members))
	else
		location = get_turf(holder)
	if(location)
		if(prob(PERCENT(((PARTICLE_CHANCE_CONSTANT)/(reaction_energy-PARTICLE_CHANCE_CONSTANT)) + 1))) //Asymptopically approaches 100% as the energy of the reaction goes up.
			location.fire_nuclear_particle(customize = TRUE, custompower = standard_energy)
		radiation_pulse(location, max(2000 * 3 ** (log(10,standard_energy) - FUSION_RAD_MIDPOINT), 0))

src/reaction/hooks.rs Show resolved Hide resolved
src/reaction/hooks.rs Show resolved Hide resolved
src/reaction/hooks.rs Show resolved Hide resolved
src/reaction/hooks.rs Show resolved Hide resolved
src/reaction/hooks.rs Show resolved Hide resolved
src/reaction/hooks.rs Show resolved Hide resolved
src/reaction/hooks.rs Show resolved Hide resolved
src/reaction/hooks.rs Show resolved Hide resolved
@Putnam3145
Copy link
Owner

note: this was actually merged with above

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants