Files
Bubberstation/code/modules/mining/equipment/vent_pointer.dm
Iajret d3662137f8 Arcmining QoL: GPS component to scanned vents and vent(pin)pointer (#82724)
## About The Pull Request
Scanning ore vents will now tag them on GPS so you can find them easily
when you are prepared (and remove them when they are tapped). Also adds
special pinpointer to help with finding unscanned vents in a first
place. And adds missing uranium overlays for scanned vents. Because why
not.
<details>


![image](https://github.com/tgstation/tgstation/assets/8430839/d13df20f-79c0-46a7-a602-81c630309a2d)


![image](https://github.com/tgstation/tgstation/assets/8430839/72690bec-dffd-41a8-8a5e-1ceb7ae182d0)
</details>

## Why It's Good For The Game
While looking at mineral density to find vents is somewhat fun and
entertaining, having some sort of upgrade to make finding them easier
adds a bit of a progression. Also re-finding already scanned vents can
be a bit annoying. You need to fill your backpacks with GPSs and tag
them manually. It is also inconsistent with geysers that are added to
positioning after you scan them. And with tendrils, which are always
visible.
## Changelog
🆑
add: added ventpointer that points toward nearby ore vents and can be
bought with mining points
balance: scanned ore vents can now be found with GPS
fix: fixed ore vents missing overlay icon for uranium
/🆑
2024-04-21 12:49:54 -04:00

20 lines
579 B
Plaintext

/obj/item/pinpointer/vent
name = "ventpointer"
desc = "A handheld tracking device. It will locate and point to nearby vents. A bit unreliable though."
icon_state = "pinpointer_vent"
minimum_range = 14 //gotta use them eyes
/obj/item/pinpointer/vent/scan_for_target()
var/closest_dist = INFINITY
for(var/obj/structure/ore_vent/vent in SSore_generation.possible_vents)
if(vent.discovered || vent.tapped)
continue
if(vent.z != loc.z)
continue
var/target_dist = get_dist(src, vent)
if(target_dist < closest_dist)
closest_dist = target_dist
target = vent