[MIRROR] fix vorepanel button for AI (#11737)

Co-authored-by: Kashargul <144968721+Kashargul@users.noreply.github.com>
This commit is contained in:
CHOMPStation2StaffMirrorBot
2025-09-26 04:08:34 -07:00
committed by GitHub
parent 03fd0a5ef9
commit 0e057e99fb
8 changed files with 17 additions and 23 deletions

View File

@@ -40,16 +40,19 @@
return //no! I don't want that.
if (isnull(viewer_client))
if(isnull(viewer_client))
return
if (isbelly(src.loc))
if(isbelly(src.loc))
return
var/bound_width = world.icon_size
if (ismovable(src))
if(ismovable(src))
var/atom/movable/movable_source = src
bound_width = movable_source.bound_width
if(isrobot(src) || isanimal(src))
bound_width += get_oversized_icon_offsets()["x"]
var/image/balloon_alert = image(loc = isturf(src) ? src : get_atom_on_turf(src), layer = ABOVE_MOB_LAYER)
balloon_alert.plane = PLANE_RUNECHAT