Adds nicotine addiction to smokables

This commit is contained in:
Krausus
2015-04-30 09:22:21 -04:00
parent 8f686aab46
commit 54b979eb34
3 changed files with 35 additions and 33 deletions
+1 -1
View File
@@ -63,7 +63,7 @@ datum
if(current_list_element > reagent_list.len) current_list_element = 1
var/datum/reagent/current_reagent = reagent_list[current_list_element]
src.remove_reagent(current_reagent.id, 1)
src.remove_reagent(current_reagent.id, min(1, amount - total_transfered))
current_list_element++
total_transfered++
+2 -2
View File
@@ -11,14 +11,14 @@ datum/reagent/nicotine
reagent_state = LIQUID
color = "#60A584" // rgb: 96, 165, 132
overdose_threshold = 35
addiction_threshold = 30
addiction_threshold = 0.1
datum/reagent/nicotine/on_mob_life(var/mob/living/M as mob)
if(!M) M = holder.my_atom
var/smoke_message = pick("You can just feel your lungs dying!", "You feel relaxed.", "You feel calmed.", "You feel the lung cancer forming.", "You feel the money you wasted.", "You feel like a space cowboy.", "You feel rugged.")
if(prob(5))
M << "<span class='notice'>[smoke_message]</span>"
if(prob(50))
if(volume >= 0.2 && prob(50)) // Trace amounts of nicotine are ineffective
M.AdjustParalysis(-1)
M.AdjustStunned(-1)
M.AdjustWeakened(-1)