Multitool cable pulse message is now outputs in regular chat rather than the combat log (#27372)

* cable multitool pulse will no longer spit out results in the combat log

* made the cable pulse msg prettier

* Update code/modules/power/cables/cable.dm

Co-authored-by: Contrabang <91113370+Contrabang@users.noreply.github.com>
Signed-off-by: Toastical <vnndvp@gmail.com>

* made the text red

* made the successful message blue again

---------

Signed-off-by: Toastical <vnndvp@gmail.com>
Co-authored-by: Contrabang <91113370+Contrabang@users.noreply.github.com>
This commit is contained in:
Toastical
2024-11-17 11:19:39 +00:00
committed by GitHub
co-authored by Contrabang
parent c721210f45
commit 0d266f6247
+2 -2
View File
@@ -120,9 +120,9 @@ By design, d1 is the smallest direction and d2 is the highest
if(!I.use_tool(src, user, 0, volume = I.tool_volume))
return
if(powernet && (powernet.available_power > 0)) // is it powered?
to_chat(user, "<span class='danger'>Total power: [DisplayPower(powernet.available_power)]\nLoad: [DisplayPower(powernet.power_demand)]\nExcess power: [DisplayPower(get_surplus())]</span>")
to_chat(user, chat_box_examine("<span class='notice'>Total power: [DisplayPower(powernet.available_power)]\nLoad: [DisplayPower(powernet.power_demand)]\nExcess power: [DisplayPower(get_surplus())]</span>"))
else
to_chat(user, "<span class='danger'>The cable is not powered.</span>")
to_chat(user, "<span class='warning'>The cable is not powered.</span>")
shock(user, 5, 0.2)
/obj/structure/cable/wirecutter_act(mob/user, obj/item/I)