Bike keys and registration plates (#18457)

* 2w346

* 5yeh

* qdel

* Update code/modules/vehicles/bike.dm

Co-authored-by: Fluffy <65877598+FluffyGhoster@users.noreply.github.com>
Signed-off-by: DreamySkrell <107256943+DreamySkrell@users.noreply.github.com>

* l

* y

---------

Signed-off-by: DreamySkrell <107256943+DreamySkrell@users.noreply.github.com>
Co-authored-by: DreamySkrell <>
Co-authored-by: Fluffy <65877598+FluffyGhoster@users.noreply.github.com>
This commit is contained in:
DreamySkrell
2024-02-20 12:40:48 +01:00
committed by GitHub
parent 89a2e70923
commit 4b5cc8d85d
4 changed files with 129 additions and 10 deletions
+33
View File
@@ -28,3 +28,36 @@
to_chat(user, "<span class='warning'>\The [src] crumbles in your hands!</span>")
qdel(src)
return ..()
/obj/item/key/bike
name = "bike key"
desc = "Used to start a bike."
icon_state = "key_tag_gray"
/obj/item/key/bike/get_examine_text(mob/user, distance, is_adjacent, infix, suffix)
. = ..()
if(distance <= 1)
. += "\The [src] has a small tag attached to it, written on it is '[key_data]'."
/obj/item/key/bike/sport
name = "sports bike key"
desc = "Used to start a sporty, fast bike."
icon_state = "key_tag_red"
/obj/item/key/bike/sport/Initialize(mapload, ...)
. = ..()
icon_state = pick("key_tag_red", "key_tag_blue")
/obj/item/key/bike/moped
name = "moped key"
desc = "Used to start a cheap moped bike."
icon_state = "key_tag_green"
/obj/item/key/bike/moped/Initialize(mapload, ...)
. = ..()
icon_state = pick("key_tag_gray", "key_tag_green", "key_tag_purple")
/obj/item/key/bike/police
name = "police bike key"
desc = "Used to start a police bike."
icon_state = "key_tag_police"