MODlink scryers now alert the user if they try to call without a charged cell (#90682)

## About The Pull Request

This makes it so if you try to use a MODlink scryer without a power
cell, or with an empty cell, it'll show a balloon alert to the user
saying "no cell installed!" or "no charge!", rather than silently
failing.

## Why It's Good For The Game

when I ported modlinks downstream, a few people got confused bc they
didn't realize they needed cells after being printed.
this makes it more clear what the issue is.

## Changelog
🆑
qol: MODlink scryers now alert the user if they try to call without a
charged power cell.
/🆑
This commit is contained in:
Lucy
2025-04-19 10:49:36 +02:00
committed by GitHub
parent 1bf37e1210
commit 0445bee0a7
+4
View File
@@ -269,6 +269,10 @@
/obj/item/clothing/neck/link_scryer/ui_action_click(mob/user)
if(mod_link.link_call)
mod_link.end_call()
else if(QDELETED(cell))
user.balloon_alert(user, "no cell installed!")
else if(!cell.charge)
user.balloon_alert(user, "no charge!")
else
call_link(user, mod_link)