diff --git a/Scopes Files/signal_modifier.dm b/Scopes Files/signal_modifier.dm index 928cfc0e..5375a651 100644 --- a/Scopes Files/signal_modifier.dm +++ b/Scopes Files/signal_modifier.dm @@ -1,3 +1,41 @@ -//and come here +//Make a thing that changes id's on stuff to change what they do -//Make a thing that changes id's on stuff to change what they do \ No newline at end of file +/obj/item/device/signaltool + name = "Signal Modifyer" + desc = "Used for Stuff." + icon_state = "multitool" + flags = FPRINT | TABLEPASS| CONDUCT //check out + force = 5.0 + w_class = 2.0 + throwforce = 5.0 + throw_range = 15 + throw_speed = 3 + desc = "Sound should really make a description for this." //here to + m_amt = 50 + g_amt = 20 + origin_tech = "magnets=1;engineering=1" + var/setting = null + + attack_self(mob/M as mob) + var/prevname = "[setting]" + var/str = trim(stripped_input(usr,"New ID tag:","Signal Altering", prevname, MAX_NAME_LEN)) + if(!str || !length(str) || str==prevname) //cancel + return + if(length(str) > 50) + usr << "\red Text too long." + return + setting = str + +//I secretly have no idea what I am doing with this stuff +//it could work + attack(var/obj/machinery/O as obj) + if(!setting) + return + if(!O.id) + msg_scopes("no id thing") + else + if(O.id != setting) + usr << "\blue You alter the componants signal id" + O.id = setting + else + user << "\red The id's are the same" diff --git a/code/modules/mob/living/silicon/ai/ai.dm b/code/modules/mob/living/silicon/ai/ai.dm index de8c1d63..720e7556 100644 --- a/code/modules/mob/living/silicon/ai/ai.dm +++ b/code/modules/mob/living/silicon/ai/ai.dm @@ -725,7 +725,16 @@ var/list/ai_list = list() user.visible_message("\blue \The [user] decides not to bolt \the [src].") return user.visible_message("\blue \The [user] finishes fastening down \the [src]!") + if(floating) + float(0) anchored = 1 return else return ..() + +/mob/living/silicon/ai/float(var/on = 0) + if(anchored) + msg_scopes("AI is bolted") + ..(0) + else + ..(on)