oopsy doopsy soulstone code kinda sucky (#22262)

This commit is contained in:
Qwertytoforty
2023-09-07 11:21:35 +01:00
committed by GitHub
parent 4243f7b0f2
commit 6ee0d6f148
+2 -1
View File
@@ -175,7 +175,6 @@
add_attack_logs(user, M, "Stolestone'd with [name]")
transfer_soul("VICTIM", M, user)
START_PROCESSING(SSobj, src)
return
/obj/item/soulstone/attackby(obj/item/O, mob/user)
@@ -323,6 +322,7 @@
if(!get_cult_ghost(T, user, TRUE))
add_held_body(T)
T.forceMove(src) //If we can't get a ghost, shard the body anyways.
START_PROCESSING(SSobj, src)
if("VICTIM")
var/mob/living/carbon/human/T = target
@@ -439,6 +439,7 @@
C.cancel_camera()
/obj/item/soulstone/proc/init_shade(mob/living/M, mob/user, forced = FALSE)
START_PROCESSING(SSobj, src)
var/type = get_shade_type()
var/mob/living/simple_animal/shade/S = new type(src)
S.name = "Shade of [M.real_name]"