Skip to content

Commit

Permalink
halochange (#1023)
Browse files Browse the repository at this point in the history
  • Loading branch information
Kapu1178 committed Jul 11, 2024
1 parent d295599 commit 2498bcd
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 5 deletions.
5 changes: 3 additions & 2 deletions code/modules/mob/status_procs.dm
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,11 @@
/**
* Adds passed value to the drowsyness of a mob
*/
/mob/proc/adjust_drowsyness(amount)
/mob/proc/adjust_drowsyness(amount, up_to = INFINITY)
if(amount + drowsyness > up_to)
amount = max(up_to - drowsyness, 0)
drowsyness = max(drowsyness + amount, 0)


///Blind a mobs eyes by amount
/mob/proc/blind_eyes(amount)
adjust_blindness(amount)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -712,7 +712,11 @@
if(C.get_timed_status_effect_duration(/datum/status_effect/jitter) >= 6 SECONDS)
C.adjust_timed_status_effect(-6 SECONDS * removed, /datum/status_effect/jitter)

C.adjust_drowsyness(16 * removed)
if(C.stat == CONSCIOUS)
C.adjust_drowsyness(16 * removed, up_to = 180)
else
C.adjust_drowsyness((16 * removed) / 5, up_to = 180)

C.adjust_timed_status_effect(-3 * removed, /datum/status_effect/drugginess)

if (C.hallucination >= 5)
Expand Down
3 changes: 1 addition & 2 deletions code/modules/reagents/chemistry/reagents/toxin_reagents.dm
Original file line number Diff line number Diff line change
Expand Up @@ -418,8 +418,7 @@
reagent_state = SOLID
color = "#000067" // rgb: 0, 0, 103
toxpwr = 0
metabolization_rate = 1.5 * REAGENTS_METABOLISM

metabolization_rate = 0.3

/datum/reagent/toxin/chloralhydrate/affect_blood(mob/living/carbon/C, removed)
. = ..()
Expand Down

0 comments on commit 2498bcd

Please sign in to comment.