mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-31 00:58:26 +01:00
Changed input method
Edit changelog
This commit is contained in:
@@ -141,10 +141,10 @@ update_label("John Doe", "Clowny")
|
||||
if(user.mind.special_role)
|
||||
usr << "<span class='notice'>The card's microscanners activate as you pass it over the ID, copying its access.</span>"
|
||||
|
||||
/obj/item/weapon/card/id/syndicate/CtrlClick(mob/user)
|
||||
if(loc == user)
|
||||
if(istype(user, /mob/living) && user.mind)
|
||||
if(user.mind.special_role)
|
||||
/obj/item/weapon/card/id/syndicate/attack_self(mob/user)
|
||||
if(istype(user, /mob/living) && user.mind)
|
||||
if(user.mind.special_role)
|
||||
if(alert(user, "Action", "Agent ID", "Show", "Forge") == "Forge")
|
||||
var t = copytext(sanitize(input(user, "What name would you like to put on this card?", "Agent card name", registered_name ? registered_name : (ishuman(user) ? user.real_name : user.name))as text | null),1,26)
|
||||
if(!t || t == "Unknown" || t == "floor" || t == "wall" || t == "r-wall") //Same as mob/new_player/prefrences.dm
|
||||
if (t)
|
||||
@@ -159,8 +159,8 @@ update_label("John Doe", "Clowny")
|
||||
assignment = u
|
||||
update_label()
|
||||
user << "<span class='notice'>You successfully forge the ID card.</span>"
|
||||
else
|
||||
..()
|
||||
return
|
||||
..()
|
||||
|
||||
/obj/item/weapon/card/id/syndicate_command
|
||||
name = "syndicate ID card"
|
||||
|
||||
Reference in New Issue
Block a user