Skip to content

Commit

Permalink
rev
Browse files Browse the repository at this point in the history
  • Loading branch information
simb11 committed Sep 2, 2024
1 parent eecf5e5 commit 68aac87
Show file tree
Hide file tree
Showing 3 changed files with 36 additions and 2 deletions.
4 changes: 2 additions & 2 deletions code/datums/uplinks_items.dm
Original file line number Diff line number Diff line change
Expand Up @@ -753,9 +753,9 @@

/datum/uplink_item/device_tools/pinpointer
name = "Advanced Pinpointer"
desc = "A modified pinpointer for searching for items that your employers are interested in."
desc = "A artisanally modified pinpointer for searching for items that your employers are interested in."
item = /obj/item/weapon/pinpointer/highriskitems
cost = 10
cost = 2
uplink_types = list("traitor")

/datum/uplink_item/device_tools/disk
Expand Down
34 changes: 34 additions & 0 deletions code/game/gamemodes/modes_gameplays/nuclear/pinpointer.dm
Original file line number Diff line number Diff line change
Expand Up @@ -279,5 +279,39 @@

return attack_self(usr)

/obj/item/weapon/pinpointer/highriskitems/process()
if(!active)
return
if(!target && !mode)
target = locate(/obj/item/weapon/disk/nuclear)
if(!target)
icon_state = "pinonnull"
return
if(target)
var/turf/self_turf = get_turf(src)
var/turf/target_turf = get_turf(target)
if(target_turf.z != self_turf.z)
icon_state = "alterpinfaralert"
else if(target_turf == self_turf)
icon_state = "alterpindirect"
else
switch(get_dist(target_turf, self_turf))
if(1 to 10)
icon_state = "alterpin10"
if(11 to 25)
icon_state = "alterpin25"
if(26 to 50)
icon_state = "alterpin50"
if(51 to 75)
icon_state = "alterpin75"
if(76 to 100)
icon_state = "alterpin100"
if(101 to 150)
icon_state = "alterpin150"
if(151 to 200)
icon_state = "alterpin200"
if(201 to INFINITY)
icon_state = "pinonfar"

#undef SEARCH_FOR_DISK
#undef SEARCH_FOR_OBJECT
Binary file modified icons/obj/weapons.dmi
Binary file not shown.

0 comments on commit 68aac87

Please sign in to comment.