Skip to content

Commit

Permalink
[MIRROR] Clowns will now always like bananas. [MDB IGNORE] (Skyrat-SS…
Browse files Browse the repository at this point in the history
…13#17300)

* Clowns will now always like bananas. (#70919)

## About The Pull Request
Clown's liver makes them like bananas, ignoring their racial food
preferences.

## Why It's Good For The Game
I don't think clown moths should vomit from eating bananas. They are
clowns, after all.
Also clowns are healed from eating them, so it's a bit silly that they
vomit from their funny medicine.

## Changelog

:cl:
balance: Non-human clowns enjoy eating bananas now.
/:cl:

* Clowns will now always like bananas.

Co-authored-by: Striders13 <53361823+Striders13@users.noreply.github.com>
  • Loading branch information
SkyratBot and Striders13 authored Nov 1, 2022
1 parent f4fc581 commit 3dfeccb
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions code/modules/hydroponics/grown/banana.dm
Original file line number Diff line number Diff line change
Expand Up @@ -28,12 +28,35 @@
juice_results = list(/datum/reagent/consumable/banana = 0)
distill_reagent = /datum/reagent/consumable/ethanol/bananahonk

///Override for checkliked callback
/obj/item/food/grown/banana/MakeEdible()
AddComponent(
/datum/component/edible,\
initial_reagents = food_reagents,\
food_flags = food_flags,\
foodtypes = foodtypes,\
volume = max_volume,\
eat_time = eat_time,\
tastes = tastes,\
eatverbs = eatverbs,\
bite_consumption = bite_consumption,\
microwaved_type = microwaved_type,\
junkiness = junkiness,\
check_liked = CALLBACK(src, .proc/check_liked),\
)

/obj/item/food/grown/banana/Initialize(mapload)
. = ..()
if(prob(1))
AddComponent(/datum/component/boomerang, boomerang_throw_range = throw_range + 4, thrower_easy_catch_enabled = TRUE)
desc += " The curve on this one looks particularly acute."

///Clowns will always like bananas.
/obj/item/food/grown/banana/proc/check_liked(fraction, mob/living/carbon/human/consumer)
var/obj/item/organ/internal/liver/liver = consumer.getorganslot(ORGAN_SLOT_LIVER)
if (!HAS_TRAIT(consumer, TRAIT_AGEUSIA) && liver && HAS_TRAIT(liver, TRAIT_COMEDY_METABOLISM))
return FOOD_LIKED

/obj/item/food/grown/banana/generate_trash(atom/location)
. = ..()
var/obj/item/grown/bananapeel/peel = .
Expand Down

0 comments on commit 3dfeccb

Please sign in to comment.