[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:
committed by
Poojawa
parent
6a688f2588
commit
c72201e605
@@ -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
|
||||
Reference in New Issue
Block a user