Files
Bubberstation/code/game/objects/items/stacks/license_plates.dm
SmArtKar 71a232f03b Makes lizard skin and lizardskin items inherit their "donor's" skin color (#94751)
## About The Pull Request

As title says, skin butchered from humans (currently only applies to
lizardskin) now inherits their owner's skin color, and so do items
(lizardskin boots and hats) made from it.

Also this PR gagsifies lizardskin hats and boots for this very reason.

## Why It's Good For The Game

Consistency, when you butcher a purple lizard you should get purple
lizard boots.

## Changelog
🆑
add: Made lizard skin and lizardskin items inherit their "donor's" skin
color
/🆑
2026-01-12 00:29:35 +00:00

38 lines
1.1 KiB
Plaintext

/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
abstract_type = /obj/item/stack/license_plates
/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"