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

The gravity generator isn't going down when a gravity annomaly detonates #27160

Closed
1 task done
1080pCat opened this issue Oct 22, 2024 · 1 comment · Fixed by #27163
Closed
1 task done

The gravity generator isn't going down when a gravity annomaly detonates #27160

1080pCat opened this issue Oct 22, 2024 · 1 comment · Fixed by #27163
Labels
Bug This is a bug in our game code

Comments

@1080pCat
Copy link
Contributor

Exploit Reports

  • I confirm this issue is not an exploit. (Required)

BYOND Version

515

Issue Description

When a event spawned gravity anomaly detonates, its not breaking the gravgen

What did you expect to happen?

It to

What happened instead?

IT didn't

Why is this bad/What are the consequences?

Broken.

Steps to reproduce the issue.

force a gravity anomaly event via the event panel

When did the problem start happening?

#26716

Extra information

/obj/effect/anomaly/grav/detonate()
	if(!drops_core)
		return
	var/turf/T = get_turf(src)
	if(T && length(GLOB.gravity_generators["[T.z]"]))
		var/obj/machinery/gravity_generator/main/G = pick(GLOB.gravity_generators["[T.z]"])
		G.set_broken() //Requires engineering to fix the gravity generator, as it gets overloaded by the anomaly.
		log_and_message_admins("A [name] has detonated a gravity generator")

the issue is the fact that the station gen isn't being seen as a valid option, and im too dumb to figure out why this is the case.

Relevant log output/runtime error

No response

@Henri215 Henri215 added the Bug This is a bug in our game code label Oct 22, 2024
@Henri215
Copy link
Contributor

Issue caused by #26716.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug This is a bug in our game code
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants