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

makes LZ detector work while landed round 2 #4647

Merged
merged 23 commits into from
Nov 2, 2023

Conversation

cuberound
Copy link
Contributor

@cuberound cuberound commented Oct 12, 2023

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:

@cm13-github cm13-github added the Merge Conflict PR can't be merged because it touched too much code label Oct 12, 2023
@cm13-github
Copy link
Contributor

This pull request has conflicts, please resolve those before we can evaluate the pull request.

@github-actions github-actions bot added the Balance You need to be a professional veteran game maintainer to comprehend what is being done here. label Oct 12, 2023
@cm13-github cm13-github removed the Merge Conflict PR can't be merged because it touched too much code label Oct 12, 2023
@cm13-github
Copy link
Contributor

Conflicts have been resolved. A maintainer will review the pull request shortly.

@Zonespace27 Zonespace27 added the Balance Approved This PR has had its balance and gameplay-affecting aspects approved. Cry to the Head-maint about it. label Oct 13, 2023
Comment on lines 521 to 522
for(var/obj/structure/machinery/computer/cameras/dropship/D in range(5, loc))
linked_cam_console = D
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

single letter var

Comment on lines 521 to 522
for(var/obj/structure/machinery/computer/cameras/dropship/Dropship_camera_console in range(5, loc))
linked_cam_console = Dropship_camera_console
Copy link

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))
Copy link
Contributor

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)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

as anything

Copy link

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()
Copy link
Contributor

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

Copy link
Contributor

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."

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ditto

code/modules/cm_marines/dropship_equipment.dm Show resolved Hide resolved
break
linked_cam_console.network.Add(CAMERA_NET_LANDING_ZONES)

/obj/structure/dropship_equipment/electronics/landing_zone_detector/proc/disconnect_cameras()
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

code doc

@Zonespace27 Zonespace27 marked this pull request as draft October 13, 2023 20:12
@cuberound cuberound requested a review from a user October 22, 2023 18:01
@cuberound cuberound marked this pull request as ready for review October 22, 2023 18:02
@Zonespace27 Zonespace27 added this pull request to the merge queue Nov 2, 2023
Merged via the queue into cmss13-devs:master with commit 0a52bd7 Nov 2, 2023
26 checks passed
cm13-github added a commit that referenced this pull request Nov 2, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Balance Approved This PR has had its balance and gameplay-affecting aspects approved. Cry to the Head-maint about it. Balance You need to be a professional veteran game maintainer to comprehend what is being done here.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants