Makes the Sepia/Timefreeze cameras not burn out after a single use. (#69796)

Removes the "used" variable from the sepia/timefreeze cameras. This does not increase the camera's film capacity at all, but they can be refilled for another single shot using camera film.
This commit is contained in:
Rhials
2022-09-14 19:34:42 -07:00
committed by GitHub
parent c4cf353634
commit f0a649f4ab
@@ -12,7 +12,6 @@ Slimecrossing Items
pictures_max = 1
can_customise = FALSE
default_picture_name = "A nostalgic picture"
var/used = FALSE
/datum/saved_bodypart
var/obj/item/bodypart/old_part
@@ -58,16 +57,15 @@ Slimecrossing Items
/obj/item/camera/rewind/afterattack(atom/target, mob/user, flag)
if(!on || !pictures_left || !isturf(target.loc))
return
if(!used)//selfie time
if(user == target)
to_chat(user, span_notice("You take a selfie!"))
else
to_chat(user, span_notice("You take a photo with [target]!"))
to_chat(target, span_notice("[user] takes a photo with you!"))
to_chat(target, span_boldnotice("You'll remember this moment forever!"))
used = TRUE
target.AddComponent(/datum/component/dejavu, 2)
if(user == target)
to_chat(user, span_notice("You take a selfie!"))
else
to_chat(user, span_notice("You take a photo with [target]!"))
to_chat(target, span_notice("[user] takes a photo with you!"))
to_chat(target, span_boldnotice("You'll remember this moment forever!"))
target.AddComponent(/datum/component/dejavu, 2)
.=..()
@@ -78,15 +76,11 @@ Slimecrossing Items
desc = "They say a picture is like a moment stopped in time."
pictures_left = 1
pictures_max = 1
var/used = FALSE
/obj/item/camera/timefreeze/afterattack(atom/target, mob/user, flag)
if(!on || !pictures_left || !isturf(target.loc))
return
if(!used) //refilling the film does not refill the timestop
new /obj/effect/timestop(get_turf(target), 2, 50, list(user))
used = TRUE
desc = "This camera has seen better days."
new /obj/effect/timestop(get_turf(target), 2, 50, list(user))
. = ..()
//Hypercharged slime cell - Charged Yellow