Update twohanded.dm

This commit is contained in:
kevinz000
2020-01-05 11:19:18 -08:00
committed by GitHub
parent b0eed9410b
commit 46cf029a28
+7 -2
View File
@@ -781,6 +781,9 @@
throwforce = 20
throw_speed = 4
attack_verb = list("gored")
var/clonechance = 50
var/clonedamage = 12
var/clonespeed = 0.5
/obj/item/twohanded/spear/grey_tide/afterattack(atom/movable/AM, mob/living/user, proximity)
. = ..()
@@ -791,9 +794,11 @@
var/mob/living/L = AM
if(istype (L, /mob/living/simple_animal/hostile/illusion))
return
if(!L.stat && prob(50))
if(!L.stat && prob(clonechance))
var/mob/living/simple_animal/hostile/illusion/M = new(user.loc)
M.faction = user.faction.Copy()
M.melee_damage_upper = M.melee_damage_lower = clonedamage
M.set_varspeed(clonespeed)
M.Copy_Parent(user, 100, user.health/2.5, 12, 30)
M.GiveTarget(L)
@@ -1010,4 +1015,4 @@
var/client/C = user.client
C.change_view(CONFIG_GET(string/default_view))
user.client.pixel_x = 0
user.client.pixel_y = 0
user.client.pixel_y = 0