From 9345d749401ac104c29c61b4b78f7424754c804e Mon Sep 17 00:00:00 2001 From: Leshana Date: Sun, 15 Apr 2018 11:53:09 -0400 Subject: [PATCH] Close infinite bluespace crystal loophole in telesci computer construction. Default starting_crystals to zero, if it is ever mapped in the mapper can customize the number, but in-game construction will start with zero. Also convert New() to initialize. --- code/modules/telesci/telesci_computer.dm | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/code/modules/telesci/telesci_computer.dm b/code/modules/telesci/telesci_computer.dm index ed701aa9e0..b0e5eca83b 100644 --- a/code/modules/telesci/telesci_computer.dm +++ b/code/modules/telesci/telesci_computer.dm @@ -22,17 +22,13 @@ // Based on the distance used var/teleport_cooldown = 0 var/teleporting = 0 - var/starting_crystals = 2 + var/starting_crystals = 0 var/max_crystals = 4 // Used to adjust OP-ness: (4 crystals * 6 efficiency * 12.5 coefficient) = 300 range. var/powerCoefficient = 12.5 var/list/crystals = list() var/obj/item/device/gps/inserted_gps -/obj/machinery/computer/telescience/New() - ..() - recalibrate() - /obj/machinery/computer/telescience/Destroy() eject() if(inserted_gps) @@ -46,6 +42,7 @@ /obj/machinery/computer/telescience/initialize() . = ..() + recalibrate() for(var/i = 1; i <= starting_crystals; i++) crystals += new /obj/item/weapon/ore/bluespace_crystal/artificial(src) // starting crystals