-
Notifications
You must be signed in to change notification settings - Fork 565
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
makes LZ detector work while landed round 2 #4647
makes LZ detector work while landed round 2 #4647
Conversation
This pull request has conflicts, please resolve those before we can evaluate the pull request. |
Conflicts have been resolved. A maintainer will review the pull request shortly. |
for(var/obj/structure/machinery/computer/cameras/dropship/D in range(5, loc)) | ||
linked_cam_console = D |
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.
single letter var
for(var/obj/structure/machinery/computer/cameras/dropship/Dropship_camera_console in range(5, loc)) | ||
linked_cam_console = Dropship_camera_console |
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.
dropship_camera_console
/obj/structure/dropship_equipment/electronics/landing_zone_detector/proc/connect_cameras() | ||
if(linked_cam_console) | ||
return | ||
for(var/obj/structure/machinery/computer/cameras/dropship/dropship_camera_console in range(5, loc)) |
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.
this can become
var/obj/structure/machinery/computer/cameras/dropship/dropship_camera_console = locate() in range(5, loc)
if(!linked_cam_console) | ||
return | ||
linked_cam_console.network.Remove(CAMERA_NET_LANDING_ZONES) | ||
for(var/datum/weakref/ref in linked_cam_console.concurrent_users) |
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.
as anything
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.
for(var/datum/weakref/ref as anything in linked_cam_console.concurrent_users)
icon_state = "lz_detector" | ||
point_cost = 50 | ||
var/obj/structure/machinery/computer/cameras/dropship/linked_cam_console | ||
|
||
/obj/structure/dropship_equipment/electronics/landing_zone_detector/proc/connect_cameras() |
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.
code doc
@@ -507,41 +507,48 @@ | |||
icon_state = initial(icon_state) | |||
|
|||
/obj/structure/dropship_equipment/electronics/landing_zone_detector | |||
|
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.
remove whitespace
name = "\improper AN/AVD-60 LZ detector" | ||
desc = "An electronic device linked to the dropship's camera system that lets you observe your landing zone mid-flight." | ||
desc = "An electronic device linked to the dropship's camera system that lets you observe your landing zone." | ||
|
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.
ditto
break | ||
linked_cam_console.network.Add(CAMERA_NET_LANDING_ZONES) | ||
|
||
/obj/structure/dropship_equipment/electronics/landing_zone_detector/proc/disconnect_cameras() |
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.
code doc
remade some stuff from #4516 to clean up the code, rest is the same. did not get to test it also not shure if I solved the mergeconflict properly if not tell me what is wrong
🆑
balance: LZ detector now works even when the DS is stationary
/:cl: