mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-23 21:18:37 +01:00
Makes miner callouts compatible with pet commands, they start off by default (#96747)
## About The Pull Request Closes #87571 Callouts now use an override of pointing code rather than an entirely separate visual, which means that they can trigger pet commands now. Also, they start off by default. ## Why It's Good For The Game Callouts are only useful if you're mining with a buddy, so leaving them off by default is a sensible choice since most of the time that's not the case. ## Changelog 🆑 qol: Miner callouts are now off by default fix: Miner callouts can now be used to command pets like regular pointing /🆑
This commit is contained in:
@@ -7,7 +7,7 @@
|
||||
*
|
||||
* Not intended as a replacement for the mob verb
|
||||
*/
|
||||
/atom/movable/proc/point_at(atom/pointed_atom, intentional = FALSE)
|
||||
/atom/movable/proc/point_at(atom/pointed_atom, intentional = FALSE, pointer_type = /obj/effect/temp_visual/point)
|
||||
if(!isturf(loc))
|
||||
return FALSE
|
||||
|
||||
@@ -20,12 +20,12 @@
|
||||
return FALSE
|
||||
|
||||
var/turf/our_tile = get_turf(src)
|
||||
var/obj/visual = new /obj/effect/temp_visual/point(our_tile, invisibility)
|
||||
var/obj/visual = new pointer_type(our_tile, invisibility)
|
||||
|
||||
SEND_SIGNAL(src, COMSIG_MOVABLE_POINTED, pointed_atom, visual, intentional)
|
||||
|
||||
animate(visual, pixel_x = (tile.x - our_tile.x) * ICON_SIZE_X + pointed_atom.pixel_x, pixel_y = (tile.y - our_tile.y) * ICON_SIZE_Y + pointed_atom.pixel_y, time = 1.7, easing = EASE_OUT)
|
||||
return TRUE
|
||||
return visual
|
||||
|
||||
/mob/point_at(atom/pointed_atom, intentional = FALSE)
|
||||
. = ..()
|
||||
|
||||
Reference in New Issue
Block a user