mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2025-12-10 09:42:29 +00:00
* 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>
23 lines
660 B
Plaintext
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)
|
|
|