code review part 2

This commit is contained in:
S34NW
2021-06-25 19:07:32 +01:00
parent 65c985b301
commit 26b0ee7c8f
@@ -33,13 +33,12 @@
if(isobj(target))
var/obj/O = target
if(istype(target, /obj/machinery/power/supermatter_crystal)) //No, you can't pick up the SM with this you moron, did you think you were clever?
var/obj/machinery/power/supermatter_crystal/SM = target
var/obj/mecha/working/ripley/R = chassis
if(R.cargo)
R.cargo.Cut() //We don't want to drop cargo that just spam hits the SM, let's delete it
QDEL_LIST(R.cargo) //We don't want to drop cargo that just spam hits the SM, let's delete it
occupant_message("<span class='userdanger'>You realise in horror what you have done as [chassis] starts warping around you!</span>")
chassis.occupant.dust()
SM.Bumped(chassis)
target.Bumped(chassis)
return
if(O.anchored)
occupant_message("<span class='warning'>[target] is firmly secured!</span>")