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

Logging for Inserting & Removing Things Surgically #9873

Merged
merged 2 commits into from
Sep 22, 2023
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions code/modules/surgery/cavity_implant.dm
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,8 @@
"[user] stuffs [tool.w_class > WEIGHT_CLASS_SMALL ? tool : "something"] into [target]'s [target_zone].")
user.transferItemToLoc(tool, target, TRUE)
CH.cavity_item = tool
//Logs stowing items in a cavity, similar to organ manipulation
log_combat(user, target, "cavity implanted [tool.name] into", addition="INTENT: [uppertext(user.a_intent)]")
return 1
else
if(IC)
Expand All @@ -54,6 +56,8 @@
"[user] pulls [IC.w_class > WEIGHT_CLASS_SMALL ? IC : "something"] out of [target]'s [target_zone].")
user.put_in_hands(IC)
CH.cavity_item = null
//Log when cavity items are surgically removed, we don't care about it popping out from gibbing
log_combat(user, target, "extracted [IC.name] from cavity in", addition="INTENT: [uppertext(user.a_intent)]")
return 1
else
to_chat(user, "<span class='warning'>You don't find anything in [target]'s [target_zone].</span>")
Expand Down
3 changes: 3 additions & 0 deletions code/modules/surgery/implant_removal.dm
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,9 @@
"[user] successfully removes something from [target]'s [target_zone]!")
I.removed(target)

//Logs removal of implants, similar to removal of organs during organ manipulation
log_combat(user, target, "surgically extracted [I.name] from", addition="INTENT: [uppertext(user.a_intent)]")

var/obj/item/implantcase/case
for(var/obj/item/implantcase/ic in user.held_items)
case = ic
Expand Down
1 change: 1 addition & 0 deletions code/modules/surgery/organ_manipulation.dm
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,7 @@
display_results(user, target, "<span class='notice'>You insert [tool] into [target]'s [parse_zone(target_zone)].</span>",
"[user] inserts [tool] into [target]'s [parse_zone(target_zone)]!",
"[user] inserts something into [target]'s [parse_zone(target_zone)]!")
log_combat(user, target, "surgically installed [I.name] into", addition="INTENT: [uppertext(user.a_intent)]")

else if(current_type == "extract")
if(I && I.owner == target)
Expand Down