mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-28 15:47:15 +01:00
Fixes human burgers not naming after the meat donor (#59286)
- Adds custom materials to result of grilling - Adds custom materials to result of atom processing - Adds source name and job to mob_meat material if available - Makes processed atoms have same pixel offsets as their source but randomise with each subsequent one
This commit is contained in:
@@ -34,12 +34,24 @@
|
||||
|
||||
/datum/material/meat/mob_meat
|
||||
init_flags = MATERIAL_INIT_BESPOKE
|
||||
var/subjectname = ""
|
||||
var/subjectjob = null
|
||||
|
||||
/datum/material/meat/mob_meat/Initialize(_id, mob/living/source)
|
||||
if(!istype(source))
|
||||
return FALSE
|
||||
|
||||
name = "[source?.name ? "[source.name]'s" : "mystery"] [initial(name)]"
|
||||
|
||||
if(source.real_name)
|
||||
subjectname = source.real_name
|
||||
else if(source.name)
|
||||
subjectname = source.name
|
||||
|
||||
if(ishuman(source))
|
||||
var/mob/living/carbon/human/human_source = source
|
||||
subjectjob = human_source.job
|
||||
|
||||
return ..()
|
||||
|
||||
/datum/material/meat/species_meat
|
||||
|
||||
Reference in New Issue
Block a user