[MIRROR] Splits projectiles into different files for readability (#5800)

* Splits projectiles into different files for readability

* Update tgstation.dme

* I love how the dme cleans itself up
This commit is contained in:
CitadelStationBot
2018-03-05 14:13:08 -06:00
committed by Poojawa
parent 6a688f2588
commit c72201e605
93 changed files with 3683 additions and 3730 deletions
@@ -0,0 +1,20 @@
/obj/item/projectile/bullet/reusable
name = "reusable bullet"
desc = "How do you even reuse a bullet?"
var/ammo_type = /obj/item/ammo_casing/caseless
var/dropped = FALSE
impact_effect_type = null
/obj/item/projectile/bullet/reusable/on_hit(atom/target, blocked = FALSE)
. = ..()
handle_drop()
/obj/item/projectile/bullet/reusable/on_range()
handle_drop()
..()
/obj/item/projectile/bullet/reusable/proc/handle_drop()
if(!dropped)
var/turf/T = get_turf(src)
new ammo_type(T)
dropped = TRUE