Files
608652bba0 [MIRROR] Dynamic material colors applied for insertion animation into lathes (#26854)
* Dynamic material colors applied for insertion animation into lathes (#81692)

## About The Pull Request
So you've noticed that when we insert say uranium into a techfab it
shows us the proper green sheet getting consumed as the animation but
when you insert that same uranium into an autolathe is shows us a blue
sheet animation instead?

Yup not realistic, this is because the autolathe has only 2 animation
types one for inserting iron & the other for glass. Every material type
would have to share these 2 animations making it look bland.

Now the material color is blended on the icon itself allowing for the
right color to be applied on the insertion animation

Plus this also trims the sizes of our dmi files so it's a win overall

https://github.com/tgstation/tgstation/assets/110812394/bb643691-8d3b-4822-8371-346c2d5e5be3

## Changelog
🆑
fix: inserting a material sheet into an lathes should show the correct
animation color
/🆑

* Dynamic material colors applied for insertion animation into lathes

---------

Co-authored-by: SyncIt21 <110812394+SyncIt21@users.noreply.github.com>
2024-03-13 19:37:00 -04:00

24 lines
1.0 KiB
Plaintext

/obj/machinery/rnd/production/circuit_imprinter
name = "circuit imprinter"
desc = "Manufactures circuit boards for the construction of machines."
icon_state = "circuit_imprinter"
production_animation = "circuit_imprinter_ani"
circuit = /obj/item/circuitboard/machine/circuit_imprinter
allowed_buildtypes = IMPRINTER
/obj/machinery/rnd/production/circuit_imprinter/compute_efficiency()
var/rating = 0
for(var/datum/stock_part/servo/servo in component_parts)
rating += servo.tier
return 0.5 ** max(rating - 1, 0) // One sheet, half sheet, quarter sheet, eighth sheet.
/obj/machinery/rnd/production/circuit_imprinter/flick_animation(datum/material/mat)
return //we presently have no animation
/obj/machinery/rnd/production/circuit_imprinter/offstation
name = "ancient circuit imprinter"
desc = "Manufactures circuit boards for the construction of machines. Its ancient construction may limit its ability to print all known technology."
allowed_buildtypes = AWAY_IMPRINTER
circuit = /obj/item/circuitboard/machine/circuit_imprinter/offstation