Skip to content

Commit

Permalink
Mmm soo good and tasty
Browse files Browse the repository at this point in the history
  • Loading branch information
AyIong committed Jan 20, 2024
1 parent 122cb68 commit 02f27d4
Show file tree
Hide file tree
Showing 5 changed files with 44 additions and 2 deletions.
8 changes: 6 additions & 2 deletions modular_ss220/food/_food.dme
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
#include "_food.dm"

// Drinks
#include "code/drinks.dm"
#include "code/food.dm"
#include "code/ingredients.dm"

// Food
#include "code/food/food.dm"
#include "code/food/nails.dm"
#include "code/food/ingredients.dm"
File renamed without changes.
File renamed without changes.
38 changes: 38 additions & 0 deletions modular_ss220/food/code/food/nails.dm
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
/obj/item/nails
name = "гвозди"
desc = "Хорошие гвозди, жаль бесполезные."
icon = 'modular_ss220/food/icons/food.dmi'
icon_state = "nails"

/obj/item/reagent_containers/food/snacks/nails
name = "жаренные гвозди"
desc = "Жаренных гвоздей не хочешь, не?"
icon = 'modular_ss220/food/icons/food.dmi'
icon_state = "nails_fried"
trash = /obj/item/trash/plate
bitesize = 6
antable = FALSE
list_reagents = list("iron" = 5, "nutriment" = 1)
tastes = list("гвозди" = 1)

/obj/item/reagent_containers/food/snacks/nails/On_Consume(mob/living/carbon/human/user)
. = ..()
to_chat(user, "<span class='warning'>Ты чувствуешь адскую боль во рту!</span>")
playsound(user, "bonebreak", 50, TRUE)
user.apply_damage(5, BRUTE, "head")
user.Confused(12 SECONDS)
user.EyeBlurry(6 SECONDS)
user.emote("scream")
user.bleed(5)

if(do_after(user, 5 SECONDS, needhand = FALSE, target = user, progress = FALSE, allow_moving = TRUE) && prob(50))
user.vomit(lost_nutrition = 0, blood = 10)
return ..()

/datum/food_processor_process/nails
input = /obj/item/stack/rods
output = /obj/item/nails

/datum/deepfryer_special/nails
input = /obj/item/nails
output = /obj/item/reagent_containers/food/snacks/nails
Binary file modified modular_ss220/food/icons/food.dmi
Binary file not shown.

0 comments on commit 02f27d4

Please sign in to comment.