Skip to content

[DNM] Weed day! #6409

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
36 changes: 36 additions & 0 deletions code/datums/station_traits/positive_traits.dm
Original file line number Diff line number Diff line change
Expand Up @@ -358,5 +358,41 @@ monkestation end */
trim_state = "trim_stationengineer"
department_color = COLOR_ASSISTANT_GRAY

/datum/station_trait/weed_day
name = "Weed Day"
report_message = "It's Weed Day! Everyone is in a good mood, and all crewmembers are given a pack of boofies."
trait_type = STATION_TRAIT_POSITIVE
weight = 1
force = TRUE
show_in_report = TRUE

/datum/station_trait/weed_day/New()
. = ..()
RegisterSignal(SSdcs, COMSIG_GLOB_JOB_AFTER_SPAWN, PROC_REF(on_job_after_spawn))

/datum/station_trait/weed_day/proc/on_job_after_spawn(datum/source, datum/job/job, mob/living/spawned_mob)
SIGNAL_HANDLER

var/obj/item/storage/fancy/cigarettes/weedpack

if (prob(70))
weedpack = new /obj/item/storage/fancy/cigarettes/cigpack_mindbreaker(spawned_mob)
else
weedpack = new /obj/item/storage/fancy/cigarettes/cigpack_cannabis(spawned_mob)

if (!spawned_mob.equip_to_slot_if_possible(weedpack, ITEM_SLOT_HANDS, disable_warning = TRUE))
if (!spawned_mob.equip_to_slot_if_possible(weedpack, ITEM_SLOT_POCKETS, disable_warning = TRUE))
spawned_mob.equip_to_slot_or_del(weedpack, ITEM_SLOT_BACKPACK)

// Some already have a lighter from their cig trait
if (!(locate(/obj/item/lighter) in spawned_mob.contents))
var/obj/item/lighter/lighter = new /obj/item/lighter(spawned_mob)
if (!spawned_mob.equip_to_slot_if_possible(lighter, ITEM_SLOT_HANDS, disable_warning = TRUE))
if (!spawned_mob.equip_to_slot_if_possible(lighter, ITEM_SLOT_POCKETS, disable_warning = TRUE))
spawned_mob.equip_to_slot_or_del(lighter, ITEM_SLOT_BACKPACK)

if(prob(15))
spawned_mob.adjust_drugginess(rand(5 SECONDS, 15 SECONDS))

#undef PARTY_COOLDOWN_LENGTH_MIN
#undef PARTY_COOLDOWN_LENGTH_MAX
128 changes: 87 additions & 41 deletions code/game/objects/items/cigs_lighters.dm
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,92 @@ ZIPPO
CIGARETTE PACKETS ARE IN FANCY.DM
*/

GLOBAL_LIST_INIT(rollie_names, list(
"bifta",
"bifter",
"bird",
"blunt",
"bloint",
"boof",
"boofer",
"bomber",
"bone",
"bun",
"doink",
"doob",
"doober",
"doobie",
"dutch",
"fatty",
"hogger",
"hooter",
"hootie",
"\improper J",
"jay",
"jimmy",
"joint",
"juju",
"jeebie weebie",
"number",
"owl",
"phattie",
"puffer",
"reef",
"reefer",
"rollie",
"scoobie",
"shorty",
"spiff",
"spliff",
"toke",
"torpedo",
"zoot",
"zooter"
))

GLOBAL_LIST_INIT(rollie_names_plural, list(
"biftas",
"bifters",
"birds",
"blunts",
"bloits",
"boofs",
"boofers",
"bombers",
"bones",
"buns",
"doinks",
"doobs",
"doobers",
"doobies",
"dutches",
"fatties",
"hoggars",
"hooters",
"hooties",
"\improper Js",
"jays",
"jimmies",
"joints",
"jujus",
"jeebie weebies",
"numbers",
"owls",
"phatties",
"puffers",
"reefs",
"reefers",
"rollies",
"scoobies",
"shorties",
"spiffs",
"spliffs",
"tokes",
"torpedoes",
"zoots",
"zooters"
))

///////////
//MATCHES//
///////////
Expand Down Expand Up @@ -568,47 +654,7 @@ CIGARETTE PACKETS ARE IN FANCY.DM
supports_variations_flags = CLOTHING_SNOUTED_VARIATION

/obj/item/clothing/mask/cigarette/rollie/Initialize(mapload)
name = pick(list(
"bifta",
"bifter",
"bird",
"blunt",
"bloint",
"boof",
"boofer",
"bomber",
"bone",
"bun",
"doink",
"doob",
"doober",
"doobie",
"dutch",
"fatty",
"hogger",
"hooter",
"hootie",
"\improper J",
"jay",
"jimmy",
"joint",
"juju",
"jeebie weebie",
"number",
"owl",
"phattie",
"puffer",
"reef",
"reefer",
"rollie",
"scoobie",
"shorty",
"spiff",
"spliff",
"toke",
"torpedo",
"zoot",
"zooter"))
name = pick(GLOB.rollie_names)
. = ..()
pixel_x = rand(-5, 5)
pixel_y = rand(-5, 5)
Expand Down
Loading