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鈥檒l occasionally send you account related emails.
Already on GitHub? Sign in to your account
Allow gyrotron controller to be buffered #16193
Conversation
@@ -72,6 +72,16 @@ | |||
</ul> | |||
"} | |||
|
|||
/obj/machinery/rust/gyrotron/canLink(var/obj/machinery/computer/rust_gyrotron_controller/object, var/link/context) | |||
. = (istype(object) && get_dist(src, object) < RUST_GYROTRON_RANGE) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Use return, it's much more readable.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Once this is fixed I'll merge. Tiny thing but it makes a difference.
/obj/machinery/computer/rust_gyrotron_controller | ||
name = "Gyrotron Remote Controller" | ||
icon_state = "engine" | ||
circuit = /obj/item/weapon/circuitboard/rust_gyrotron_control | ||
light_color = LIGHT_COLOR_BLUE | ||
|
||
var/id_tag // Required for multitool buffering |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Uh, is it actually? If it is then you should fix that instead.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Indeed, I don't really want to do it right now, though.
@@ -0,0 +1 @@ | |||
#undef RUST_GYROTRON_RANGE |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Don't bother honestly.
Fixes .1 of #16190
馃啈