Forcefield Projector Nerf (#59751)

The item can no longer be used to instantly lock someone into a corner. It's a minor balance change, but the projector is way too bullshit to play against as-is.
This commit is contained in:
Cheshify
2021-06-24 13:18:34 -04:00
committed by GitHub
parent 571d1a6710
commit 3dcd22a8ae
@@ -16,6 +16,10 @@
var/max_fields = 3
var/list/current_fields
var/field_distance_limit = 7
/// Time it takes to materialize a forcefield.
var/creation_time = 1 SECONDS
/// Checks to make sure the projector isn't busy with making another forcefield.
var/force_proj_busy = FALSE
/obj/item/forcefield_projector/afterattack(atom/target, mob/user, proximity_flag)
. = ..()
@@ -42,7 +46,17 @@
if(LAZYLEN(current_fields) >= max_fields)
to_chat(user, span_warning("[src] cannot sustain any more forcefields!"))
return
if(force_proj_busy)
to_chat(user, span_notice("[src] is busy creating a forcefield."))
return
playsound(loc, 'sound/machines/click.ogg', 20, TRUE)
if(creation_time)
force_proj_busy = TRUE
if(!do_after(user, creation_time, target = target))
force_proj_busy = FALSE
return
force_proj_busy = FALSE
playsound(src,'sound/weapons/resonator_fire.ogg',50,TRUE)
user.visible_message(span_warning("[user] projects a forcefield!"),span_notice("You project a forcefield."))
var/obj/structure/projected_forcefield/F = new(T, src)