Skip to content

Commit

Permalink
addressing reviews
Browse files Browse the repository at this point in the history
  • Loading branch information
Tsar-Salat committed Sep 20, 2023
1 parent 0f6d9a7 commit 9e80b25
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
7 changes: 5 additions & 2 deletions code/game/atoms.dm
Original file line number Diff line number Diff line change
Expand Up @@ -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, "<span class='notice'>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].</span>")
//SEND_SIGNAL(src, COMSIG_ATOM_PROCESSED, user, process_item, created_atoms) //Custom food
Expand All @@ -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.
///

Expand Down
2 changes: 1 addition & 1 deletion code/modules/awaymissions/corpse.dm
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
2 changes: 2 additions & 0 deletions tools/UpdatePaths/Scripts/9860-NEWFOODpizzaburger.txt
Original file line number Diff line number Diff line change
@@ -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}

0 comments on commit 9e80b25

Please sign in to comment.