Page 1 of 1

Unholy water code

Posted: Tue Jun 02, 2015 9:36 pm
by qwert
How does it heal cultists/ rek non cultists codewise? Is it possible to change the antag type for this to make witch purging chem?

Re: Unholy water code

Posted: Tue Jun 02, 2015 9:52 pm
by Scones

Code: Select all

if(iscultist(M))
Yes - It checks if the mind of the mob is a cultist, and has different effects depending on this being true or false.

Here's all the Unholy Water code, if you were interested.

Source: https://github.com/tgstation/-tg-statio ... eagents.dm
Spoiler:

Code: Select all

datum/reagent/fuel/unholywater		//if you somehow managed to extract this from someone, dont splash it on yourself and have a smoke
	name = "Unholy Water"
	id = "unholywater"
	description = "Something that shouldn't exist on this plane of existance."
datum/reagent/fuel/unholywater/on_mob_life(var/mob/living/M as mob)
	M.adjustBrainLoss(3)
	if(iscultist(M))
		M.status_flags |= GOTTAGOFAST
		M.drowsyness = max(M.drowsyness-5, 0)
		M.AdjustParalysis(-2)
		M.AdjustStunned(-2)
		M.AdjustWeakened(-2)
	else
		M.adjustToxLoss(2)
		M.adjustFireLoss(2)
		M.adjustOxyLoss(2)
		M.adjustBruteLoss(2)
	holder.remove_reagent(src.id, 1)

Re: Unholy water code

Posted: Tue Jun 02, 2015 10:12 pm
by Xhuis
I still don't understand why cultists take brain damage. It impedes their invoking of runes which severely cripples the cultist.

Re: Unholy water code

Posted: Tue Jun 02, 2015 10:15 pm
by Scones
Xhuis wrote:I still don't understand why cultists take brain damage. It impedes their invoking of runes which severely cripples the cultist.
That reminds me - I only now noticed that Hell Water causes brain and toxin damage, as well as the obvious fire.

Re: Unholy water code

Posted: Wed Jun 03, 2015 9:37 pm
by Malkevin
Hell water is a "You're fucked, enjoy the ride" chem, as its a punishment for trying to summon narsie at the wrong time or gibbing ian.

"I still don't understand why cultists take brain damage. It impedes their invoking of runes which severely cripples the cultist."
Look at the code, then ask that question again.

Its a trade off to stop people juicing up on unholy water, the reason for the buffs is to give cultists a fighting chance when they get rescued.
Alternatively, if time is on your side, you can wait out the chemical to decult them, then you can you can just reconvert them straight away as the holy water is purged from their system.