mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-07-15 00:53:23 +01:00
tweaks
This commit is contained in:
@@ -35,18 +35,21 @@
|
||||
|
||||
|
||||
if(method == INGEST) //Yes, even Xenos can get addicted to drugs.
|
||||
if(prob(self.addiction_chance) && !is_type_in_list(self, M.reagents.addiction_list))
|
||||
M << "<span class='danger'>You suddenly feel invigorated and guilty...</span>"
|
||||
var/datum/reagent/new_reagent = new self.type()
|
||||
new_reagent.last_addiction_dose = world.timeofday
|
||||
M.reagents.addiction_list.Add(new_reagent)
|
||||
else if(is_type_in_list(self, M.reagents.addiction_list))
|
||||
M << "<span class='notice'>You feel slightly better, but for how long?</span>"
|
||||
for(var/A in M.reagents.addiction_list)
|
||||
var/datum/reagent/AD = A
|
||||
if(AD && istype(AD, self))
|
||||
AD.last_addiction_dose = world.timeofday
|
||||
AD.addiction_stage = 1
|
||||
var/can_become_addicted = M.reagents.reaction_check(M, self)
|
||||
|
||||
if(can_become_addicted)
|
||||
if(prob(self.addiction_chance) && !is_type_in_list(self, M.reagents.addiction_list))
|
||||
M << "<span class='danger'>You suddenly feel invigorated and guilty...</span>"
|
||||
var/datum/reagent/new_reagent = new self.type()
|
||||
new_reagent.last_addiction_dose = world.timeofday
|
||||
M.reagents.addiction_list.Add(new_reagent)
|
||||
else if(is_type_in_list(self, M.reagents.addiction_list))
|
||||
M << "<span class='notice'>You feel slightly better, but for how long?</span>"
|
||||
for(var/A in M.reagents.addiction_list)
|
||||
var/datum/reagent/AD = A
|
||||
if(AD && istype(AD, self))
|
||||
AD.last_addiction_dose = world.timeofday
|
||||
AD.addiction_stage = 1
|
||||
return 1
|
||||
|
||||
/datum/reagent/proc/reaction_obj(var/obj/O, var/volume) //By default we transfer a small part of the reagent to the object
|
||||
|
||||
@@ -17,7 +17,6 @@
|
||||
var/vomit_start = 180 //amount absorbed after which mob starts vomitting
|
||||
var/blur_start = 260 //amount absorbed after which mob starts getting blurred vision
|
||||
var/pass_out = 325 //amount absorbed after which mob starts passing out
|
||||
addiction_chance = 4 //chance to become alcoholic
|
||||
|
||||
/datum/reagent/ethanol/on_mob_life(var/mob/living/M as mob, var/alien)
|
||||
// Sobering multiplier.
|
||||
|
||||
Reference in New Issue
Block a user