mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-23 05:00:55 +01:00
[NO GBP] Fixes Alcoholic quirk selection and addiction in general not being forever. (#82403)
## About The Pull Request Fixes #82346 Also fixes a bug where Junkie, Smoker, and Alcoholic would not give you more addiction once yours ran out. ## Changelog 🆑 fix: Fixes Alcoholic quirk selection fix: Fixes Junkie, Smoker, and Alcoholic not giving you more addiction when you come clean. /🆑
This commit is contained in:
@@ -12,10 +12,10 @@ GLOBAL_LIST_INIT(nearsighted_glasses, list(
|
||||
|
||||
///Options for the prosthetic limb quirk to choose from
|
||||
GLOBAL_LIST_INIT(limb_choice, list(
|
||||
"Left arm" = /obj/item/bodypart/arm/left/robot/surplus,
|
||||
"Right arm" = /obj/item/bodypart/arm/right/robot/surplus,
|
||||
"Left leg" = /obj/item/bodypart/leg/left/robot/surplus,
|
||||
"Right leg" = /obj/item/bodypart/leg/right/robot/surplus,
|
||||
"Left Arm" = /obj/item/bodypart/arm/left/robot/surplus,
|
||||
"Right Arm" = /obj/item/bodypart/arm/right/robot/surplus,
|
||||
"Left Leg" = /obj/item/bodypart/leg/left/robot/surplus,
|
||||
"Right Leg" = /obj/item/bodypart/leg/right/robot/surplus,
|
||||
))
|
||||
|
||||
///Transhumanist quirk
|
||||
@@ -54,7 +54,7 @@ GLOBAL_LIST_INIT(possible_smoker_addictions, setup_junkie_addictions(list(
|
||||
)))
|
||||
|
||||
///Options for the Alcoholic quirk to choose from
|
||||
GLOBAL_LIST_INIT(possible_alcoholic_addictions, setup_junkie_addictions(list(
|
||||
GLOBAL_LIST_INIT(possible_alcoholic_addictions, list(
|
||||
"Beekhof Blauw Curaçao" = list("bottlepath" = /obj/item/reagent_containers/cup/glass/bottle/curacao, "reagent" = /datum/reagent/consumable/ethanol/curacao),
|
||||
"Buckin' Bronco's Applejack" = list("bottlepath" = /obj/item/reagent_containers/cup/glass/bottle/applejack, "reagent" = /datum/reagent/consumable/ethanol/applejack),
|
||||
"Voltaic Yellow Wine" = list("bottlepath" = /obj/item/reagent_containers/cup/glass/bottle/wine_voltaic, "reagent" = /datum/reagent/consumable/ethanol/wine_voltaic),
|
||||
@@ -79,7 +79,7 @@ GLOBAL_LIST_INIT(possible_alcoholic_addictions, setup_junkie_addictions(list(
|
||||
"Breezy Shoals Coconut Rum" = list("bottlepath" = /obj/item/reagent_containers/cup/glass/bottle/coconut_rum, "reagent" = /datum/reagent/consumable/ethanol/coconut_rum),
|
||||
"Moonlabor Yūyake" = list("bottlepath" = /obj/item/reagent_containers/cup/glass/bottle/yuyake, "reagent" = /datum/reagent/consumable/ethanol/yuyake),
|
||||
"Shu-Kouba Straight Shochu" = list("bottlepath" = /obj/item/reagent_containers/cup/glass/bottle/shochu, "reagent" = /datum/reagent/consumable/ethanol/shochu)
|
||||
)))
|
||||
))
|
||||
|
||||
///Options for Prosthetic Organ
|
||||
GLOBAL_LIST_INIT(organ_choice, list(
|
||||
|
||||
@@ -194,13 +194,16 @@
|
||||
customization_options = list(/datum/preference/choiced/alcoholic)
|
||||
|
||||
/datum/quirk/item_quirk/addict/alcoholic/New()
|
||||
drug_container_type = GLOB.possible_alcoholic_addictions[pick(GLOB.possible_alcoholic_addictions["bottlepath"])]
|
||||
var/random_alcohol = pick(GLOB.possible_alcoholic_addictions)
|
||||
drug_container_type = GLOB.possible_alcoholic_addictions[random_alcohol]["bottlepath"]
|
||||
favorite_alcohol = GLOB.possible_alcoholic_addictions[random_alcohol]["reagent"]
|
||||
return ..()
|
||||
|
||||
/datum/quirk/item_quirk/addict/alcoholic/add_unique(client/client_source)
|
||||
var/addiction = client_source?.prefs.read_preference(/datum/preference/choiced/alcoholic)
|
||||
if(addiction && (addiction != "Random"))
|
||||
drug_container_type = GLOB.possible_alcoholic_addictions[addiction]["bottlepath"]
|
||||
favorite_alcohol = GLOB.possible_alcoholic_addictions[addiction]["reagent"]
|
||||
return ..()
|
||||
|
||||
/datum/quirk/item_quirk/addict/alcoholic/post_add()
|
||||
@@ -210,10 +213,7 @@
|
||||
if(isnull(brandy_container))
|
||||
stack_trace("Alcoholic quirk added while the GLOB.alcohol_containers is (somehow) not initialized!")
|
||||
brandy_container = new drug_container_type
|
||||
favorite_alcohol = brandy_container["reagent"]
|
||||
qdel(brandy_container)
|
||||
else
|
||||
favorite_alcohol = brandy_container["reagent"]
|
||||
|
||||
quirk_holder.add_mob_memory(/datum/memory/key/quirk_alcoholic, protagonist = quirk_holder, preferred_brandy = initial(favorite_alcohol.name))
|
||||
// alcoholic livers have 25% less health and healing
|
||||
|
||||
@@ -406,7 +406,7 @@
|
||||
return "[year] [origin] [type]"
|
||||
|
||||
/obj/item/reagent_containers/cup/glass/bottle/absinthe
|
||||
name = "extra-strong absinthe"
|
||||
name = "Extra-strong absinthe"
|
||||
desc = "A strong alcoholic drink brewed and distributed by"
|
||||
icon_state = "absinthebottle"
|
||||
list_reagents = list(/datum/reagent/consumable/ethanol/absinthe = 100)
|
||||
|
||||
+1
-1
@@ -3608,6 +3608,7 @@
|
||||
#include "code\modules\client\preferences_menu.dm"
|
||||
#include "code\modules\client\preferences_savefile.dm"
|
||||
#include "code\modules\client\preferences\_preference.dm"
|
||||
#include "code\modules\client\preferences\addict.dm"
|
||||
#include "code\modules\client\preferences\admin.dm"
|
||||
#include "code\modules\client\preferences\age.dm"
|
||||
#include "code\modules\client\preferences\ai_core_display.dm"
|
||||
@@ -3631,7 +3632,6 @@
|
||||
#include "code\modules\client\preferences\hotkeys.dm"
|
||||
#include "code\modules\client\preferences\item_outlines.dm"
|
||||
#include "code\modules\client\preferences\jobless_role.dm"
|
||||
#include "code\modules\client\preferences\junkie.dm"
|
||||
#include "code\modules\client\preferences\language.dm"
|
||||
#include "code\modules\client\preferences\mod_select.dm"
|
||||
#include "code\modules\client\preferences\multiz_parallax.dm"
|
||||
|
||||
Reference in New Issue
Block a user