Skip to content

Commit

Permalink
Добавил взаимодействие с сыром.
Browse files Browse the repository at this point in the history
  • Loading branch information
Drsmail committed Jan 25, 2025
1 parent c3092b0 commit 5b52494
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions modular_ss220/mobs/code/simple_animal/friendly/mouse.dm
Original file line number Diff line number Diff line change
Expand Up @@ -209,6 +209,11 @@
playsound(loc, 'sound/items/eatfood.ogg', 30, FALSE, frequency = 1.5)
var/nutriment = F.reagents.get_reagent_amount("nutriment")
// Добовляю только нутриенты т.к. яды и другие вещества не обрабатываются по умолчанию.

if(istype(F, /obj/item/food/cheesewedge) || istype(F, /obj/item/food/sliceable/cheesewheel))
Druggy(2 SECONDS)
emote(pick("дёргается","быстро вертит хвостиком","издаёт продолжительный писк"))

if(nutriment > bitesize)
F.reagents.remove_reagent("nutriment", bitesize, TRUE)
adjust_nutrition(bitesize * NUTRITION_COEF)
Expand Down

0 comments on commit 5b52494

Please sign in to comment.