Skip to content

Commit

Permalink
Fix for slicing food.
Browse files Browse the repository at this point in the history
  • Loading branch information
Segrain committed Oct 22, 2023
1 parent 3b00860 commit 6fbe1bd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions code/game/objects/items/reagent_containers/food/snacks.dm
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@
var/inaccurate = 0
if(W.sharp == IS_SHARP_ITEM_BIG)
inaccurate = 1
else
else if(W.sharp != IS_SHARP_ITEM_ACCURATE)
return 1
if ( !istype(loc, /obj/structure/surface/table) && \
(!isturf(src.loc) || \
Expand All @@ -205,7 +205,7 @@
SPAN_NOTICE("[user] crudely slices \the [src] with [W]!"), \
SPAN_NOTICE("You crudely slice \the [src] with your [W]!") \
)
slices_lost = rand(1,min(1,round(slices_num/2)))
slices_lost = rand(1,max(1,round(slices_num/2)))
var/reagents_per_slice = reagents.total_volume/slices_num
for(var/i=1 to (slices_num-slices_lost))
var/obj/slice = new slice_path (src.loc)
Expand Down

0 comments on commit 6fbe1bd

Please sign in to comment.