let's make this work

This commit is contained in:
kevinz000
2020-02-19 07:20:16 -07:00
parent 950082f537
commit 4a537d770d
6 changed files with 19 additions and 13 deletions
+5 -1
View File
@@ -84,8 +84,12 @@
set category = "Object"
set src in usr
var/mob/living/L = usr
if(!istype(L))
return
var/n_name = stripped_input(usr, "What would you like to label the photo?", "Photo Labelling", "", MAX_NAME_LEN)
//loc.loc check is for making possible renaming photos in clipboards
if(n_name && (loc == usr || loc.loc && loc.loc == usr) && usr.stat == CONSCIOUS && usr.canmove && !usr.restrained())
if(n_name && (loc == usr || loc.loc && loc.loc == usr) && CHECK_MOBILITY(L, MOBILITY_USE))
name = "photo[(n_name ? text("- '[n_name]'") : null)]"
add_fingerprint(usr)