mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-07-21 12:04:48 +01:00
use_brain_mod
This commit is contained in:
@@ -22,7 +22,7 @@
|
||||
med_hud_set_status()
|
||||
handle_hud_icons_health()
|
||||
|
||||
/mob/living/carbon/human/adjustBrainLoss(amount, updating = TRUE, ignore_brain_mod = FALSE)
|
||||
/mob/living/carbon/human/adjustBrainLoss(amount, updating = TRUE, use_brain_mod = TRUE)
|
||||
if(status_flags & GODMODE)
|
||||
return STATUS_UPDATE_NONE //godmode
|
||||
|
||||
@@ -30,7 +30,7 @@
|
||||
var/obj/item/organ/internal/brain/sponge = get_int_organ(/obj/item/organ/internal/brain)
|
||||
if(sponge)
|
||||
if(dna.species && amount > 0)
|
||||
if(!ignore_brain_mod)
|
||||
if(use_brain_mod)
|
||||
amount = amount * dna.species.brain_mod
|
||||
sponge.damage = Clamp(sponge.damage + amount, 0, 120)
|
||||
if(sponge.damage >= 120)
|
||||
@@ -40,7 +40,7 @@
|
||||
update_stat("adjustBrainLoss")
|
||||
return STATUS_UPDATE_STAT
|
||||
|
||||
/mob/living/carbon/human/setBrainLoss(amount, updating = TRUE, ignore_brain_mod = FALSE)
|
||||
/mob/living/carbon/human/setBrainLoss(amount, updating = TRUE, use_brain_mod = TRUE)
|
||||
if(status_flags & GODMODE)
|
||||
return STATUS_UPDATE_NONE //godmode
|
||||
|
||||
@@ -48,7 +48,7 @@
|
||||
var/obj/item/organ/internal/brain/sponge = get_int_organ(/obj/item/organ/internal/brain)
|
||||
if(sponge)
|
||||
if(dna.species && amount > 0)
|
||||
if(!ignore_brain_mod)
|
||||
if(use_brain_mod)
|
||||
amount = amount * dna.species.brain_mod
|
||||
sponge.damage = Clamp(amount, 0, 120)
|
||||
if(sponge.damage >= 120)
|
||||
|
||||
@@ -283,7 +283,7 @@
|
||||
|
||||
/obj/item/organ/internal/honktumor/cursed/on_life() //No matter what you do, no matter who you are, no matter where you go, you're always going to be a fat, stuttering dimwit.
|
||||
..()
|
||||
owner.setBrainLoss(80, ignore_brain_mod = TRUE)
|
||||
owner.setBrainLoss(80, use_brain_mod = FALSE)
|
||||
owner.set_nutrition(9000)
|
||||
owner.overeatduration = 9000
|
||||
|
||||
|
||||
Reference in New Issue
Block a user