Files
Bubberstation/code/modules/bitrunning/alerts.dm
SkyratBot 630edc2576 [MIRROR] The bitrunning domain completion screen alert works again [MDB IGNORE] (#25718)
* The bitrunning domain completion screen alert works again (#80426)

## About The Pull Request

When a domain is cleared via delivering the crate, all bitrunners get an
alert that lets them disconnect safely when clicked. However, it was not
working due to an inverted check. This PR fixes that, and also passes
along the return value properly.

## Why It's Good For The Game

I want to get off Mr Bone's Wild VR safely if I am trapped in a corner
but my friends manage to deliver the loot back to base.

## Changelog

🆑
fix: The bitrunner domain completion screen alert is once again properly
clickable
/🆑

* The bitrunning domain completion screen alert works again

---------

Co-authored-by: Profakos <profakos@gmail.com>
2023-12-18 13:02:45 -06:00

23 lines
660 B
Plaintext

/atom/movable/screen/alert/bitrunning
name = "Generic Bitrunning Alert"
icon_state = "template"
timeout = 10 SECONDS
/atom/movable/screen/alert/bitrunning/qserver_domain_complete
name = "Domain Completed"
desc = "The domain is completed. Activate to exit."
timeout = 20 SECONDS
/atom/movable/screen/alert/bitrunning/qserver_domain_complete/Click(location, control, params)
. = ..()
if(!.)
return
var/mob/living/living_owner = owner
if(!isliving(living_owner))
return
if(tgui_alert(living_owner, "Disconnect safely?", "Server Message", list("Exit", "Remain"), 10 SECONDS) == "Exit")
SEND_SIGNAL(living_owner, COMSIG_BITRUNNER_ALERT_SEVER)