tested fixed tested fixed tested.

This commit is contained in:
Ghommie
2019-06-09 19:55:08 +02:00
parent 52d217a92b
commit d2e216f2de
7 changed files with 23 additions and 25 deletions
+3 -6
View File
@@ -110,13 +110,10 @@
if(!storedpda)
to_chat(user, "<span class='notice'>[src] is empty.</span>")
return
var/list/P = input(user, "Select the new skin!", "PDA Painting") as null|anything in colorlist
if(!P)
return
if(!in_range(src, user))
return
if(!storedpda)//is the pda still there?
var/choice = input(user, "Select the new skin!", "PDA Painting") as null|anything in colorlist
if(!choice || !storedpda || !in_range(src, user))
return
var/list/P = colorlist[choice]
storedpda.base_skin = P[1]
storedpda.desc = P[2]
storedpda.overlays_offsets = P[3]