mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-08-26 21:48:21 +01:00
Buffed the uses to 5, made the stun 80% of a baton to 140% of a baton. Added additional info on examine/use.
This commit is contained in:
@@ -27,8 +27,14 @@ effective or pretty fucking useless.
|
||||
origin_tech = "magnets=3;combat=3;syndicate=3"
|
||||
|
||||
var/times_used = 0 //Number of times it's been used.
|
||||
var/max_uses = 2
|
||||
var/max_uses = 5
|
||||
|
||||
/obj/item/device/batterer/examine(mob/user)
|
||||
..(user)
|
||||
if(times_used >= max_uses)
|
||||
to_chat(user, "<span class='notice'>The [src] is out of charge.</span>")
|
||||
if(times_used < max_uses)
|
||||
to_chat(user, "<span class='notice'>The [src] has [max_uses-times_used] charges left.</span>")
|
||||
|
||||
/obj/item/device/batterer/attack_self(mob/living/carbon/user, flag = 0, emp = 0)
|
||||
if(!user)
|
||||
@@ -40,15 +46,15 @@ effective or pretty fucking useless.
|
||||
|
||||
for(var/mob/living/carbon/human/M in orange(10, user))
|
||||
if(prob(50))
|
||||
M.Weaken(rand(3,6))
|
||||
M.Weaken(rand(4,7))
|
||||
add_logs(M, user, "stunned", src)
|
||||
to_chat(M, "<span class='danger'>You feel a tremendous, paralyzing wave flood your mind.</span>")
|
||||
else
|
||||
to_chat(M, "<span class='danger'>You feel a sudden, electric jolt travel through your head.</span>")
|
||||
|
||||
playsound(loc, 'sound/misc/interference.ogg', 50, 1)
|
||||
to_chat(user, "<span class='notice'>You trigger [src].</span>")
|
||||
times_used++
|
||||
to_chat(user, "<span class='notice'>You trigger [src]. It has [max_uses-times_used] charges left.</span>")
|
||||
if(times_used >= max_uses)
|
||||
icon_state = "battererburnt"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user