mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-08-26 21:48:21 +01:00
code review part 2
This commit is contained in:
@@ -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>")
|
||||
|
||||
Reference in New Issue
Block a user