mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-01-12 01:43:40 +00:00
## 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>   </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 /🆑
20 lines
579 B
Plaintext
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
|