diff --git a/code/game/atoms.dm b/code/game/atoms.dm index 6d44f8a2f5335..f3d603b3e5292 100644 --- a/code/game/atoms.dm +++ b/code/game/atoms.dm @@ -1390,8 +1390,7 @@ created_atom.pixel_x = pixel_x created_atom.pixel_y = pixel_y if(i > 1) - created_atom.pixel_x += rand(-8,8) - created_atom.pixel_y += rand(-8,8) + randomize_placement_offsets(created_atom) created_atom.OnCreatedFromProcessing(user, process_item, chosen_option, src) to_chat(user, "You manage to create [chosen_option[TOOL_PROCESSING_AMOUNT]] [initial(atom_to_create.gender) == PLURAL ? "[initial(atom_to_create.name)]" : "[initial(atom_to_create.name)][plural_s(initial(atom_to_create.name))]"] from [src].") //SEND_SIGNAL(src, COMSIG_ATOM_PROCESSED, user, process_item, created_atoms) //Custom food @@ -1405,6 +1404,10 @@ /atom/proc/OnCreatedFromProcessing(mob/living/user, obj/item/I, list/chosen_option, atom/original_atom) return +/atom/proc/randomize_placement_offsets(var/atom/placed_atom) + placed_atom.pixel_x += rand(-8,8) + placed_atom.pixel_y += rand(-8,8) + //! Tool-specific behavior procs. /// diff --git a/code/modules/awaymissions/corpse.dm b/code/modules/awaymissions/corpse.dm index 78513751f7931..694ba5f0cda0a 100644 --- a/code/modules/awaymissions/corpse.dm +++ b/code/modules/awaymissions/corpse.dm @@ -451,7 +451,7 @@ name = "Beach Bum" glasses = /obj/item/clothing/glasses/sunglasses r_pocket = /obj/item/storage/wallet/random - l_pocket = /obj/item/food/pizzaslice/dank; + l_pocket = /obj/item/food/pizzaslice/dank uniform = /obj/item/clothing/under/pants/youngfolksjeans id = /obj/item/card/id diff --git a/tools/UpdatePaths/Scripts/9860-NEWFOODpizzaburger.txt b/tools/UpdatePaths/Scripts/9860-NEWFOODpizzaburger.txt new file mode 100644 index 0000000000000..5bff849dc362e --- /dev/null +++ b/tools/UpdatePaths/Scripts/9860-NEWFOODpizzaburger.txt @@ -0,0 +1,2 @@ +/obj/item/food/burger : /obj/item/reagent_containers/food/snacks/burger{@OLD} +/obj/item/food/pizza/pizza : obj/item/reagent_containers/food/snacks/pizza{@OLD}