Merge pull request #10035 from Heroman3003/weak-ass-webs

Makes weaversilk webs die from everything, not just fists + stun timer fix
This commit is contained in:
Novacat
2021-03-29 09:43:02 -04:00
committed by Chompstation Bot
parent c0fd1e030b
commit abc5fc05a0
3 changed files with 29 additions and 5 deletions

View File

@@ -293,7 +293,7 @@
// Kill common obstacle in the way like tables.
var/obj/structure/obstacle = locate(/obj/structure, problem_turf)
if(istype(obstacle, /obj/structure/window) || istype(obstacle, /obj/structure/closet) || istype(obstacle, /obj/structure/table) || istype(obstacle, /obj/structure/grille))
if(istype(obstacle, /obj/structure/window) || istype(obstacle, /obj/structure/closet) || istype(obstacle, /obj/structure/table) || istype(obstacle, /obj/structure/grille) || istype(obstacle, /obj/effect/weaversilk/wall)) //VOREStation Edit: spdr
ai_log("destroy_surroundings() : Attacking generic structure.", AI_LOG_INFO)
return melee_attack(obstacle)

View File

@@ -7,6 +7,29 @@
anchored = 1
density = 0
/obj/effect/weaversilk/ex_act(severity)
qdel(src)
return
/obj/effect/weaversilk/attackby(var/obj/item/weapon/W, var/mob/user)
user.setClickCooldown(user.get_attack_speed(W))
if(W.force)
visible_message("<span class='warning'>\The [src] has been [pick(W.attack_verb)] with \the [W][(user ? " by [user]." : ".")]</span>")
qdel(src)
/obj/effect/weaversilk/bullet_act(var/obj/item/projectile/Proj)
..()
if(Proj.get_structure_damage())
qdel(src)
/obj/effect/weaversilk/fire_act(datum/gas_mixture/air, exposed_temperature, exposed_volume)
qdel(src)
/obj/effect/weaversilk/attack_generic(mob/user as mob, var/damage)
if(damage)
qdel(src)
/obj/effect/weaversilk/attack_hand(mob/user as mob)
..()
if(user.a_intent == I_HURT)
@@ -82,11 +105,11 @@
"<b>You hear a squishy noise!</b>"
)
set_dir(L.dir)
can_buckle = 1
can_buckle = TRUE
buckle_mob(L)
L.Stun(1 SECOND)
L.Stun(1)
to_chat(L, "<span class='danger'>The sticky fibers of \the [src] ensnare, trapping you in place!</span>")
trap_active = 0
trap_active = FALSE
can_buckle = initial(can_buckle)
desc += " Actually, it looks like it's been all spent."
..()

View File

@@ -2827,6 +2827,7 @@
#include "code\modules\mob\living\carbon\human\species\station\station_special_abilities_vr.dm"
#include "code\modules\mob\living\carbon\human\species\station\station_special_vr.dm"
#include "code\modules\mob\living\carbon\human\species\station\station_vr.dm"
#include "code\modules\mob\living\carbon\human\species\station\teshari.dm"
#include "code\modules\mob\living\carbon\human\species\station\xenochimera_hud_vr.dm"
#include "code\modules\mob\living\carbon\human\species\station\xenochimera_trait_vr.dm"
#include "code\modules\mob\living\carbon\human\species\station\protean_vr\protean_blob.dm"