From 72d072ed229e75565af127f299481b07479bdbc4 Mon Sep 17 00:00:00 2001 From: SkyratBot <59378654+SkyratBot@users.noreply.github.com> Date: Tue, 27 Oct 2020 10:05:39 +0100 Subject: [PATCH] [MIRROR] Makes Photographer a neutral quirk (#1485) * Makes Photographer a neutral quirk (#54608) * Makes Photographer a neutral quirk Co-authored-by: Ryll Ryll <3589655+Ryll-Ryll@users.noreply.github.com> --- code/datums/traits/good.dm | 31 ----------------------- code/datums/traits/neutral.dm | 30 ++++++++++++++++++++++ code/modules/photography/camera/camera.dm | 7 +---- 3 files changed, 31 insertions(+), 37 deletions(-) diff --git a/code/datums/traits/good.dm b/code/datums/traits/good.dm index 94da7b045d9..c34b9b8949f 100644 --- a/code/datums/traits/good.dm +++ b/code/datums/traits/good.dm @@ -179,37 +179,6 @@ return eyes.Insert(H) //refresh their eyesight and vision -/datum/quirk/photographer - name = "Photographer" - desc = "You carry your camera and personal photo album everywhere you go and can snap photos faster." - value = 1 - mob_trait = TRAIT_PHOTOGRAPHER - gain_text = "You know everything about photography." - lose_text = "You forget how photo cameras work." - medical_record_text = "Patient mentions photography as a stress-relieving hobby." - -/datum/quirk/photographer/on_spawn() - var/mob/living/carbon/human/H = quirk_holder - var/obj/item/storage/photo_album/photo_album = new(get_turf(H)) - var/list/album_slots = list ( - "backpack" = ITEM_SLOT_BACKPACK, - "hands" = ITEM_SLOT_HANDS - ) - H.equip_in_one_of_slots(photo_album, album_slots , qdel_on_fail = TRUE) - photo_album.persistence_id = "personal_[H.mind.key]" // this is a persistent album, the ID is tied to the account's key to avoid tampering - photo_album.persistence_load() - photo_album.name = "[H.real_name]'s photo album" - var/obj/item/camera/camera = new(get_turf(H)) - var/list/camera_slots = list ( - "neck" = ITEM_SLOT_NECK, - "left pocket" = ITEM_SLOT_LPOCKET, - "right pocket" = ITEM_SLOT_RPOCKET, - "backpack" = ITEM_SLOT_BACKPACK, - "hands" = ITEM_SLOT_HANDS - ) - H.equip_in_one_of_slots(camera, camera_slots , qdel_on_fail = TRUE) - H.regenerate_icons() - /datum/quirk/selfaware name = "Self-Aware" desc = "You know your body well, and can accurately assess the extent of your wounds." diff --git a/code/datums/traits/neutral.dm b/code/datums/traits/neutral.dm index 94db88f2bcf..ab311bd36ff 100644 --- a/code/datums/traits/neutral.dm +++ b/code/datums/traits/neutral.dm @@ -268,3 +268,33 @@ /datum/quirk/tongue_tied/post_add() to_chat(quirk_holder, "Because you speak with your hands, having them full hinders your ability to communicate!") +/datum/quirk/photographer + name = "Photographer" + desc = "You carry your camera and personal photo album everywhere you go, and your scrapbooks are legendary among your coworkers." + value = 0 + mob_trait = TRAIT_PHOTOGRAPHER + gain_text = "You know everything about photography." + lose_text = "You forget how photo cameras work." + medical_record_text = "Patient mentions photography as a stress-relieving hobby." + +/datum/quirk/photographer/on_spawn() + var/mob/living/carbon/human/H = quirk_holder + var/obj/item/storage/photo_album/photo_album = new(get_turf(H)) + var/list/album_slots = list ( + "backpack" = ITEM_SLOT_BACKPACK, + "hands" = ITEM_SLOT_HANDS + ) + H.equip_in_one_of_slots(photo_album, album_slots , qdel_on_fail = TRUE) + photo_album.persistence_id = "personal_[H.mind.key]" // this is a persistent album, the ID is tied to the account's key to avoid tampering + photo_album.persistence_load() + photo_album.name = "[H.real_name]'s photo album" + var/obj/item/camera/camera = new(get_turf(H)) + var/list/camera_slots = list ( + "neck" = ITEM_SLOT_NECK, + "left pocket" = ITEM_SLOT_LPOCKET, + "right pocket" = ITEM_SLOT_RPOCKET, + "backpack" = ITEM_SLOT_BACKPACK, + "hands" = ITEM_SLOT_HANDS + ) + H.equip_in_one_of_slots(camera, camera_slots , qdel_on_fail = TRUE) + H.regenerate_icons() diff --git a/code/modules/photography/camera/camera.dm b/code/modules/photography/camera/camera.dm index 75a5a863d52..13cc5454204 100644 --- a/code/modules/photography/camera/camera.dm +++ b/code/modules/photography/camera/camera.dm @@ -139,12 +139,7 @@ return on = FALSE - - var/realcooldown = cooldown - var/mob/living/carbon/human/H = user - if (HAS_TRAIT(H, TRAIT_PHOTOGRAPHER)) - realcooldown *= 0.5 - addtimer(CALLBACK(src, .proc/cooldown), realcooldown) + addtimer(CALLBACK(src, .proc/cooldown), cooldown) icon_state = state_off