Skip to content

Commit

Permalink
Update pinpointer.dm
Browse files Browse the repository at this point in the history
  • Loading branch information
simb11 committed Sep 19, 2024
1 parent ccc8010 commit dfcd22b
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions code/game/gamemodes/modes_gameplays/nuclear/pinpointer.dm
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,7 @@
if(N.nuketype == "Syndi")
target = N
to_chat(usr, "<span class='notice'>Nuclear Warhead Locator active.</span>")
break

playsound(src, 'sound/machines/twobeep.ogg', VOL_EFFECTS_MASTER)

Expand Down Expand Up @@ -260,14 +261,11 @@
/obj/item/weapon/pinpointer/highriskitems/proc/toggle_mode()
reset_target()

var/datum/objective/steal/itemlist
itemlist = itemlist // To supress a 'variable defined but not used' error.
var/targetitem = input("Select item to search for.", "Item Mode Select","") as null|anything in itemlist::possible_items
var/obj/item/targetitem = input("Select item to search for.", "Item Mode Select","") as null|anything in global.possible_items_for_steal
if(!targetitem)
return
var/obj/item/item_path = itemlist::possible_items[targetitem]
for(var/obj/item/I in global.possible_items_for_steal)
if(!istype(I, item_path))
if(!istype(I, targetitem))
continue
var/turf/T = get_turf(I)
if(is_centcom_level(T.z))
Expand Down

0 comments on commit dfcd22b

Please sign in to comment.