Skip to content

Commit

Permalink
Minor Lobotomizer Fixes (#1490)
Browse files Browse the repository at this point in the history
minor fixes
  • Loading branch information
scionalu authored Oct 3, 2023
1 parent 52cd79a commit 6f9d719
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion ModularTegustation/tegu_items/gadgets/unpowered.dm
Original file line number Diff line number Diff line change
Expand Up @@ -397,16 +397,19 @@
desc = "An experimental tool designed to automatically excise damaged parts of one's brain. Due to its █████, the tool gained sentience and is only interested in brains with tumor."
icon = 'ModularTegustation/Teguicons/teguitems.dmi'
icon_state = "lobotomizer"
var/lobotomizing = FALSE
var/datum/looping_sound/lobotomizer/soundloop

/obj/item/lobotomizer/attack_self(mob/living/carbon/human/user)
if(!(user.has_quirk(/datum/quirk/brainproblems)) || !(istype(user)))
if(!(user.has_quirk(/datum/quirk/brainproblems)) || !(istype(user)) || lobotomizing)
to_chat(user, "<span class='warning'>The lobotomizer completely ignores you.</span>")
return
user.add_overlay(mutable_appearance('ModularTegustation/Teguicons/tegu_effects.dmi', "lobotomizer", -HALO_LAYER))
ADD_TRAIT(user, TRAIT_TUMOR_SUPPRESSED, TRAIT_GENERIC)
ADD_TRAIT(src, TRAIT_NODROP, STICKY_NODROP)
soundloop = new(list(src), FALSE)
soundloop.start()
lobotomizing = TRUE
for(var/i = 1 to 20) //2 minutes to clear severe traumas
if(user.is_working) // No, you can't just cheese this process
to_chat(user, "<span class='warning'>The lobotomizer seems to be more interested in the abnormality.</span>")
Expand All @@ -431,6 +434,8 @@
/obj/item/lobotomizer/proc/EndLoop(mob/living/user)
user.cut_overlay(mutable_appearance('ModularTegustation/Teguicons/tegu_effects.dmi', "lobotomizer", -HALO_LAYER))
REMOVE_TRAIT(user, TRAIT_TUMOR_SUPPRESSED, TRAIT_GENERIC)
REMOVE_TRAIT(src, TRAIT_NODROP, STICKY_NODROP)
lobotomizing = FALSE
QDEL_NULL(soundloop)

/datum/looping_sound/lobotomizer
Expand Down

0 comments on commit 6f9d719

Please sign in to comment.