Cleans up some commented code and adds some undef's to apc.dm (#402)
This commit is contained in:
committed by
TalkingCactus
parent
f3b6d9e007
commit
8628b36f25
@@ -1251,6 +1251,32 @@
|
||||
|
||||
failure_timer = max(failure_timer, round(duration))
|
||||
|
||||
#undef UPSTATE_CELL_IN
|
||||
#undef UPSTATE_OPENED1
|
||||
#undef UPSTATE_OPENED2
|
||||
#undef UPSTATE_MAINT
|
||||
#undef UPSTATE_BROKE
|
||||
#undef UPSTATE_BLUESCREEN
|
||||
#undef UPSTATE_WIREEXP
|
||||
#undef UPSTATE_ALLGOOD
|
||||
|
||||
#undef APC_RESET_EMP
|
||||
|
||||
//update_overlay
|
||||
#undef APC_UPOVERLAY_CHARGEING0
|
||||
#undef APC_UPOVERLAY_CHARGEING1
|
||||
#undef APC_UPOVERLAY_CHARGEING2
|
||||
#undef APC_UPOVERLAY_EQUIPMENT0
|
||||
#undef APC_UPOVERLAY_EQUIPMENT1
|
||||
#undef APC_UPOVERLAY_EQUIPMENT2
|
||||
#undef APC_UPOVERLAY_LIGHTING0
|
||||
#undef APC_UPOVERLAY_LIGHTING1
|
||||
#undef APC_UPOVERLAY_LIGHTING2
|
||||
#undef APC_UPOVERLAY_ENVIRON0
|
||||
#undef APC_UPOVERLAY_ENVIRON1
|
||||
#undef APC_UPOVERLAY_ENVIRON2
|
||||
#undef APC_UPOVERLAY_LOCKED
|
||||
#undef APC_UPOVERLAY_OPERATING
|
||||
|
||||
#undef APC_UPDATE_ICON_COOLDOWN
|
||||
|
||||
|
||||
@@ -1,44 +1,4 @@
|
||||
|
||||
|
||||
/* new portable generator - work in progress
|
||||
|
||||
/obj/machinery/power/port_gen
|
||||
name = "portable generator"
|
||||
desc = "A portable generator used for emergency backup power."
|
||||
icon = 'generator.dmi'
|
||||
icon_state = "off"
|
||||
density = 1
|
||||
anchored = 0
|
||||
var/t_status = 0
|
||||
var/t_per = 5000
|
||||
var/filter = 1
|
||||
var/tank = null
|
||||
var/turf/inturf
|
||||
var/starter = 0
|
||||
var/rpm = 0
|
||||
var/rpmtarget = 0
|
||||
var/capacity = 1e6
|
||||
var/turf/outturf
|
||||
var/lastgen
|
||||
|
||||
|
||||
/obj/machinery/power/port_gen/process()
|
||||
ideally we're looking to generate 5000
|
||||
|
||||
/obj/machinery/power/port_gen/attackby(obj/item/weapon/W, mob/user)
|
||||
tank [un]loading stuff
|
||||
|
||||
/obj/machinery/power/port_gen/attack_hand(mob/user)
|
||||
turn on/off
|
||||
|
||||
/obj/machinery/power/port_gen/examine(mob/user)
|
||||
display round(lastgen) and plasmatank amount
|
||||
|
||||
*/
|
||||
|
||||
//Previous code been here forever, adding new framework for portable generators
|
||||
|
||||
|
||||
//Baseline portable generator. Has all the default handling. Not intended to be used on it's own (since it generates unlimited power).
|
||||
/obj/machinery/power/port_gen
|
||||
name = "portable generator"
|
||||
|
||||
Reference in New Issue
Block a user