The Rollable Cigs and Chews Update (#7631)

This commit is contained in:
Wowzewow (Wezzy)
2019-12-21 06:48:17 +08:00
committed by Werner
parent 203b4a92a8
commit ff25557eb8
30 changed files with 563 additions and 118 deletions
+26 -5
View File
@@ -1232,10 +1232,10 @@
name = "tobacco"
seed_name = "tobacco"
display_name = "tobacco leaves"
mutants = list("finetobacco")
chems = list("tobacco" = list(1,10), "nicotine" = list(1,3))
mutants = list("finetobacco", "puretobacco", "badtobacco")
chems = list("tobacco" = list(1,10))
/datum/seed/tobacco/setup_traits()
/datum/seed/tobacco/New()
..()
set_trait(TRAIT_MATURATION,6)
set_trait(TRAIT_PRODUCTION,6)
@@ -1253,15 +1253,36 @@
name = "finetobacco"
seed_name = "fine tobacco"
display_name = "fine tobacco leaves"
chems = list("tobaccorich" = list(1,10), "nicotine" = list(3,5))
chems = list("tobaccofine" = list(1,10))
/datum/seed/tobacco/finetobacco/setup_traits()
/datum/seed/tobacco/finetobacco/New()
..()
set_trait(TRAIT_YIELD,4)
set_trait(TRAIT_PRODUCT_COLOUR,"#33571b")
set_trait(TRAIT_PLANT_COLOUR,"#33571b")
set_trait(TRAIT_NUTRIENT_CONSUMPTION, 0.20)
/datum/seed/tobacco/puretobacco //provides the pure nicotine reagent
name = "puretobacco"
seed_name = "succulent tobacco"
display_name = "succulent tobacco leaves"
chems = list("nicotine" = list(1,10))
/datum/seed/tobacco/puretobacco/New()
..()
set_trait(TRAIT_YIELD,3)
set_trait(TRAIT_JUICY,1)
set_trait(TRAIT_PRODUCT_COLOUR,"#b7c61a")
set_trait(TRAIT_PLANT_COLOUR,"#b7c61a")
set_trait(TRAIT_NUTRIENT_CONSUMPTION, 0.30)
/datum/seed/tobacco/bad
name = "badtobacco"
seed_name = "low-grade tobacco"
display_name = "low-grade tobacco leaves"
mutants = list("tobacco")
chems = list("tobaccobad" = list(1,10))
/datum/seed/peppercorn
name = "peppercorn"
seed_name = "peppercorn"
@@ -73,7 +73,7 @@
for(var/obj/W in T)
//Different classes of items give different commodities.
if(istype(W,/obj/item/cigbutt))
if(istype(W,/obj/item/trash/cigbutt))
if(plastic)
plastic.add_charge(500)
else if (istype(W, /obj/item/flame/match))
+2 -2
View File
@@ -80,9 +80,9 @@
if(icon_state == "paper_talisman")
return
else if (info && length(trim(info)))
icon_state = "paper_words"
icon_state = "[initial(icon_state)]_words"
else
icon_state = "paper"
icon_state = "[initial(icon_state)]"
/obj/item/paper/proc/update_space(var/new_text)
if(new_text)
@@ -856,6 +856,37 @@
M.Weaken(10 * removed * scale)
M.add_chemical_effect(CE_PULSE, 0.5)
/datum/reagent/tobacco
name = "Tobacco"
id = "tobacco"
description = "Cut and processed tobacco leaves."
taste_description = "tobacco"
reagent_state = SOLID
color = "#684b3c"
data = 0
scannable = 1
var/nicotine = REM * 0.2
fallback_specific_heat = 1
value = 3
/datum/reagent/tobacco/affect_blood(var/mob/living/carbon/M, var/alien, var/removed)
..()
M.reagents.add_reagent("nicotine")
/datum/reagent/tobacco/fine
name = "Fine Tobacco"
id = "tobaccofine"
taste_description = "fine tobacco"
data = 0
value = 5
/datum/reagent/tobacco/bad
name = "Terrible Tobacco"
id = "tobaccobad"
taste_description = "acrid smoke"
data = 0
value = 0
/datum/reagent/mental/methylphenidate
name = "Methylphenidate"
id = "methylphenidate"