diff --git a/code/modules/power/cell.dm b/code/modules/power/cell.dm index 42f06ecbc15..54be119c9a5 100644 --- a/code/modules/power/cell.dm +++ b/code/modules/power/cell.dm @@ -86,9 +86,9 @@ return if(maxcharge <= 2500) - to_chat(user, "[desc]\nThe manufacturer's label states this cell has a power rating of [maxcharge], and that you should not swallow it.\nThe charge meter reads [round(src.percent() )]%.") + to_chat(user, "[desc]\nThe manufacturer's label states this cell has a power rating of [maxcharge]J, and that you should not swallow it.\nThe charge meter reads [round(src.percent() )]%.") else - to_chat(user, "This power cell has an exciting chrome finish, as it is an uber-capacity cell type! It has a power rating of [maxcharge]!\nThe charge meter reads [round(src.percent() )]%.") + to_chat(user, "This power cell has an exciting chrome finish, as it is an uber-capacity cell type! It has a power rating of [maxcharge]J!\nThe charge meter reads [round(src.percent() )]%.") /obj/item/cell/attackby(obj/item/W, mob/user) ..() diff --git a/code/modules/power/smes.dm b/code/modules/power/smes.dm index f7a8ef9c7de..0be1ad3a590 100644 --- a/code/modules/power/smes.dm +++ b/code/modules/power/smes.dm @@ -29,6 +29,7 @@ var/capacity = 5e6 // maximum charge var/charge = 1e6 // actual charge + var/max_coils = 0 var/input_attempt = 0 // 1 = attempting to charge, 0 = not attempting to charge var/inputting = 0 // 1 = actually inputting, 0 = not inputting @@ -113,6 +114,16 @@ if(!should_be_mapped) warning("Non-buildable or Non-magical SMES at [src.x]X [src.y]Y [src.z]Z") +/obj/machinery/power/smes/examine(mob/user) + . = ..() + if(open_hatch) + to_chat(user, SPAN_SUBTLE("The maintenance hatch is open.")) + if (max_coils > 1 && Adjacent(user)) + var/list/coils = list() + for(var/obj/item/smes_coil/C in component_parts) + coils += C + to_chat(user, "The [max_coils] coil slots contain: [counting_english_list(coils)]") + /obj/machinery/power/smes/add_avail(var/amount) if(..(amount)) powernet.smes_newavail += amount @@ -298,11 +309,17 @@ if(W.isscrewdriver()) if(!open_hatch) open_hatch = 1 - to_chat(user, "You open the maintenance hatch of [src].") + user.visible_message(\ + "\The [user] opens the maintenance hatch of \the [src].",\ + "You open the maintenance hatch of \the [src].",\ + range = 4) return 0 else open_hatch = 0 - to_chat(user, "You close the maintenance hatch of [src].") + user.visible_message(\ + "\The [user] closes the maintenance hatch of \the [src].",\ + "You close the maintenance hatch of \the [src].",\ + range = 4) return 0 if (!open_hatch) @@ -322,8 +339,8 @@ building_terminal = 0 CC.use(10) user.visible_message(\ - "[user.name] has added cables to the [src].",\ - "You added cables to the [src].") + "[user.name] has added cables to the [src].",\ + "You added cables to the [src].") terminal.connect_to_network() stat = 0 return 0 diff --git a/code/modules/power/smes_construction.dm b/code/modules/power/smes_construction.dm index 1db2c5ff6b4..ebaf0d7ab7c 100644 --- a/code/modules/power/smes_construction.dm +++ b/code/modules/power/smes_construction.dm @@ -8,31 +8,40 @@ //MAGNETIC COILS - These things actually store and transmit power within the SMES. Different types have different /obj/item/smes_coil name = "superconductive magnetic coil" - desc = "Standard superconductive magnetic coil with average capacity and I/O rating." + desc = "Standard superconductive magnetic coil with balanced capacity and I/O rating." icon = 'icons/obj/stock_parts.dmi' icon_state = "smes_coil" // Just few icons patched together. If someone wants to make better icon, feel free to do so! - w_class = ITEMSIZE_LARGE // It's LARGE (backpack size) + w_class = ITEMSIZE_LARGE // It's LARGE (backpack size) var/ChargeCapacity = 5000000 var/IOCapacity = 250000 +/obj/item/smes_coil/examine(mob/user) + . = ..() + if(Adjacent(user)) + to_chat(user, "The label reads:\ +