Adds Shuriken

This commit is contained in:
SamCroswell
2015-03-09 21:28:28 -04:00
parent 5bb63a7f63
commit addfbe449e
2 changed files with 33 additions and 1 deletions

View File

@@ -371,4 +371,28 @@ modules/mob/living/carbon/human/life.dm if you die, you will be zoomed out.
if(R && R.cell)
if(R.cell.use(charge_cost/10)) //Take power from the borg...
power_supply.give(charge_cost) //...to recharge the shot
return 1
return 1
/obj/item/weapon/gun/energy/shuriken
name = "energy shuriken"
desc = "A stunning shuriken made of energy."
icon_state = "shuriken"
item_state = null
icon = 'icons/obj/ninjaobjects.dmi'
fire_sound = 'sound/weapons/Genhit.ogg'
cell_type = "/obj/item/weapon/stock_parts/cell/infinite"
projectile_type = "/obj/item/projectile/energy/shuriken"
charge_cost = 0
silenced = 1
/obj/item/weapon/gun/energy/shuriken/update_icon()
qdel(src)
return
/obj/item/weapon/gun/energy/shuriken/dropped()
qdel(src)
return
/obj/item/weapon/gun/energy/shuriken/proc/throw()
qdel(src)
return

View File

@@ -69,6 +69,14 @@
weaken = 5
range = 7
/obj/item/projectile/energy/shuriken
name = "shuriken"
icon_state = "toxin"
damage = 10
damage_type = TOX
nodamage = 0
weaken = 5
stutter = 5
/obj/item/projectile/energy/bolt
name = "bolt"