section one
This commit is contained in:
@@ -87,7 +87,7 @@
|
||||
hitsound = 'sound/weapons/bladeslice.ogg'
|
||||
attack_verb = list("stabbed", "slashed", "attacked")
|
||||
var/icon/broken_outline = icon('icons/obj/drinks.dmi', "broken")
|
||||
sharpness = IS_SHARP
|
||||
sharpness = SHARP_EDGED
|
||||
|
||||
/obj/item/broken_bottle/Initialize()
|
||||
. = ..()
|
||||
|
||||
@@ -247,21 +247,9 @@ All foods are distributed among various categories. Use common sense.
|
||||
to_chat(user, "<span class='warning'>You cannot slice [src] here! You need a table or at least a tray.</span>")
|
||||
return FALSE
|
||||
|
||||
var/slices_lost = 0
|
||||
if (accuracy >= IS_SHARP_ACCURATE)
|
||||
user.visible_message( \
|
||||
"[user] slices [src].", \
|
||||
"<span class='notice'>You slice [src].</span>" \
|
||||
)
|
||||
else
|
||||
user.visible_message( \
|
||||
"[user] inaccurately slices [src] with [W]!", \
|
||||
"<span class='notice'>You inaccurately slice [src] with your [W]!</span>" \
|
||||
)
|
||||
slices_lost = rand(1,min(1,round(slices_num/2)))
|
||||
|
||||
user.visible_message("[user] slices [src].", "<span class='notice'>You slice [src].</span>")
|
||||
var/reagents_per_slice = reagents.total_volume/slices_num
|
||||
for(var/i=1 to (slices_num-slices_lost))
|
||||
for(var/i=1 to slices_num)
|
||||
var/obj/item/reagent_containers/food/snacks/slice = new slice_path (loc)
|
||||
initialize_slice(slice, reagents_per_slice)
|
||||
qdel(src)
|
||||
|
||||
Reference in New Issue
Block a user