Skip to content

Commit

Permalink
bugfix: bomb implant activation not work
Browse files Browse the repository at this point in the history
  • Loading branch information
Dimach committed Nov 3, 2023
1 parent e7edc13 commit c10551a
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 5 deletions.
2 changes: 1 addition & 1 deletion code/game/objects/items/weapons/implants/implant.dm
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
/obj/item/implant/proc/trigger(emote, mob/source, force)
return

/obj/item/implant/proc/activate()
/obj/item/implant/proc/activate(cause)
return

/obj/item/implant/ui_action_click()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,8 @@
activate("death")

/obj/item/implant/explosive/activate(cause)
if(!cause || !imp_in) return 0
if(!cause || !imp_in)
return 0
if(cause == "action_button" && alert(imp_in, "Are you sure you want to activate your microbomb implant? This will cause you to explode!", "Microbomb Implant Confirmation", "Yes", "No") != "Yes")
return FALSE
heavy = round(heavy)
Expand Down
3 changes: 0 additions & 3 deletions code/game/objects/items/weapons/implants/implant_stealth.dm
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,6 @@
imp_in.forceMove(box)
imp_in.playsound_local(box, 'sound/misc/box_deploy.ogg', 50, TRUE)

/obj/item/implant/ui_action_click()
activate()

// the box.
/obj/structure/closet/cardboard/agent
name = "inconspicious box"
Expand Down

0 comments on commit c10551a

Please sign in to comment.