mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-13 19:52:40 +00:00
Stun glove changes reverted.
git-svn-id: http://tgstation13.googlecode.com/svn/trunk@939 316c924e-a436-60f5-8080-3fe189b3f50e
This commit is contained in:
@@ -2645,8 +2645,8 @@
|
|||||||
if (istype(id))
|
if (istype(id))
|
||||||
return id
|
return id
|
||||||
|
|
||||||
/mob/living/carbon/human/electrocute_act(var/shock_damage, var/obj/source, var/siemens_coeff = 1.0)
|
///mob/living/carbon/human/electrocute_act(var/shock_damage, var/obj/source, var/siemens_coeff = 1.0)
|
||||||
if(src.gloves)
|
// if(src.gloves)
|
||||||
var/obj/item/clothing/gloves/G = src.gloves
|
// var/obj/item/clothing/gloves/G = src.gloves
|
||||||
siemens_coeff = G.siemens_coefficient
|
// siemens_coeff = G.siemens_coefficient
|
||||||
return ..(shock_damage,source,siemens_coeff)
|
// return ..(shock_damage,source,siemens_coeff)
|
||||||
|
|||||||
@@ -53,19 +53,19 @@
|
|||||||
else
|
else
|
||||||
usr << "This power cell has an exciting chrome finish, as it is an uber-capacity cell type! It has a power rating of [maxcharge]!!!\nThe charge meter reads [round(src.percent() )]%."
|
usr << "This power cell has an exciting chrome finish, as it is an uber-capacity cell type! It has a power rating of [maxcharge]!!!\nThe charge meter reads [round(src.percent() )]%."
|
||||||
|
|
||||||
|
//Just because someone gets you occasionally with stun gloves doesn't mean you can put in code to kill everyone who tries to make some.
|
||||||
/obj/item/weapon/cell/attackby(obj/item/W, mob/user)
|
/obj/item/weapon/cell/attackby(obj/item/W, mob/user)
|
||||||
var/obj/item/clothing/gloves/G = W
|
var/obj/item/clothing/gloves/G = W
|
||||||
if(istype(G))
|
if(istype(G))
|
||||||
var/datum/effects/system/spark_spread/s = new /datum/effects/system/spark_spread
|
// var/datum/effects/system/spark_spread/s = new /datum/effects/system/spark_spread
|
||||||
s.set_up(3, 1, src)
|
// s.set_up(3, 1, src)
|
||||||
s.start()
|
s.start()
|
||||||
if (prob(80+(G.siemens_coefficient*100)) && electrocute_mob(user, src, src))
|
// if (prob(80+(G.siemens_coefficient*100)) && electrocute_mob(user, src, src))
|
||||||
return 1
|
// return 1
|
||||||
if(charge < 1000)
|
if(charge < 1000)
|
||||||
return
|
return
|
||||||
|
|
||||||
G.siemens_coefficient = max(G.siemens_coefficient,0.3)
|
// G.siemens_coefficient = max(G.siemens_coefficient,0.3)
|
||||||
G.elecgen = 1
|
G.elecgen = 1
|
||||||
G.uses = min(5, round(charge / 1000))
|
G.uses = min(5, round(charge / 1000))
|
||||||
use(G.uses*1000)
|
use(G.uses*1000)
|
||||||
|
|||||||
Reference in New Issue
Block a user