Skip to content

Commit

Permalink
fix smoker quirk preferences
Browse files Browse the repository at this point in the history
  • Loading branch information
00-Steven committed May 21, 2024
1 parent 5a4c57c commit d343233
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion code/_globalvars/lists/quirks.dm
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ GLOBAL_LIST_INIT(possible_junkie_addictions, setup_junkie_addictions(list(
)))

///Options for the Smoker quirk to choose from
GLOBAL_LIST_INIT(possible_smoker_addictions, setup_junkie_addictions(list(
GLOBAL_LIST_INIT(possible_smoker_addictions, setup_smoker_addictions(list(
/obj/item/storage/fancy/cigarettes,
/obj/item/storage/fancy/cigarettes/cigpack_midori,
/obj/item/storage/fancy/cigarettes/cigpack_uplift,
Expand Down
6 changes: 6 additions & 0 deletions code/modules/client/preferences/addict.dm
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,12 @@
. -= addiction
.[addiction::name] = addiction

/proc/setup_smoker_addictions(list/possible_addictions)
. = possible_addictions
for(var/obj/item/storage/addiction as anything in .)
. -= addiction
.[format_text(addiction::name)] = addiction // Format text to remove \improper used in cigarette packs

/datum/preference/choiced/junkie
category = PREFERENCE_CATEGORY_MANUALLY_RENDERED
savefile_key = "junkie"
Expand Down

0 comments on commit d343233

Please sign in to comment.