mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-11 10:43:20 +00:00
15 lines
501 B
Plaintext
15 lines
501 B
Plaintext
/obj/item/weapon/spell/spawner
|
|
name = "spawner template"
|
|
desc = "If you see me, someone messed up."
|
|
icon_state = "darkness"
|
|
cast_methods = CAST_RANGED
|
|
aspect = null
|
|
var/obj/effect/spawner_type = null
|
|
|
|
/obj/item/weapon/spell/spawner/on_ranged_cast(atom/hit_atom, mob/user)
|
|
var/turf/T = get_turf(hit_atom)
|
|
if(T)
|
|
new spawner_type(T)
|
|
to_chat(user, "<span class='notice'>You shift \the [src] onto \the [T].</span>")
|
|
log_and_message_admins("has casted [src] at [T.x],[T.y],[T.z].")
|
|
qdel(src) |