Skip to content

Commit

Permalink
fix(nuclearbomb): robots should be near the bomb to use it
Browse files Browse the repository at this point in the history
* Includes AI

PR #1702
  • Loading branch information
HonkyDonky authored Apr 6, 2020
1 parent 367c9bd commit 10e9e2f
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions code/game/machinery/nuclear_bomb.dm
Original file line number Diff line number Diff line change
Expand Up @@ -144,10 +144,13 @@ var/bomb_set
return
..()

/obj/machinery/nuclearbomb/attack_ghost(mob/user as mob)
/obj/machinery/nuclearbomb/attack_ai(mob/user)
return

/obj/machinery/nuclearbomb/attack_ghost(mob/user)
attack_hand(user)

/obj/machinery/nuclearbomb/attack_hand(mob/user as mob)
/obj/machinery/nuclearbomb/attack_hand(mob/user)
if(extended)
if(panel_open)
wires.Interact(user)
Expand All @@ -165,6 +168,11 @@ var/bomb_set
update_icon()
return

/obj/machinery/nuclearbomb/CanUseTopic(mob/user)
if(isrobot(user) && !user.Adjacent(src))
return STATUS_CLOSE
return ..()

/obj/machinery/nuclearbomb/ui_interact(mob/user, ui_key = "main", datum/nanoui/ui = null, force_open = 1)
var/data[0]
data["hacking"] = 0
Expand Down

0 comments on commit 10e9e2f

Please sign in to comment.