/obj/machinery/computer/rust/gyrotron_controller name = "Gyrotron Remote Controller" icon_state = "power" New() ..() attack_ai(mob/user) attack_hand(user) attack_hand(mob/user) add_fingerprint(user) /*if(stat & (BROKEN|NOPOWER)) return*/ interact(user) /*updateDialog() for(var/mob/M in range(1)) if(M.machine == src) interact(m)*/ Topic(href, href_list) ..() if( href_list["close"] ) usr << browse(null, "window=gyrotron_controller") usr.machine = null return if( href_list["target"] ) var/obj/machinery/rust/gyrotron/gyro = locate(href_list["target"]) gyro.Topic(href, href_list) return process() ..() //updateDialog() proc interact(mob/user) if ( (get_dist(src, user) > 1 ) || (stat & (BROKEN|NOPOWER)) ) if (!istype(user, /mob/living/silicon)) user.machine = null user << browse(null, "window=gyrotron_controller") return var/t = "Gyrotron Remote Control Console
" t += "
" for(var/obj/machinery/rust/gyrotron/gyro in world) if(gyro.remoteenabled && gyro.on) t += "Gyrotron operational
" t += "Operational mode: " if(gyro.emitting) t += "Emitting \[Deactivate\]
" else t += "Not emitting \[Activate\]
" t += "Emission rate: [gyro.rate] \[Modify\]
" t += "Beam frequency: [gyro.frequency] \[Modify\]
" t += "Beam power: [gyro.mega_energy] \[Modify\]
" else t += "Gyrotron unresponsive" t += "
" /* var/t = "Reactor Core Fuel Control
" t += "Current fuel injection stage: [active_stage]
" if(active_stage == "Cooling") //t += "Restart injection cycle
" t += "----
" else t += "Enter cooldown phase
" t += "Fuel depletion announcement: " t += "[announce_fueldepletion ? "Disable" : "Disabled"] " t += "[announce_fueldepletion == 1 ? "Announcing" : "Announce"] " t += "[announce_fueldepletion == 2 ? "Broadcasting" : "Broadcast"]
" t += "Stage progression announcement: " t += "[announce_stageprogression ? "Disable" : "Disabled"] " t += "[announce_stageprogression == 1 ? "Announcing" : "Announce"] " t += "[announce_stageprogression == 2 ? "Broadcasting" : "Broadcast"] " t += "
" t += "" t += "" t += "" t += "" t += "" t += "" t += "" for(var/stage in fuel_injectors) var/list/cur_stage = fuel_injectors[stage] t += "" for(var/obj/machinery/rust/fuel_injector/Injector in cur_stage) t += "" t += "" t += "" t += "" t += "" t += "" t += "" t += "
Injector StatusInjection interval (sec)Assembly consumption per injectionFuel Assembly PortAssembly depletion percentage
Fuel Injection Stage: [stage] [active_stage == stage ? " (Currently active)" : "Activate"]
[Injector.on && Injector.remote_enabled ? "Operational" : "Unresponsive"][Injector.rate/10] Modify[Injector.fuel_usage*100]% Modify[Injector.owned_assembly_port ? "[Injector.owned_assembly_port.cur_assembly ? "Loaded": "Empty"]" : "Disconnected" ][Injector.owned_assembly_port && Injector.owned_assembly_port.cur_assembly ? "[Injector.owned_assembly_port.cur_assembly.amount_depleted*100]%" : ""]
" */ t += "Close
" user << browse(t, "window=gyrotron_controller;size=500x800") user.machine = src