mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2025-12-25 00:51:55 +00:00
21 lines
527 B
Plaintext
21 lines
527 B
Plaintext
/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
|