Skip to content

Commit

Permalink
Adds tinkerer quirkpackage
Browse files Browse the repository at this point in the history
  • Loading branch information
Colfer1 committed Mar 26, 2024
1 parent fdef449 commit c3d343c
Showing 1 changed file with 43 additions and 1 deletion.
44 changes: 43 additions & 1 deletion code/datums/traits/good.dm
Original file line number Diff line number Diff line change
Expand Up @@ -632,7 +632,7 @@ GLOBAL_LIST_INIT(weapons_of_texarkana, list(
/datum/quirk/crafty
name = "Crafty"
desc = "You are able to craft without the necessities provided by a traditional workbench."
value = 1
value = 25
category = "Lifepath Quirks"
mechanics = "You do not need a workbench or alchemy table when crafting."
human_only = FALSE
Expand Down Expand Up @@ -2712,6 +2712,48 @@ GLOBAL_LIST_INIT(weapons_of_texarkana, list(
REMOVE_TRAIT(H, TRAIT_NIGHT_VISION, "Dark Vision - Minor")
REMOVE_TRAIT(H, TRAIT_SOFT_YARDS, "Mobility - Wasteland Wanderer")

/datum/quirk/package/tinkerer
name = "Tinker-er"
desc = "You are able to craft without a traditional workbench, as well as craft more and gain more from salvage"
value = 85
category = "Quirk Packages"
mechanics = "You don't need a workbench or alchemy table when crafting, get more recipes, and gain 1-3 more from salvaging"
human_only = FALSE
conflicts = list(
/datum/quirk/tribal,
/datum/quirk/dumb,
/datum/quirk/luddite,
/datum/quirk/primitive,
/datum/quirk/technophreak,
/datum/quirk/crafty
)
mob_trait = TRAIT_TECHNOPHREAK

/datum/quirk/package/tinkerer/on_spawn()
var/mob/living/H = quirk_holder
new /obj/machinery/workbench(H)
new /obj/machinery/chem_master/primitive(H)

/datum/quirk/package/tinkerer/add()
var/mob/living/carbon/human/H = quirk_holder
// I made the quirks add the same recipes as the trait books. Feel free to nerf this
if(!H.mind.learned_recipes)
H.mind.learned_recipes = list()
H.mind.learned_recipes |= GLOB.tier_three_parts
H.mind.learned_recipes |= GLOB.energyweapon_cell_crafting
H.mind.learned_recipes |= GLOB.energyweapon_crafting
H.mind.learned_recipes |= GLOB.pa_repair
H.mind.learned_recipes |= GLOB.armored_hazard_suit

/datum/quirk/package/tinkerer/remove()
var/mob/living/carbon/human/H = quirk_holder
if(H)
H.mind.learned_recipes -= GLOB.tier_three_parts
H.mind.learned_recipes -= GLOB.energyweapon_cell_crafting
H.mind.learned_recipes -= GLOB.energyweapon_crafting
H.mind.learned_recipes -= GLOB.pa_repair
H.mind.learned_recipes -= GLOB.armored_hazard_suit

/datum/quirk/package/generalmedicalpractitioner
name = "General Medical Practitioner"
desc = "You were a General Practiotioner at some point in your life, you probably had an office and a license to practice medicine, or... maybe this is what you kept saying to your patients..."
Expand Down

0 comments on commit c3d343c

Please sign in to comment.