mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2025-12-21 07:03:05 +00:00
* repaths neurotoxin + embedding changes in bullets + adds effects when you shoot energy weapons (#52543) * how * Update alien_powers.dm * adds impact effects, makes thinks that shouldnt embed not embed * rogue pixel moment * repaths neurotoxin + embedding changes in bullets + adds effects when you shoot energy weapons Co-authored-by: Fikou <piotrbryla@onet.pl>
22 lines
505 B
Plaintext
22 lines
505 B
Plaintext
/obj/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
|
|
embedding = null
|
|
|
|
/obj/projectile/bullet/reusable/on_hit(atom/target, blocked = FALSE)
|
|
. = ..()
|
|
handle_drop()
|
|
|
|
/obj/projectile/bullet/reusable/on_range()
|
|
handle_drop()
|
|
..()
|
|
|
|
/obj/projectile/bullet/reusable/proc/handle_drop()
|
|
if(!dropped)
|
|
var/turf/T = get_turf(src)
|
|
new ammo_type(T)
|
|
dropped = TRUE
|