Skip to content

Commit

Permalink
Random pos
Browse files Browse the repository at this point in the history
  • Loading branch information
AyIong committed Nov 15, 2023
1 parent 5bfdfb2 commit cb691eb
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions modular_ss220/objects/code/card_skins.dm
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,12 @@
var/info = "На ней наклейка."
var/list/color_list = list("Красный", "Зелёный", "Синий", "Жёлтый", "Оранжевый", "Фиолетовый", "Голубой", "Циановый", "Аквамариновый", "Розовый")


/obj/item/id_skin/Initialize(mapload)
. = ..()
pixel_y = rand(-5, 5)
pixel_x = rand(-5, 5)

/obj/item/id_skin/proc/change_color()
var/choice = input(usr, "Какой цвет предпочитаете?", "Выбор цвета") as null|anything in list("Выбрать предустановленный", "Выбрать вручную")
if(!choice)
Expand Down

0 comments on commit cb691eb

Please sign in to comment.