* map tweaks/shuttle engines * helpers and defines * global/onclick * controllers and datums * mapping * game folder * some other stuff * some modules * modules that aren't mobs * some mob stuff * new player stuff * mob living * silicon stuff * simple animal things * carbon/ayylmao * update_icons * carbon/human * sounds and tools * icons and stuff * hippie grinder changes + tgui * kitchen.dmi * compile issues fixed * mapfix * Mapfixes 2.0 * mapedit2.0 * mapmerger pls * Revert "mapedit2.0" This reverts commit 74139a3cacea10df7aafca06c0a10bd3daf3a481. * clean up vore folder + 2 hotfixes * admin ticket refinement * Blob tweaks and LAZYADD * LAZYADD IS LAZY * Magic strings purged * DEFINES NEED HIGHER PRIORITIES * Only a sleepless idiot deals in absolute TRUE|FALSE * u h g * progress bar fix * reverts ticket logs * there's always that one guy * fixes and stuff * 2/27 fixes * game folder stuff * stats * some modules again * clothing stuff gets vg clothing out of the main files * everything not mobs again * mob stuff * maps, tgui, sql stuff * icons * additional fixes and compile errors * don't need this anymore * Oh right this isn't needed anymore * maint bar re-added * that doesn't need to be here * stupid events * wtfeven * probably makes Travis happy * don't care to fix the grinder atm * fixes vending sprites, changes turret * lethal, not lethals * overylays are finicky creatures * lazy fix for bleeding edgy (#252) * map tweaks/shuttle engines * helpers and defines * global/onclick * controllers and datums * mapping * game folder * some other stuff * some modules * modules that aren't mobs * some mob stuff * new player stuff * mob living * silicon stuff * simple animal things * carbon/ayylmao * update_icons * carbon/human * sounds and tools * icons and stuff * hippie grinder changes + tgui * kitchen.dmi * compile issues fixed * mapfix * Mapfixes 2.0 * mapedit2.0 * mapmerger pls * Revert "mapedit2.0" This reverts commit 74139a3cacea10df7aafca06c0a10bd3daf3a481. * clean up vore folder + 2 hotfixes * admin ticket refinement * Blob tweaks and LAZYADD * LAZYADD IS LAZY * Magic strings purged * DEFINES NEED HIGHER PRIORITIES * Only a sleepless idiot deals in absolute TRUE|FALSE * u h g * progress bar fix * reverts ticket logs * there's always that one guy * fixes and stuff * 2/27 fixes * game folder stuff * stats * some modules again * clothing stuff gets vg clothing out of the main files * everything not mobs again * mob stuff * maps, tgui, sql stuff * icons * additional fixes and compile errors * don't need this anymore * Oh right this isn't needed anymore * maint bar re-added * that doesn't need to be here * stupid events * wtfeven * probably makes Travis happy * don't care to fix the grinder atm * fixes vending sprites, changes turret * lethal, not lethals * overylays are finicky creatures
32 lines
1.0 KiB
Plaintext
32 lines
1.0 KiB
Plaintext
#define DEFAULT_TASTE_SENSITIVITY 15
|
|
|
|
/mob/living
|
|
var/last_taste_time
|
|
var/last_taste_text
|
|
|
|
/mob/living/proc/get_taste_sensitivity()
|
|
return DEFAULT_TASTE_SENSITIVITY
|
|
|
|
/mob/living/carbon/get_taste_sensitivity()
|
|
var/obj/item/organ/tongue/tongue = getorganslot("tongue")
|
|
if(istype(tongue))
|
|
. = tongue.taste_sensitivity
|
|
else
|
|
. = 101 // can't taste anything without a tongue
|
|
|
|
// non destructively tastes a reagent container
|
|
/mob/living/proc/taste(datum/reagents/from)
|
|
if(last_taste_time + 50 < world.time)
|
|
var/taste_sensitivity = get_taste_sensitivity()
|
|
var/text_output = from.generate_taste_message(taste_sensitivity)
|
|
// We dont want to spam the same message over and over again at the
|
|
// person. Give it a bit of a buffer.
|
|
if(text_output != last_taste_text || last_taste_time + 100 < world.time)
|
|
src << "<span class='notice'>You can taste [text_output].</span>"
|
|
// "somthing indescribable" -> too many tastes, not enough flavor.
|
|
|
|
last_taste_time = world.time
|
|
last_taste_text = text_output
|
|
|
|
#undef DEFAULT_TASTE_SENSITIVITY
|