-
-
Notifications
You must be signed in to change notification settings - Fork 444
/
Copy pathlicense_plates.dm
36 lines (32 loc) · 1.04 KB
/
license_plates.dm
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
/obj/item/stack/license_plates
name = "invalid plate"
desc = "Someone fucked up."
icon = 'icons/obj/machines/prison.dmi'
icon_state = "empty_plate"
novariants = FALSE
max_amount = 50
/obj/item/stack/license_plates/empty
name = "empty license plate"
singular_name = "empty license plate"
desc = "Instead of a license plate number, this could contain a quote like \"Live laugh love\"."
merge_type = /obj/item/stack/license_plates/empty
/obj/item/stack/license_plates/empty/fifty
amount = 50
/obj/item/stack/license_plates/filled
name = "license plate"
singular_name = "license plate"
desc = "Prison labor paying off."
icon_state = "filled_plate_1_1"
merge_type = /obj/item/stack/license_plates/filled
///Override to allow for variations
/obj/item/stack/license_plates/filled/update_icon_state()
. = ..()
if(novariants)
return
if(amount <= (max_amount * (1/3)))
icon_state = "filled_plate_[rand(1,6)]_1"
return
if (amount <= (max_amount * (2/3)))
icon_state = "filled_plate_[rand(1,6)]_2"
return
icon_state = "filled_plate_[rand(1,6)]_3"