mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-25 14:08:31 +01:00
Upstream lint fixes (#3186)
Fixes all the failing grep checks in #3157, doesn't fix the define sanity fails because im tired 
This commit is contained in:
@@ -17,31 +17,31 @@
|
||||
|
||||
/// Adds a moodlet entry based on if the mob currently has alcohol processing in their system.
|
||||
/datum/mood/proc/get_alcohol_processing(mob/user)
|
||||
if(user.reagents.reagent_list.len)
|
||||
for(var/datum/reagent/consumable/ethanol/booze in user.reagents.reagent_list)
|
||||
return span_notice("I'm still processing that alcohol I drank...\n")
|
||||
if(user.reagents.reagent_list.len)
|
||||
for(var/datum/reagent/consumable/ethanol/booze in user.reagents.reagent_list)
|
||||
return span_notice("I'm still processing that alcohol I drank...\n")
|
||||
|
||||
/// Adds a moodlet entry based on the current blood alcohol content of the mob.
|
||||
/datum/mood/proc/get_drunk_mood(mob/user)
|
||||
var/mob/living/target = user
|
||||
var/blood_alcohol_content = target.get_blood_alcohol_content()
|
||||
switch(blood_alcohol_content)
|
||||
if(BAC_STAGE_1_ACTIVE to BAC_STAGE_2_WARN)
|
||||
return span_notice("Had a drink, time to relax!\n")
|
||||
if(BAC_STAGE_2_WARN to BAC_STAGE_2_ACTIVE)
|
||||
return span_nicegreen("Now I'm starting to feel that drink.\n")
|
||||
if(BAC_STAGE_2_ACTIVE to BAC_STAGE_3_WARN)
|
||||
return span_nicegreen("A bit tipsy, this feels good!\n")
|
||||
if(BAC_STAGE_3_WARN to BAC_STAGE_3_ACTIVE)
|
||||
return span_nicegreen("Those drinks are really starting to hit!\n")
|
||||
if(BAC_STAGE_3_ACTIVE to BAC_STAGE_4_WARN)
|
||||
return span_nicegreen("I can't remember how many I've had, but I feel great!\n")
|
||||
if(BAC_STAGE_4_WARN to BAC_STAGE_4_ACTIVE)
|
||||
return span_warning("I think I've had too much to drink... I should probably stop... drink some water...\n")
|
||||
if(BAC_STAGE_4_ACTIVE to BAC_STAGE_5_WARN)
|
||||
return span_bolddanger("I'm not feeling so hot...\n")
|
||||
if(BAC_STAGE_5_WARN to INFINITY)
|
||||
return span_bolddanger("Is there a doctor around? I really don't feel good...\n")
|
||||
var/mob/living/target = user
|
||||
var/blood_alcohol_content = target.get_blood_alcohol_content()
|
||||
switch(blood_alcohol_content)
|
||||
if(BAC_STAGE_1_ACTIVE to BAC_STAGE_2_WARN)
|
||||
return span_notice("Had a drink, time to relax!\n")
|
||||
if(BAC_STAGE_2_WARN to BAC_STAGE_2_ACTIVE)
|
||||
return span_nicegreen("Now I'm starting to feel that drink.\n")
|
||||
if(BAC_STAGE_2_ACTIVE to BAC_STAGE_3_WARN)
|
||||
return span_nicegreen("A bit tipsy, this feels good!\n")
|
||||
if(BAC_STAGE_3_WARN to BAC_STAGE_3_ACTIVE)
|
||||
return span_nicegreen("Those drinks are really starting to hit!\n")
|
||||
if(BAC_STAGE_3_ACTIVE to BAC_STAGE_4_WARN)
|
||||
return span_nicegreen("I can't remember how many I've had, but I feel great!\n")
|
||||
if(BAC_STAGE_4_WARN to BAC_STAGE_4_ACTIVE)
|
||||
return span_warning("I think I've had too much to drink... I should probably stop... drink some water...\n")
|
||||
if(BAC_STAGE_4_ACTIVE to BAC_STAGE_5_WARN)
|
||||
return span_bolddanger("I'm not feeling so hot...\n")
|
||||
if(BAC_STAGE_5_WARN to INFINITY)
|
||||
return span_bolddanger("Is there a doctor around? I really don't feel good...\n")
|
||||
|
||||
#undef BAC_STAGE_1_ACTIVE
|
||||
#undef BAC_STAGE_2_WARN
|
||||
|
||||
Reference in New Issue
Block a user