mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2026-07-19 03:49:10 +01:00
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:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user