Skip to content

Commit

Permalink
[MIRROR] Fixes a bug with hash grinding (#5270)
Browse files Browse the repository at this point in the history
* Fixes a bug with hash grinding (#4716)

Fixes hash grinding

* [MIRROR] Fixes a bug with hash grinding

---------

Co-authored-by: Bloop <13398309+vinylspiders@users.noreply.github.com>
Co-authored-by: StealsThePRs <StealsThe@Email.com>
  • Loading branch information
3 people authored Jan 8, 2025
1 parent b65126a commit a9016d1
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 7 deletions.
8 changes: 4 additions & 4 deletions code/modules/hydroponics/grown/cannabis.dm
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
/obj/item/seeds/cannabis/white,
/obj/item/seeds/cannabis/ultimate,
)
reagents_add = list(/datum/reagent/drug/thc = 0.15) //NOVA EDIT - MORENARCOTICS - axed lipolicide, replaced space drugs with thc
reagents_add = list(/datum/reagent/drug/thc = 0.15) // NOVA EDIT - CHANGE - MORENARCOTICS - ORIGINAL: reagents_add = list(/datum/reagent/drug/cannabis = 0.15)


/obj/item/seeds/cannabis/rainbow
Expand All @@ -44,7 +44,7 @@
plantname = "Deathweed"
product = /obj/item/food/grown/cannabis/death
mutatelist = null
reagents_add = list(/datum/reagent/toxin/cyanide = 0.35, /datum/reagent/drug/thc = 0.15) //NOVA EDIT - MORENARCOTICS
reagents_add = list(/datum/reagent/toxin/cyanide = 0.35, /datum/reagent/drug/thc = 0.15) // NOVA EDIT CHANGE - MORENARCOTICS - ORIGINAL: agents_add = list(/datum/reagent/toxin/cyanide = 0.35, /datum/reagent/drug/cannabis = 0.15)
rarity = 40

/obj/item/seeds/cannabis/white
Expand All @@ -57,7 +57,7 @@
instability = 30
product = /obj/item/food/grown/cannabis/white
mutatelist = null
reagents_add = list(/datum/reagent/medicine/omnizine = 0.35, /datum/reagent/drug/thc = 0.15) //NOVA EDIT - MORENARCOTICS
reagents_add = list(/datum/reagent/medicine/omnizine = 0.35, /datum/reagent/drug/thc = 0.15) // NOVA EDIT CHANGE - MORENARCOTICS - ORIGINAL: reagents_add = list(/datum/reagent/medicine/omnizine = 0.35, /datum/reagent/drug/cannabis = 0.15)
rarity = 40


Expand All @@ -72,7 +72,7 @@
product = /obj/item/food/grown/cannabis/ultimate
genes = list(/datum/plant_gene/trait/repeated_harvest, /datum/plant_gene/trait/glow/green, /datum/plant_gene/trait/modified_volume/omega_weed)
mutatelist = null
reagents_add = list(/datum/reagent/drug/thc = 0.3, //NOVA EDIT CHANGE - MORE NARCOTICS - ORIGINAL: reagents_add = list(/datum/reagent/drug/cannabis = 0.3,
reagents_add = list(/datum/reagent/drug/thc = 0.3, // NOVA EDIT CHANGE - MORE NARCOTICS - ORIGINAL: reagents_add = list(/datum/reagent/drug/cannabis = 0.3,
/datum/reagent/toxin/mindbreaker = 0.3,
/datum/reagent/mercury = 0.15,
/datum/reagent/lithium = 0.15,
Expand Down
7 changes: 4 additions & 3 deletions modular_nova/modules/morenarcotics/code/thc.dm
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
/obj/item/food/grown/cannabis/on_grind()
. = ..()
if(HAS_TRAIT(src, TRAIT_DRIED))
grind_results = list(/datum/reagent/drug/thc/hash = 0.15*src.seed.potency)
reagents.clear_reagents() //prevents anything else from coming out
if(!reagents)
return ..()
reagents.convert_reagent(/datum/reagent/drug/thc, /datum/reagent/drug/thc/hash, 1, include_source_subtypes = FALSE)
return ..()

/datum/chemical_reaction/hash
required_reagents = list(/datum/reagent/drug/thc/hash = 10)
Expand Down

0 comments on commit a9016d1

Please sign in to comment.