mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-07-12 23:53:47 +01:00
b0463d3c83
* spanish? * aaaagain * keep maptext * Update robot_items.dm * Update span_defines.dm * compiles * Update silicon_mob.dm * compile
29 lines
878 B
Plaintext
29 lines
878 B
Plaintext
/obj/item/melee/baton/cattleprod/teleprod
|
|
name = "teleprod"
|
|
desc = "A prod with a bluespace crystal on the end. The crystal doesn't look too fun to touch."
|
|
icon_state = "teleprod_nocell"
|
|
base_icon = "teleprod"
|
|
origin_tech = "combat=2;bluespace=4;materials=3"
|
|
|
|
/obj/item/melee/baton/cattleprod/teleprod/pre_attack(atom/target, mob/living/user, params)
|
|
. = ..()
|
|
if(.)
|
|
return
|
|
|
|
if(!turned_on)
|
|
return FINISH_ATTACK | MELEE_COOLDOWN_PREATTACK
|
|
|
|
if(!ismob(target))
|
|
return
|
|
|
|
var/mob/living/carbon/M = target
|
|
if(HAS_TRAIT(user, TRAIT_CLUMSY) && prob(50))
|
|
user.visible_message(
|
|
SPAN_DANGER("[user] accidentally hits [user.p_themselves()] with [src]!"),
|
|
SPAN_USERDANGER("You accidentally hit yourself with [src]!")
|
|
)
|
|
deductcharge(hitcost)
|
|
do_teleport(user, get_turf(user), 50)//honk honk
|
|
else if(isliving(M) && !M.anchored)
|
|
do_teleport(M, get_turf(M), 15)
|