Fractal Energy Reactor can now be mapped in.

Will be used as replacement for Telecomms magical SMES which is buggy. This thingy should work just fine.
This commit is contained in:
Atlantiscze
2014-11-28 21:35:02 +01:00
parent b24f074501
commit 25ddc19df4

View File

@@ -5,18 +5,20 @@
/obj/machinery/power/fractal_reactor
name = "Fractal Energy Reactor"
desc = "This thing drains power from fractal-subspace. (DEBUG ITEM: INFINITE POWERSOURCE FOR MAP TESTING. CONTACT DEVELOPERS IF FOUND.)"
desc = "This thing drains power from fractal-subspace." // (DEBUG ITEM: INFINITE POWERSOURCE FOR MAP TESTING. CONTACT DEVELOPERS IF FOUND.)"
icon = 'icons/obj/power.dmi'
icon_state = "tracker" //ICON stolen from solar tracker. There is no need to make new texture for debug item
anchored = 1
density = 1
var/power_generation_rate = 2000000 //Defaults to 2MW of power. Should be enough to run SMES charging on full 2 times.
var/power_generation_rate = 1000000 //Defaults to 1MW of power.
var/powernet_connection_failed = 0
var/mapped_in = 0 //Do not announce creation when it's mapped in.
// This should be only used on Dev for testing purposes.
/obj/machinery/power/fractal_reactor/New()
..()
world << "<b>\red WARNING: \black Map testing power source activated at: X:[src.loc.x] Y:[src.loc.y] Z:[src.loc.z]</b>"
if(!mapped_in)
world << "<b>\red WARNING: \black Map testing power source activated at: X:[src.loc.x] Y:[src.loc.y] Z:[src.loc.z]</b>"
/obj/machinery/power/fractal_reactor/process()
if(!powernet && !powernet_connection_failed)