Skip to content

Commit

Permalink
Fixes tribal traditions (minus wayfarers)
Browse files Browse the repository at this point in the history
Makes the various tribal origin quirks work as intended, save for wayfarers.
  • Loading branch information
biotear committed Apr 16, 2024
1 parent c6e3cb6 commit f584a14
Showing 1 changed file with 107 additions and 0 deletions.
107 changes: 107 additions & 0 deletions code/datums/traits/good.dm
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,47 @@ GLOBAL_LIST_INIT(pa_repair, list(
/datum/crafting_recipe/repair_t45_helm,
/datum/crafting_recipe/scrap_pa,
/datum/crafting_recipe/scrap_pa_helm))

GLOBAL_LIST_INIT(white_legs_recipes, list(
/datum/crafting_recipe/tribalwar/whitelegs/lightarmour,
/datum/crafting_recipe/tribalwar/whitelegs/armour,
/datum/crafting_recipe/tribalwar/whitelegs/heavyarmour,
/datum/crafting_recipe/tribalwar/whitelegs/garb,
/datum/crafting_recipe/tribalwar/whitelegs/femalegarb))

GLOBAL_LIST_INIT(dead_horses_recipes, list(
/datum/crafting_recipe/tribalwar/deadhorses/lightarmour,
/datum/crafting_recipe/tribalwar/deadhorses/armour,
/datum/crafting_recipe/tribalwar/deadhorses/heavyarmour,
/datum/crafting_recipe/tribalwar/deadhorses/garb,
/datum/crafting_recipe/tribalwar/deadhorses/femalegarb))

GLOBAL_LIST_INIT(rustwalkers_recipes, list(
/datum/crafting_recipe/tribalwar/rustwalkers/lightarmour,
/datum/crafting_recipe/tribalwar/rustwalkers/armour,
/datum/crafting_recipe/tribalwar/rustwalkers/heavyarmour,
/datum/crafting_recipe/tribalwar/rustwalkers/garb,
/datum/crafting_recipe/tribalwar/rustwalkers/femalegarb))

GLOBAL_LIST_INIT(eighties_recipes, list(
/datum/crafting_recipe/tribalwar/eighties/lightarmour,
/datum/crafting_recipe/tribalwar/eighties/armour,
/datum/crafting_recipe/tribalwar/eighties/heavyarmour,
/datum/crafting_recipe/tribalwar/eighties/garb,
/datum/crafting_recipe/tribalwar/eighties/femalegarb))

GLOBAL_LIST_INIT(sorrows_recipes, list(
/datum/crafting_recipe/tribalwar/sorrows/armour,
/datum/crafting_recipe/tribalwar/sorrows/garb,
/datum/crafting_recipe/tribalwar/sorrows/femalegarb,
/datum/crafting_recipe/tribalwar/sorrows/yaoguaigauntlet))

GLOBAL_LIST_INIT(bone_dancer_recipes, list(
/datum/crafting_recipe/tribalwar/bone/lightarmour,
/datum/crafting_recipe/tribalwar/bone/armour,
/datum/crafting_recipe/tribalwar/bone/heavyarmour,
/datum/crafting_recipe/tribalwar/bone/garb,
/datum/crafting_recipe/tribalwar/bone/helmet))

//predominantly positive traits
//this file is named weirdly so that positive traits are listed above negative ones
Expand Down Expand Up @@ -681,6 +722,17 @@ GLOBAL_LIST_INIT(pa_repair, list(
lose_text = span_danger("You forget how your ancestors have created their garments.")
locked = FALSE

/datum/quirk/whitelegstraditions/add()
var/mob/living/carbon/human/H = quirk_holder
if(!H.mind.learned_recipes)
H.mind.learned_recipes = list()
H.mind.learned_recipes |= GLOB.white_legs_recipes

/datum/quirk/whitelegstraditions/remove()
var/mob/living/carbon/human/H = quirk_holder
if(H)
H.mind.learned_recipes -= GLOB.white_legs_recipes

/datum/quirk/deadhorsestraditions
name = "Dead Horses traditions"
desc = "You remember how to make your peoples ancient garments after all this time."
Expand All @@ -690,6 +742,17 @@ GLOBAL_LIST_INIT(pa_repair, list(
lose_text = span_danger("You forget how your ancestors have created their garments.")
locked = FALSE

/datum/quirk/deadhorsestraditions/add()
var/mob/living/carbon/human/H = quirk_holder
if(!H.mind.learned_recipes)
H.mind.learned_recipes = list()
H.mind.learned_recipes |= GLOB.dead_horses_recipes

/datum/quirk/deadhorsestraditions/remove()
var/mob/living/carbon/human/H = quirk_holder
if(H)
H.mind.learned_recipes -= GLOB.dead_horses_recipes

/datum/quirk/rustwalkerstraditions
name = "Rust Walkers traditions"
desc = "You remember how to make your peoples ancient garments after all this time."
Expand All @@ -699,6 +762,17 @@ GLOBAL_LIST_INIT(pa_repair, list(
lose_text = span_danger("You forget how your ancestors have created their garments.")
locked = FALSE

/datum/quirk/rustwalkerstraditions/add()
var/mob/living/carbon/human/H = quirk_holder
if(!H.mind.learned_recipes)
H.mind.learned_recipes = list()
H.mind.learned_recipes |= GLOB.rustwalkers_recipes

/datum/quirk/rustwalkerstraditions/remove()
var/mob/living/carbon/human/H = quirk_holder
if(H)
H.mind.learned_recipes -= GLOB.rustwalkers_recipes

/datum/quirk/eightiestraditions
name = "Eighties traditions"
desc = "You remember how to make your peoples ancient garments after all this time."
Expand All @@ -708,6 +782,17 @@ GLOBAL_LIST_INIT(pa_repair, list(
lose_text = span_danger("You forget how your ancestors have created their garments.")
locked = FALSE

/datum/quirk/eightiestraditions/add()
var/mob/living/carbon/human/H = quirk_holder
if(!H.mind.learned_recipes)
H.mind.learned_recipes = list()
H.mind.learned_recipes |= GLOB.eighties_recipes

/datum/quirk/eightiestraditions/remove()
var/mob/living/carbon/human/H = quirk_holder
if(H)
H.mind.learned_recipes -= GLOB.eighties_recipes

/datum/quirk/sorrowstraditions
name = "Sorrows traditions"
desc = "You remember how to make your peoples ancient garments after all this time."
Expand All @@ -717,6 +802,17 @@ GLOBAL_LIST_INIT(pa_repair, list(
lose_text = span_danger("You forget how your ancestors have created their garments.")
locked = FALSE

/datum/quirk/sorrowstraditions/add()
var/mob/living/carbon/human/H = quirk_holder
if(!H.mind.learned_recipes)
H.mind.learned_recipes = list()
H.mind.learned_recipes |= GLOB.sorrows_recipes

/datum/quirk/sorrowstraditions/remove()
var/mob/living/carbon/human/H = quirk_holder
if(H)
H.mind.learned_recipes -= GLOB.sorrows_recipes

/datum/quirk/wayfarertraditions
name = "Wayfarer traditions"
desc = "You remember how to make your peoples ancient garments after all this time."
Expand All @@ -735,6 +831,17 @@ GLOBAL_LIST_INIT(pa_repair, list(
lose_text = span_danger("You forget how your ancestors have created their garments.")
locked = FALSE

/datum/quirk/bonedancertraditions/add()
var/mob/living/carbon/human/H = quirk_holder
if(!H.mind.learned_recipes)
H.mind.learned_recipes = list()
H.mind.learned_recipes |= GLOB.bone_dancer_recipes

/datum/quirk/bonedancertraditions/remove()
var/mob/living/carbon/human/H = quirk_holder
if(H)
H.mind.learned_recipes -= GLOB.bone_dancer_recipes

/datum/quirk/brickwall
name = "Brick wall"
desc = "You just don't move when people try to push you out of the way, for whatever reason."
Expand Down

0 comments on commit f584a14

Please sign in to comment.