Skip to content

Commit

Permalink
Лицензии.
Browse files Browse the repository at this point in the history
  • Loading branch information
SmiLeYre committed Mar 22, 2024
1 parent 260dabb commit 31fa7ad
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion code/game/machinery/prisonlabor.dm
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
use_power = IDLE_POWER_USE
idle_power_usage = 2
active_power_usage = 50
density = TRUE
var/obj/item/stack/license_plates/empty/current_plate
var/pressing = FALSE

Expand All @@ -28,7 +29,7 @@
if(!is_operational())
to_chat(user, "<span class='warning'>[src] has to be on to do this!</span>")
return FALSE
if(pressing)
if(pressing || current_plate)
to_chat(user, "<span class='warning'>[src] already has a plate in it!</span>")
return FALSE
if(istype(I, /obj/item/stack/license_plates/empty))
Expand Down

0 comments on commit 31fa7ad

Please sign in to comment.