anchor.diff:  	QDEL_NULL(soundloop)
   	return ..()
   
  -/obj/machinery/power/port_gen/connect_to_network()
  -	if(!anchored)
  -		return FALSE
  -	. = ..()
  -
   /obj/machinery/power/port_gen/proc/HasFuel() //Placeholder for fuel check.
  -	return TRUE
  +	return 1
   
   /obj/machinery/power/port_gen/proc/UseFuel() //Placeholder for fuel use.
   	return
  
positive.code: 	anchored = FALSE
  	use_power = NO_POWER_USE
  
  	var/active = FALSE
  	var/power_gen = 5000
  	var/power_output = 1
  	var/consumption = 0
  	var/base_icon = "portgen0"
  
negative.code: /obj/machinery/power/port_gen/proc/handleInactive()
  	return
  
  /obj/machinery/power/port_gen/update_icon()
  	icon_state = "[base_icon]_[active]"
  
  /obj/machinery/power/port_gen/process()
  	if(active && HasFuel() && !crit_fail && anchored && powernet)
  		add_avail(power_gen * power_output)
  		UseFuel()
  		src.updateDialog()
  		soundloop.start()
  
  	else
  		active = 0
  		handleInactive()
  		update_icon()
  		soundloop.stop()
  
  /obj/machinery/power/port_gen/examine(mob/user)
  	..()
  	to_chat(user, "It is[!active?"n't":""] running.")
  
  /obj/machinery/power/port_gen/pacman
  	name = "\improper P.A.C.M.A.N.-type portable generator"
  	circuit = /obj/item/circuitboard/machine/pacman
  