diff --git a/code/WorkInProgress/Cael_Aislinn/Rust/core_control.dm b/code/WorkInProgress/Cael_Aislinn/Rust/core_control.dm
index 9cee19cea8f..f20f33a7ac4 100644
--- a/code/WorkInProgress/Cael_Aislinn/Rust/core_control.dm
+++ b/code/WorkInProgress/Cael_Aislinn/Rust/core_control.dm
@@ -1,7 +1,8 @@
/obj/machinery/computer/rust_core_control
+ name = "RUST Core Control"
icon = 'code/WorkInProgress/Cael_Aislinn/Rust/rust.dmi'
- icon_state = "core"
+ icon_state = "core_control"
var/list/connected_devices = list()
var/id_tag = "allan remember to update this before you leave"
var/scan_range = 25
diff --git a/code/WorkInProgress/Cael_Aislinn/Rust/core_gen.dm b/code/WorkInProgress/Cael_Aislinn/Rust/core_gen.dm
index a7cb88708f0..4626542ab36 100644
--- a/code/WorkInProgress/Cael_Aislinn/Rust/core_gen.dm
+++ b/code/WorkInProgress/Cael_Aislinn/Rust/core_gen.dm
@@ -180,7 +180,7 @@ max volume of plasma storeable by the field = the total volume of a number of ti
return
var/dat = ""
- if(!powernet || locked)
+ if(stat & NOPOWER || locked)
dat += "The console is dark and nonresponsive."
else
dat += "RUST Tokamak pattern Electromagnetic Field Generator
"
diff --git a/code/WorkInProgress/Cael_Aislinn/Rust/fuel_assembly_port.dm b/code/WorkInProgress/Cael_Aislinn/Rust/fuel_assembly_port.dm
index 67935b9ad1f..3d88307242e 100644
--- a/code/WorkInProgress/Cael_Aislinn/Rust/fuel_assembly_port.dm
+++ b/code/WorkInProgress/Cael_Aislinn/Rust/fuel_assembly_port.dm
@@ -6,7 +6,6 @@
icon_state = "port2"
density = 0
var/obj/item/weapon/fuel_assembly/cur_assembly
- layer = 4
var/busy = 0
anchored = 1
@@ -22,26 +21,25 @@
user.drop_item()
I.loc = src
icon_state = "port1"
+ user << "\blue You insert [I] into [src]. Touch the panel again to insert [I] into the injector."
/obj/machinery/rust_fuel_assembly_port/attack_hand(mob/user)
add_fingerprint(user)
if(stat & (BROKEN|NOPOWER) || opened)
return
- if(!busy)
- busy = 1
- if(cur_assembly)
- spawn(30)
- if(!try_insert_assembly())
- spawn(30)
- eject_assembly()
- busy = 0
- else
- busy = 0
+ if(cur_assembly)
+ if(try_insert_assembly())
+ user << "\blue \icon[src] [src] inserts it's fuel rod assembly into an injector."
else
- spawn(30)
- try_draw_assembly()
- busy = 0
+ if(eject_assembly())
+ user << "\red \icon[src] [src] ejects it's fuel assembly. Check the fuel injector status."
+ else if(try_draw_assembly())
+ user << "\blue \icon[src] [src] draws a fuel rod assembly from an injector."
+ else if(try_draw_assembly())
+ user << "\blue \icon[src] [src] draws a fuel rod assembly from an injector."
+ else
+ user << "\red \icon[src] [src] was unable to draw a fuel rod assembly from an injector."
/obj/machinery/rust_fuel_assembly_port/proc/try_insert_assembly()
var/success = 0
@@ -53,6 +51,8 @@
break
if(I.cur_assembly)
break
+ if(I.state != 2)
+ break
I.cur_assembly = cur_assembly
cur_assembly.loc = I
@@ -60,21 +60,14 @@
icon_state = "port0"
success = 1
- if(success)
- src.visible_message("\blue \icon[src] a green light flashes on [src] as it inserts it's fuel rod assembly into an injector.")
- else
- src.visible_message("\red \icon[src] a red light flashes on [src] as it attempts to insert it's fuel rod assembly into an injector.")
return success
/obj/machinery/rust_fuel_assembly_port/proc/eject_assembly()
if(cur_assembly)
- var/turf/check_turf = get_step(get_turf(src), src.dir)
- cur_assembly.loc = check_turf
+ cur_assembly.loc = get_step(get_turf(src), src.dir)
cur_assembly = null
icon_state = "port0"
return 1
- else
- src.visible_message("\red \icon[src] a red light flashes on [src] as it attempts to eject it's fuel rod assembly.")
/obj/machinery/rust_fuel_assembly_port/proc/try_draw_assembly()
var/success = 0
@@ -88,7 +81,7 @@
break
if(I.injecting)
break
- if(I.stat != 2)
+ if(I.state != 2)
break
cur_assembly = I.cur_assembly
@@ -97,10 +90,6 @@
icon_state = "port1"
success = 1
- if(success)
- src.visible_message("\icon[src] a blue light flashes on [src] as it draws a fuel rod assembly from an injector.")
- else
- src.visible_message("\red \icon[src] a red light flashes on [src] as it attempts to draw a fuel rod assembly from an injector.")
return success
/*
diff --git a/code/WorkInProgress/Cael_Aislinn/Rust/fuel_assembly_port_construction.dm b/code/WorkInProgress/Cael_Aislinn/Rust/fuel_assembly_port_construction.dm
index 0e7aa477cd6..f13780c280d 100644
--- a/code/WorkInProgress/Cael_Aislinn/Rust/fuel_assembly_port_construction.dm
+++ b/code/WorkInProgress/Cael_Aislinn/Rust/fuel_assembly_port_construction.dm
@@ -42,7 +42,7 @@
dir = ndir
else
has_electronics = 3
- opened = 1
+ opened = 0
icon_state = "port0"
//20% easier to read than apc code
diff --git a/code/WorkInProgress/Cael_Aislinn/Rust/fuel_compressor.dm b/code/WorkInProgress/Cael_Aislinn/Rust/fuel_compressor.dm
index 273d2298f01..cfade3ab2ac 100644
--- a/code/WorkInProgress/Cael_Aislinn/Rust/fuel_compressor.dm
+++ b/code/WorkInProgress/Cael_Aislinn/Rust/fuel_compressor.dm
@@ -2,26 +2,17 @@ var/const/max_assembly_amount = 300
/obj/machinery/rust_fuel_compressor
icon = 'code/WorkInProgress/Cael_Aislinn/Rust/rust.dmi'
- icon_state = "fuel_compressor0"
+ icon_state = "fuel_compressor1"
name = "Fuel Compressor"
- var/list/new_assembly_quantities
+ var/list/new_assembly_quantities = list("Deuterium" = 200,"Tritium" = 100,"Helium-3" = 0,"Lithium-6" = 0,"Silver" = 0)
var/compressed_matter = 0
anchored = 1
+ layer = 2.9
var/opened = 1 //0=closed, 1=opened
var/locked = 0
var/has_electronics = 0 // 0 - none, bit 1 - circuitboard, bit 2 - wires
-/obj/machinery/rust_fuel_compressor/New()
- new_assembly_quantities = new/list
- spawn(0)
- new_assembly_quantities["Deuterium"] = 200
- new_assembly_quantities["Tritium"] = 100
- //
- new_assembly_quantities["Helium-3"] = 0
- new_assembly_quantities["Lithium-6"] = 0
- new_assembly_quantities["Silver"] = 0
-
/obj/machinery/rust_fuel_compressor/attack_ai(mob/user)
attack_hand(user)
@@ -50,7 +41,7 @@ var/const/max_assembly_amount = 300
if(locked)
t += "Swipe your ID to unlock this console."
else
- t += "Compressed matter in storage: [compressed_matter] \[Eject all\]"
+ t += "Compressed matter in storage: [compressed_matter] \[Eject all\]
"
t += "Activate Fuel Synthesis
(fuel assemblies require no more than [max_assembly_amount] rods).
"
t += "