-
Notifications
You must be signed in to change notification settings - Fork 222
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
Remove and condense unnecessary side-overrides in core code #4678
Remove and condense unnecessary side-overrides in core code #4678
Conversation
@@ -719,11 +719,8 @@ Turf and target are seperate in case you want to teleport some distance from a t | |||
/obj/item/weldingtool/can_puncture() | |||
return 1 |
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 should return isOn()
I suspect.
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.
Not blocking, just a note.
9223dba
to
67ce8b8
Compare
@@ -378,7 +378,7 @@ | |||
return ..(user, distance, "", jointext(desc_comp, "<br/>")) | |||
|
|||
/obj/item/check_mousedrop_adjacency(var/atom/over, var/mob/user) | |||
. = (loc == user && istype(over, /obj/screen/inventory)) || ..() |
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.
I think /inventory might be correct, there's no need to drag and drop over other elements that I can think of.
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.
/obj/item/organ/internal/augment/active/cyberbrain/handle_mouse_drop(atom/over, mob/user, params)
if(!istype(over, /obj/screen))
attack_self(user)
return TRUE
. = ..()
dunno, but it's not the only place that checks for specifically screen as opposed to inventory. was just going for what current code did, since by checking both with ||
we're defaulting to the less-specific one
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.
Comments are not blocking.
67ce8b8
to
6e9683e
Compare
Description of changes
Removes or condenses a lot of unnecessary side-overrides in core code.
Some of these commits are going to be sent to stable/staging as applicable because they're fixes rather than code quality edits.Done. #4679Why and what will this PR improve
Found a lot of bugs/bad copypasta and also just improves code quality overall. Simplifies control flow and somewhat improves performance on hot procs like update_icon.
Authorship
Me