|
795 | 795 | ..() |
796 | 796 | . = 1 |
797 | 797 |
|
798 | | -/datum/reagent/drug/three_eye |
799 | | - name = "Three Eye" |
800 | | - taste_description = "liquid starlight" |
801 | | - description = "Three Eye is one of the most notorious narcotics to ever come out of the independant habitats, allowing those who take it to see through walls." |
802 | | - reagent_state = LIQUID |
803 | | - color = "#ccccff" |
804 | | - metabolization_rate = REAGENTS_METABOLISM |
805 | | - overdose_threshold = 20 //please don't consume pure caffeine |
806 | | - addiction_threshold = 20 //the addiction isn't that dangerous |
807 | | - trippy = FALSE |
808 | | - var/list/overdose_text = list("Your head pounds.", "You feel lethargic.", "You feel drowsy.", "You feel weak.", "You just want to sleep.") |
809 | | - |
810 | | -/datum/reagent/drug/caffeine/on_mob_life(mob/living/carbon/M) |
811 | | - . = ..() |
812 | | - if(prob(1)) |
813 | | - var/caffeine_message = pick("You feel alert.") |
814 | | - to_chat(M, span_notice("[caffeine_message]")) |
815 | | - M.adjust_drowsiness(-6 SECONDS * REM) |
816 | | - M.AdjustSleeping(-4 SECONDS, FALSE) |
817 | | - M.adjust_dizzy(-4 SECONDS * REM) |
818 | | - |
819 | | -/datum/reagent/drug/caffeine/overdose_process(mob/living/M) |
820 | | - . = ..() |
821 | | - ADD_TRAIT(L, TRAIT_THERMAL_VISION, type) |
822 | | - L.add_client_colour(/datum/client_colour/thirdeye) |
823 | | - L.update_sight() |
824 | | - |
825 | | -/datum/reagent/drug/three_eye/on_mob_end_metabolize(mob/living/L) |
826 | | - REMOVE_TRAIT(L, TRAIT_THERMAL_VISION, type) |
827 | | - L.remove_client_colour(/datum/client_colour/thirdeye) |
828 | | - L.update_sight() |
829 | | - return ..() |
830 | | - |
831 | | -/datum/reagent/drug/caffeine/proc/apply_drowsy(mob/living/M) |
832 | | - M.adjust_drowsiness_up_to(3 SECONDS * REM, 10 SECONDS) |
833 | | - if(prob(50)) |
834 | | - to_chat(M, span_warning(pick(overdose_text))) |
835 | | - |
836 | 798 | /** |
837 | 799 | * doesn't call the parent addiction acts because it doesn't function the same way |
838 | 800 | */ |
|
0 commit comments