mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2025-12-10 01:34:01 +00:00
[MIRROR] prevents finger guns from being used with something in your hand [MDB IGNORE] (#11446)
* prevents finger guns from being used with something in your hand (#64800) Removes the ability to fire mime's finger guns if you have something in your hand, simple as. I find it to be an oversight and I assume an exploit. It makes no sense you can shoot finger guns while holding something you're currently SUPPOSEDLY using to make finger guns with. Also it is very unfair * prevents finger guns from being used with something in your hand Co-authored-by: John Willard <53777086+JohnFulpWillard@users.noreply.github.com>
This commit is contained in:
@@ -176,7 +176,7 @@
|
||||
|
||||
/obj/effect/proc_holder/spell/aimed/finger_guns
|
||||
name = "Finger Guns"
|
||||
desc = "Shoot up to three mimed bullets from your fingers that damage and mute their targets."
|
||||
desc = "Shoot up to three mimed bullets from your fingers that damage and mute their targets. Can't be used if you have something in your hands."
|
||||
school = SCHOOL_MIME
|
||||
panel = "Mime"
|
||||
charge_max = 300
|
||||
@@ -203,6 +203,9 @@
|
||||
if(owner.incapacitated())
|
||||
to_chat(owner, span_warning("You can't properly point your fingers while incapacitated."))
|
||||
return
|
||||
if(owner.get_active_held_item())
|
||||
to_chat(owner, span_warning("You can't properly fire your finger guns with something in your hand."))
|
||||
return
|
||||
if(usr?.mind)
|
||||
if(!usr.mind.miming)
|
||||
to_chat(usr, span_warning("You must dedicate yourself to silence first!"))
|
||||
@@ -213,6 +216,9 @@
|
||||
..()
|
||||
|
||||
/obj/effect/proc_holder/spell/aimed/finger_guns/InterceptClickOn(mob/living/caller, params, atom/target)
|
||||
if(caller.get_active_held_item())
|
||||
to_chat(caller, span_warning("You can't properly fire your finger guns with something in your hand."))
|
||||
return
|
||||
if(caller.incapacitated())
|
||||
to_chat(caller, span_warning("You can't properly point your fingers while incapacitated."))
|
||||
if(charge_type == "recharge")
|
||||
|
||||
Reference in New Issue
Block a user