[MIRROR] roundstart scryers now come with the nt frequency [MDB IGNORE] (#23376)

* roundstart scryers now come with the nt frequency (#77957)

## About The Pull Request
fixes #77934

## Why It's Good For The Game
blegh

## Changelog
🆑
fix: roundstart modlink scryers now come with the nt frequency
/🆑

* roundstart scryers now come with the nt frequency

---------

Co-authored-by: Fikou <23585223+Fikou@users.noreply.github.com>
This commit is contained in:
SkyratBot
2023-08-28 01:54:16 -04:00
committed by GitHub
co-authored by Fikou
parent 52dc226c48
commit e74d3c5331
2 changed files with 13 additions and 1 deletions
+12
View File
@@ -87,8 +87,10 @@
if(istype(tool.buffer, /datum/mod_link))
var/datum/mod_link/buffer_link = tool.buffer
tool_frequency = buffer_link.frequency
balloon_alert(user, "frequency set")
if(!tool_frequency && mod_link.frequency)
tool.set_buffer(mod_link)
balloon_alert(user, "frequency copied")
else if(tool_frequency && !mod_link.frequency)
mod_link.frequency = tool_frequency
else if(tool_frequency && mod_link.frequency)
@@ -98,8 +100,10 @@
switch(response)
if("Copy")
tool.set_buffer(mod_link)
balloon_alert(user, "frequency copied")
if("Imprint")
mod_link.frequency = tool_frequency
balloon_alert(user, "frequency set")
/obj/item/mod/control/proc/can_call()
return get_charge() && wearer && wearer.stat < DEAD
@@ -231,17 +235,23 @@
if(istype(tool.buffer, /datum/mod_link))
var/datum/mod_link/buffer_link = tool.buffer
tool_frequency = buffer_link.frequency
balloon_alert(user, "frequency set")
if(!tool_frequency && mod_link.frequency)
tool.set_buffer(mod_link)
balloon_alert(user, "frequency copied")
else if(tool_frequency && !mod_link.frequency)
mod_link.frequency = tool_frequency
else if(tool_frequency && mod_link.frequency)
var/response = tgui_alert(user, "Would you like to copy or imprint the frequency?", "MODlink Frequency", list("Copy", "Imprint"))
if(!user.is_holding(tool))
return
switch(response)
if("Copy")
tool.set_buffer(mod_link)
balloon_alert(user, "frequency copied")
if("Imprint")
mod_link.frequency = tool_frequency
balloon_alert(user, "frequency set")
/obj/item/clothing/neck/link_scryer/worn_overlays(mutable_appearance/standing, isinhands)
. = ..()
@@ -310,6 +320,8 @@
/// A MODlink datum, used to handle unique functions that will be used in the MODlink call.
/datum/mod_link
/// Generic name for multitool buffers.
var/name = "MODlink"
/// The frequency of the MODlink. You can only call other MODlinks on the same frequency.
var/frequency
/// The unique ID of the MODlink.