mirror of
https://github.com/PolarisSS13/Polaris.git
synced 2026-08-26 06:39:22 +01:00
to_chat replacing stream operator
This commit is contained in:
@@ -156,12 +156,12 @@
|
||||
src.anchored = 0
|
||||
disconnect_from_network()
|
||||
else
|
||||
user << "<font color='red'>Once bolted and linked to a shielding unit it the [src.name] is unable to be moved!</font>"
|
||||
to_chat(user, "<font color='red'>Once bolted and linked to a shielding unit it the [src.name] is unable to be moved!</font>")
|
||||
return
|
||||
|
||||
if(istype(W, /obj/item/weapon/am_containment))
|
||||
if(fueljar)
|
||||
user << "<font color='red'>There is already a [fueljar] inside!</font>"
|
||||
to_chat(user, "<font color='red'>There is already a [fueljar] inside!</font>")
|
||||
return
|
||||
fueljar = W
|
||||
user.remove_from_mob(W)
|
||||
|
||||
@@ -42,9 +42,9 @@
|
||||
|
||||
if(istype(F, /obj/item/weapon/fuel/H))
|
||||
if(injecting)
|
||||
user << "Theres already a fuel rod in the injector!"
|
||||
to_chat(user, "Theres already a fuel rod in the injector!")
|
||||
return
|
||||
user << "You insert the rod into the injector"
|
||||
to_chat(user, "You insert the rod into the injector")
|
||||
injecting = 1
|
||||
var/fuel = F.fuel
|
||||
qdel(F)
|
||||
@@ -55,9 +55,9 @@
|
||||
|
||||
if(istype(F, /obj/item/weapon/fuel/antiH))
|
||||
if(injecting)
|
||||
user << "Theres already a fuel rod in the injector!"
|
||||
to_chat(user, "Theres already a fuel rod in the injector!")
|
||||
return
|
||||
user << "You insert the rod into the injector"
|
||||
to_chat(user, "You insert the rod into the injector")
|
||||
injecting = 1
|
||||
var/fuel = F.fuel
|
||||
qdel(F)
|
||||
|
||||
@@ -26,7 +26,7 @@
|
||||
if(istype(F, /obj/item/weapon/fuel/antiH))
|
||||
src.fuel += F.fuel
|
||||
F.fuel = 0
|
||||
user << "You have added the anti-Hydrogen to the storage ring, it now contains [src.fuel]kg"
|
||||
to_chat(user, "You have added the anti-Hydrogen to the storage ring, it now contains [src.fuel]kg")
|
||||
if(istype(F, /obj/item/weapon/fuel/H))
|
||||
src.fuel += F.fuel
|
||||
qdel(F)
|
||||
@@ -35,7 +35,7 @@
|
||||
if(istype(F, /obj/item/weapon/fuel/H))
|
||||
src.fuel += F.fuel
|
||||
F.fuel = 0
|
||||
user << "You have added the Hydrogen to the storage ring, it now contains [src.fuel]kg"
|
||||
to_chat(user, "You have added the Hydrogen to the storage ring, it now contains [src.fuel]kg")
|
||||
if(istype(F, /obj/item/weapon/fuel/antiH))
|
||||
src.fuel += F.fuel
|
||||
qdel(src)
|
||||
@@ -69,14 +69,14 @@
|
||||
|
||||
/obj/item/weapon/fuel/examine(mob/user)
|
||||
if(get_dist(src, user) <= 1)
|
||||
user << "A magnetic storage ring, it contains [fuel]kg of [content ? content : "nothing"]."
|
||||
to_chat(user, "A magnetic storage ring, it contains [fuel]kg of [content ? content : "nothing"].")
|
||||
|
||||
/obj/item/weapon/fuel/proc/injest(mob/M as mob)
|
||||
switch(content)
|
||||
if("Anti-Hydrogen")
|
||||
M.gib() //Yikes!
|
||||
if("Hydrogen")
|
||||
M << "<font color='blue'>You feel very light, as if you might just float away...</font>"
|
||||
to_chat(M, "<font color='blue'>You feel very light, as if you might just float away...</font>")
|
||||
qdel(src)
|
||||
return
|
||||
|
||||
|
||||
+48
-48
@@ -251,27 +251,27 @@
|
||||
/obj/machinery/power/apc/examine(mob/user)
|
||||
if(..(user, 1))
|
||||
if(stat & BROKEN)
|
||||
to_chat(user,"This APC is broken.")
|
||||
to_chat(user, "This APC is broken.")
|
||||
return
|
||||
if(opened)
|
||||
if(has_electronics && terminal)
|
||||
to_chat(user,"The cover is [opened==2?"removed":"open"] and [ cell ? "a power cell is installed" : "the power cell is missing"].")
|
||||
to_chat(user, "The cover is [opened==2?"removed":"open"] and [ cell ? "a power cell is installed" : "the power cell is missing"].")
|
||||
else if (!has_electronics && terminal)
|
||||
to_chat(user,"The frame is wired, but the electronics are missing.")
|
||||
to_chat(user, "The frame is wired, but the electronics are missing.")
|
||||
else if (has_electronics && !terminal)
|
||||
to_chat(user,"The electronics are installed, but not wired.")
|
||||
to_chat(user, "The electronics are installed, but not wired.")
|
||||
else /* if (!has_electronics && !terminal) */
|
||||
to_chat(user,"It's just an empty metal frame.")
|
||||
to_chat(user, "It's just an empty metal frame.")
|
||||
|
||||
else
|
||||
if (wiresexposed)
|
||||
to_chat(user,"The cover is closed and the wires are exposed.")
|
||||
to_chat(user, "The cover is closed and the wires are exposed.")
|
||||
else if ((locked && emagged) || hacker) //Some things can cause locked && emagged. Malf AI causes hacker.
|
||||
to_chat(user,"The cover is closed, but the panel is unresponsive.")
|
||||
to_chat(user, "The cover is closed, but the panel is unresponsive.")
|
||||
else if(!locked && emagged) //Normal emag does this.
|
||||
to_chat(user,"The cover is closed, but the panel is flashing an error.")
|
||||
to_chat(user, "The cover is closed, but the panel is flashing an error.")
|
||||
else
|
||||
to_chat(user,"The cover is closed.")
|
||||
to_chat(user, "The cover is closed.")
|
||||
|
||||
|
||||
// update the APC icon to show the three base states
|
||||
@@ -460,10 +460,10 @@
|
||||
if (W.is_crowbar() && opened)
|
||||
if (has_electronics==1)
|
||||
if (terminal)
|
||||
to_chat(user,"<span class='warning'>Disconnect the wires first.</span>")
|
||||
to_chat(user, "<span class='warning'>Disconnect the wires first.</span>")
|
||||
return
|
||||
playsound(src, W.usesound, 50, 1)
|
||||
to_chat(user,"You begin to remove the power control board...") //lpeters - fixed grammar issues //Ner - grrrrrr
|
||||
to_chat(user, "You begin to remove the power control board...") //lpeters - fixed grammar issues //Ner - grrrrrr
|
||||
if(do_after(user, 50 * W.toolspeed))
|
||||
if (has_electronics==1)
|
||||
has_electronics = 0
|
||||
@@ -483,20 +483,20 @@
|
||||
update_icon()
|
||||
else if (W.is_crowbar() && !(stat & BROKEN) )
|
||||
if(coverlocked && !(stat & MAINT))
|
||||
to_chat(user,"<span class='warning'>The cover is locked and cannot be opened.</span>")
|
||||
to_chat(user, "<span class='warning'>The cover is locked and cannot be opened.</span>")
|
||||
return
|
||||
else
|
||||
opened = 1
|
||||
update_icon()
|
||||
else if (istype(W, /obj/item/weapon/cell) && opened) // trying to put a cell inside
|
||||
if(cell)
|
||||
to_chat(user,"The [src.name] already has a power cell installed.")
|
||||
to_chat(user, "The [src.name] already has a power cell installed.")
|
||||
return
|
||||
if (stat & MAINT)
|
||||
to_chat(user,"<span class='warning'>You need to install the wiring and electronics first.</span>")
|
||||
to_chat(user, "<span class='warning'>You need to install the wiring and electronics first.</span>")
|
||||
return
|
||||
if(W.w_class != ITEMSIZE_NORMAL)
|
||||
to_chat(user,"\The [W] is too [W.w_class < 3? "small" : "large"] to work here.")
|
||||
to_chat(user, "\The [W] is too [W.w_class < 3? "small" : "large"] to work here.")
|
||||
return
|
||||
|
||||
user.drop_item()
|
||||
@@ -510,26 +510,26 @@
|
||||
else if (W.is_screwdriver()) // haxing
|
||||
if(opened)
|
||||
if (cell)
|
||||
to_chat(user,"<span class='warning'>Remove the power cell first.</span>")
|
||||
to_chat(user, "<span class='warning'>Remove the power cell first.</span>")
|
||||
return
|
||||
else
|
||||
if (has_electronics==1 && terminal)
|
||||
has_electronics = 2
|
||||
stat &= ~MAINT
|
||||
playsound(src.loc, W.usesound, 50, 1)
|
||||
to_chat(user,"You screw the circuit electronics into place.")
|
||||
to_chat(user, "You screw the circuit electronics into place.")
|
||||
else if (has_electronics==2)
|
||||
has_electronics = 1
|
||||
stat |= MAINT
|
||||
playsound(src.loc, W.usesound, 50, 1)
|
||||
to_chat(user,"You unfasten the electronics.")
|
||||
to_chat(user, "You unfasten the electronics.")
|
||||
else /* has_electronics==0 */
|
||||
to_chat(user,"<span class='warning'>There is nothing to secure.</span>")
|
||||
to_chat(user, "<span class='warning'>There is nothing to secure.</span>")
|
||||
return
|
||||
update_icon()
|
||||
else
|
||||
wiresexposed = !wiresexposed
|
||||
to_chat(user,"The wires have been [wiresexposed ? "exposed" : "unexposed"].")
|
||||
to_chat(user, "The wires have been [wiresexposed ? "exposed" : "unexposed"].")
|
||||
playsound(src, W.usesound, 50, 1)
|
||||
update_icon()
|
||||
|
||||
@@ -539,11 +539,11 @@
|
||||
else if (istype(W, /obj/item/stack/cable_coil) && !terminal && opened && has_electronics!=2)
|
||||
var/turf/T = loc
|
||||
if(istype(T) && !T.is_plating())
|
||||
to_chat(user,"<span class='warning'>You must remove the floor plating in front of the APC first.</span>")
|
||||
to_chat(user, "<span class='warning'>You must remove the floor plating in front of the APC first.</span>")
|
||||
return
|
||||
var/obj/item/stack/cable_coil/C = W
|
||||
if(C.get_amount() < 10)
|
||||
to_chat(user,"<span class='warning'>You need ten lengths of cable for that.</span>")
|
||||
to_chat(user, "<span class='warning'>You need ten lengths of cable for that.</span>")
|
||||
return
|
||||
user.visible_message("<span class='warning'>[user.name] adds cables to the APC frame.</span>", \
|
||||
"You start adding cables to the APC frame...")
|
||||
@@ -566,7 +566,7 @@
|
||||
else if (W.is_wirecutter() && terminal && opened && has_electronics!=2)
|
||||
var/turf/T = loc
|
||||
if(istype(T) && !T.is_plating())
|
||||
to_chat(user,"<span class='warning'>You must remove the floor plating in front of the APC first.</span>")
|
||||
to_chat(user, "<span class='warning'>You must remove the floor plating in front of the APC first.</span>")
|
||||
return
|
||||
user.visible_message("<span class='warning'>[user.name] starts dismantling the [src]'s power terminal.</span>", \
|
||||
"You begin to cut the cables...")
|
||||
@@ -580,7 +580,7 @@
|
||||
if(usr.stunned)
|
||||
return
|
||||
new /obj/item/stack/cable_coil(loc,10)
|
||||
to_chat(user,"<span class='notice'>You cut the cables and dismantle the power terminal.</span>")
|
||||
to_chat(user, "<span class='notice'>You cut the cables and dismantle the power terminal.</span>")
|
||||
qdel(terminal)
|
||||
else if (istype(W, /obj/item/weapon/module/power_control) && opened && has_electronics==0 && !((stat & BROKEN)))
|
||||
user.visible_message("<span class='warning'>[user.name] inserts the power control board into [src].</span>", \
|
||||
@@ -590,15 +590,15 @@
|
||||
if(has_electronics==0)
|
||||
has_electronics = 1
|
||||
reboot()
|
||||
to_chat(user,"<span class='notice'>You place the power control board inside the frame.</span>")
|
||||
to_chat(user, "<span class='notice'>You place the power control board inside the frame.</span>")
|
||||
qdel(W)
|
||||
else if (istype(W, /obj/item/weapon/module/power_control) && opened && has_electronics==0 && ((stat & BROKEN)))
|
||||
to_chat(user,"<span class='warning'>The [src] is too broken for that. Repair it first.</span>")
|
||||
to_chat(user, "<span class='warning'>The [src] is too broken for that. Repair it first.</span>")
|
||||
return
|
||||
else if (istype(W, /obj/item/weapon/weldingtool) && opened && has_electronics==0 && !terminal)
|
||||
var/obj/item/weapon/weldingtool/WT = W
|
||||
if (WT.get_fuel() < 3)
|
||||
to_chat(user,"<span class='warning'>You need more welding fuel to complete this task.</span>")
|
||||
to_chat(user, "<span class='warning'>You need more welding fuel to complete this task.</span>")
|
||||
return
|
||||
user.visible_message("<span class='warning'>[user.name] begins cutting apart [src] with the [WT.name].</span>", \
|
||||
"You start welding the APC frame...", \
|
||||
@@ -667,28 +667,28 @@
|
||||
if (!opened && wiresexposed && (istype(W, /obj/item/device/multitool) || W.is_wirecutter() || istype(W, /obj/item/device/assembly/signaler)))
|
||||
return src.attack_hand(user)
|
||||
//Placeholder until someone can do take_damage() for APCs or something.
|
||||
to_chat(user,"<span class='notice'>The [src.name] looks too sturdy to bash open with \the [W.name].</span>")
|
||||
to_chat(user, "<span class='notice'>The [src.name] looks too sturdy to bash open with \the [W.name].</span>")
|
||||
|
||||
// attack with hand - remove cell (if cover open) or interact with the APC
|
||||
|
||||
/obj/machinery/power/apc/verb/togglelock(mob/user as mob)
|
||||
if(emagged)
|
||||
to_chat(user,"The panel is unresponsive.")
|
||||
to_chat(user, "The panel is unresponsive.")
|
||||
else if(opened)
|
||||
to_chat(user,"You must close the cover to swipe an ID card.")
|
||||
to_chat(user, "You must close the cover to swipe an ID card.")
|
||||
else if(wiresexposed)
|
||||
to_chat(user,"You must close the wire panel.")
|
||||
to_chat(user, "You must close the wire panel.")
|
||||
else if(stat & (BROKEN|MAINT))
|
||||
to_chat(user,"Nothing happens.")
|
||||
to_chat(user, "Nothing happens.")
|
||||
else if(hacker)
|
||||
to_chat(user,"<span class='warning'>Access denied.</span>")
|
||||
to_chat(user, "<span class='warning'>Access denied.</span>")
|
||||
else
|
||||
if(src.allowed(usr) && !isWireCut(APC_WIRE_IDSCAN))
|
||||
locked = !locked
|
||||
to_chat(user,"You [ locked ? "lock" : "unlock"] the APC interface.")
|
||||
to_chat(user, "You [ locked ? "lock" : "unlock"] the APC interface.")
|
||||
update_icon()
|
||||
else
|
||||
to_chat(user,"<span class='warning'>Access denied.</span>")
|
||||
to_chat(user, "<span class='warning'>Access denied.</span>")
|
||||
|
||||
/obj/machinery/power/apc/AltClick(mob/user)
|
||||
..()
|
||||
@@ -697,17 +697,17 @@
|
||||
/obj/machinery/power/apc/emag_act(var/remaining_charges, var/mob/user)
|
||||
if (!(emagged || hacker)) // trying to unlock with an emag card
|
||||
if(opened)
|
||||
to_chat(user,"You must close the cover to do that.")
|
||||
to_chat(user, "You must close the cover to do that.")
|
||||
else if(wiresexposed)
|
||||
to_chat(user,"You must close the wire panel first.")
|
||||
to_chat(user, "You must close the wire panel first.")
|
||||
else if(stat & (BROKEN|MAINT))
|
||||
to_chat(user,"The [src] isn't working.")
|
||||
to_chat(user, "The [src] isn't working.")
|
||||
else
|
||||
flick("apc-spark", src)
|
||||
if (do_after(user,6))
|
||||
emagged = 1
|
||||
locked = 0
|
||||
to_chat(user,"<span class='notice'>You emag the APC interface.</span>")
|
||||
to_chat(user, "<span class='notice'>You emag the APC interface.</span>")
|
||||
update_icon()
|
||||
return 1
|
||||
|
||||
@@ -852,13 +852,13 @@
|
||||
area.power_environ = (environ >= POWERCHAN_ON)
|
||||
// if (area.name == "AI Chamber")
|
||||
// spawn(10)
|
||||
// world << " [area.name] [area.power_equip]"
|
||||
// to_world(" [area.name] [area.power_equip]")
|
||||
else
|
||||
area.power_light = 0
|
||||
area.power_equip = 0
|
||||
area.power_environ = 0
|
||||
// if (area.name == "AI Chamber")
|
||||
// world << "[area.power_equip]"
|
||||
// to_world("[area.power_equip]")
|
||||
area.power_change()
|
||||
|
||||
/obj/machinery/power/apc/proc/isWireCut(var/wireIndex)
|
||||
@@ -877,10 +877,10 @@
|
||||
if(!user.IsAdvancedToolUser())
|
||||
return 0
|
||||
if(user.restrained())
|
||||
to_chat(user,"<span class='warning'>Your hands must be free to use [src].</span>")
|
||||
to_chat(user, "<span class='warning'>Your hands must be free to use [src].</span>")
|
||||
return 0
|
||||
if(user.lying)
|
||||
to_chat(user,"<span class='warning'>You must stand to use [src]!</span>")
|
||||
to_chat(user, "<span class='warning'>You must stand to use [src]!</span>")
|
||||
return 0
|
||||
autoflag = 5
|
||||
if (istype(user, /mob/living/silicon))
|
||||
@@ -895,14 +895,14 @@
|
||||
|
||||
if(aidisabled && !permit)
|
||||
if(!loud)
|
||||
to_chat(user,"<span class='danger'>\The AI control for [src] has been disabled!</span>")
|
||||
to_chat(user, "<span class='danger'>\The AI control for [src] has been disabled!</span>")
|
||||
return 0
|
||||
else
|
||||
if (!in_range(src, user) || !istype(src.loc, /turf))
|
||||
return 0
|
||||
var/mob/living/carbon/human/H = user
|
||||
if (istype(H) && prob(H.getBrainLoss()))
|
||||
to_chat(user,"<span class='danger'>You momentarily forget how to use [src].</span>")
|
||||
to_chat(user, "<span class='danger'>You momentarily forget how to use [src].</span>")
|
||||
return 0
|
||||
return 1
|
||||
|
||||
@@ -917,10 +917,10 @@
|
||||
if(isobserver(usr) )
|
||||
var/mob/observer/dead/O = usr //Added to allow admin nanoUI interactions.
|
||||
if(!O.can_admin_interact() ) //NanoUI /should/ make this not needed, but better safe than sorry.
|
||||
to_chat(usr,"Try as you might, your ghostly fingers can't press the buttons.")
|
||||
to_chat(usr, "Try as you might, your ghostly fingers can't press the buttons.")
|
||||
return 1
|
||||
else
|
||||
to_chat(usr,"You must unlock the panel to use this!")
|
||||
to_chat(usr, "You must unlock the panel to use this!")
|
||||
return 1
|
||||
|
||||
if (href_list["lock"])
|
||||
@@ -965,7 +965,7 @@
|
||||
else if (href_list["toggleaccess"])
|
||||
if(istype(usr, /mob/living/silicon))
|
||||
if(emagged || (stat & (BROKEN|MAINT)))
|
||||
to_chat(usr,"The APC does not respond to the command.")
|
||||
to_chat(usr, "The APC does not respond to the command.")
|
||||
return
|
||||
locked = !locked
|
||||
update_icon()
|
||||
|
||||
@@ -18,10 +18,10 @@
|
||||
return
|
||||
|
||||
if(W.is_wirecutter())
|
||||
usr << "<font color='blue'>These cables are too tough to be cut with those [W.name].</font>"
|
||||
to_chat(usr, "<font color='blue'>These cables are too tough to be cut with those [W.name].</font>")
|
||||
return
|
||||
else if(istype(W, /obj/item/stack/cable_coil))
|
||||
usr << "<font color='blue'>You will need heavier cables to connect to these.</font>"
|
||||
to_chat(usr, "<font color='blue'>You will need heavier cables to connect to these.</font>")
|
||||
return
|
||||
else
|
||||
..()
|
||||
|
||||
@@ -263,5 +263,5 @@
|
||||
|
||||
/obj/item/weapon/cell/suicide_act(mob/user)
|
||||
var/datum/gender/TU = gender_datums[user.get_visible_gender()]
|
||||
viewers(user) << "<span class='danger'>\The [user] is licking the electrodes of \the [src]! It looks like [TU.he] [TU.is] trying to commit suicide.</span>"
|
||||
to_chat(viewers(user),"<span class='danger'>\The [user] is licking the electrodes of \the [src]! It looks like [TU.he] [TU.is] trying to commit suicide.</span>")
|
||||
return (FIRELOSS)
|
||||
@@ -18,7 +18,7 @@
|
||||
/obj/machinery/power/fractal_reactor/New()
|
||||
..()
|
||||
if(!mapped_in)
|
||||
world << "<b><font color='red'>WARNING:</font><font color='black'> Map testing power source activated at: X:[src.loc.x] Y:[src.loc.y] Z:[src.loc.z]</font></b>"
|
||||
to_world("<b><font color='red'>WARNING:</font><font color='black'> Map testing power source activated at: X:[src.loc.x] Y:[src.loc.y] Z:[src.loc.z]</font></b>")
|
||||
|
||||
/obj/machinery/power/fractal_reactor/process()
|
||||
if(!powernet && !powernet_connection_failed)
|
||||
|
||||
@@ -69,7 +69,7 @@
|
||||
hot_air.temperature = hot_air.temperature - energy_transfer/hot_air_heat_capacity
|
||||
cold_air.temperature = cold_air.temperature + heat/cold_air_heat_capacity
|
||||
|
||||
//world << "POWER: [lastgen] W generated at [efficiency*100]% efficiency and sinks sizes [cold_air_heat_capacity], [hot_air_heat_capacity]"
|
||||
//to_world("POWER: [lastgen] W generated at [efficiency*100]% efficiency and sinks sizes [cold_air_heat_capacity], [hot_air_heat_capacity]")
|
||||
|
||||
if(input1.network)
|
||||
input1.network.update = 1
|
||||
|
||||
@@ -55,10 +55,10 @@
|
||||
/obj/machinery/computer/gravity_control_computer/proc/findgenerator()
|
||||
var/obj/machinery/gravity_generator/foundgenerator = null
|
||||
for(dir in list(NORTH,EAST,SOUTH,WEST))
|
||||
//world << "SEARCHING IN [dir]"
|
||||
//to_world("SEARCHING IN [dir]")
|
||||
foundgenerator = locate(/obj/machinery/gravity_generator/, get_step(src, dir))
|
||||
if (!isnull(foundgenerator))
|
||||
//world << "FOUND"
|
||||
//to_world("FOUND")
|
||||
break
|
||||
return foundgenerator
|
||||
|
||||
|
||||
@@ -246,7 +246,7 @@
|
||||
|
||||
//remove the old powernet and replace it with a new one throughout the network.
|
||||
/proc/propagate_network(var/obj/O, var/datum/powernet/PN)
|
||||
//world.log << "propagating new network"
|
||||
//to_world_log("propagating new network")
|
||||
var/list/worklist = list()
|
||||
var/list/found_machines = list()
|
||||
var/index = 1
|
||||
|
||||
@@ -34,14 +34,14 @@ var/global/list/power_update_requests_by_area = list()
|
||||
if(enable_power_update_profiling)
|
||||
enable_power_update_profiling = 0
|
||||
|
||||
usr << "Area power update profiling disabled."
|
||||
to_chat(usr, "Area power update profiling disabled.")
|
||||
message_admins("[key_name(src)] toggled area power update profiling off.")
|
||||
log_admin("[key_name(src)] toggled area power update profiling off.")
|
||||
else
|
||||
enable_power_update_profiling = 1
|
||||
power_last_profile_time = world.time
|
||||
|
||||
usr << "Area power update profiling enabled."
|
||||
to_chat(usr, "Area power update profiling enabled.")
|
||||
message_admins("[key_name(src)] toggled area power update profiling on.")
|
||||
log_admin("[key_name(src)] toggled area power update profiling on.")
|
||||
|
||||
@@ -54,9 +54,9 @@ var/global/list/power_update_requests_by_area = list()
|
||||
|
||||
if(!check_rights(R_DEBUG)) return
|
||||
|
||||
usr << "Total profiling time: [power_profiled_time] ticks"
|
||||
to_chat(usr, "Total profiling time: [power_profiled_time] ticks")
|
||||
for (var/M in power_update_requests_by_machine)
|
||||
usr << "[M] = [power_update_requests_by_machine[M]]"
|
||||
to_chat(usr, "[M] = [power_update_requests_by_machine[M]]")
|
||||
|
||||
/client/proc/view_power_update_stats_area()
|
||||
set name = "View Area Power Update Statistics By Area"
|
||||
@@ -65,7 +65,7 @@ var/global/list/power_update_requests_by_area = list()
|
||||
|
||||
if(!check_rights(R_DEBUG)) return
|
||||
|
||||
usr << "Total profiling time: [power_profiled_time] ticks"
|
||||
usr << "Total profiling time: [power_profiled_time] ticks"
|
||||
to_chat(usr, "Total profiling time: [power_profiled_time] ticks")
|
||||
to_chat(usr, "Total profiling time: [power_profiled_time] ticks")
|
||||
for (var/A in power_update_requests_by_area)
|
||||
usr << "[A] = [power_update_requests_by_area[A]]"
|
||||
to_chat(usr, "[A] = [power_update_requests_by_area[A]]")
|
||||
@@ -83,7 +83,7 @@ field_generator power level display
|
||||
if(state == 2)
|
||||
if(get_dist(src, user) <= 1)//Need to actually touch the thing to turn it on
|
||||
if(src.active >= 1)
|
||||
user << "You are unable to turn off the [src.name] once it is online."
|
||||
to_chat(user, "You are unable to turn off the [src.name] once it is online.")
|
||||
return 1
|
||||
else
|
||||
user.visible_message("[user.name] turns on the [src.name]", \
|
||||
@@ -95,13 +95,13 @@ field_generator power level display
|
||||
|
||||
src.add_fingerprint(user)
|
||||
else
|
||||
user << "The [src] needs to be firmly secured to the floor first."
|
||||
to_chat(user, "The [src] needs to be firmly secured to the floor first.")
|
||||
return
|
||||
|
||||
|
||||
/obj/machinery/field_generator/attackby(obj/item/W, mob/user)
|
||||
if(active)
|
||||
user << "The [src] needs to be off."
|
||||
to_chat(user, "The [src] needs to be off.")
|
||||
return
|
||||
else if(W.is_wrench())
|
||||
switch(state)
|
||||
@@ -120,13 +120,13 @@ field_generator power level display
|
||||
"You hear ratchet")
|
||||
src.anchored = 0
|
||||
if(2)
|
||||
user << "<font color='red'>The [src.name] needs to be unwelded from the floor.</font>"
|
||||
to_chat(user, "<font color='red'>The [src.name] needs to be unwelded from the floor.</font>")
|
||||
return
|
||||
else if(istype(W, /obj/item/weapon/weldingtool))
|
||||
var/obj/item/weapon/weldingtool/WT = W
|
||||
switch(state)
|
||||
if(0)
|
||||
user << "<font color='red'>The [src.name] needs to be wrenched to the floor.</font>"
|
||||
to_chat(user, "<font color='red'>The [src.name] needs to be wrenched to the floor.</font>")
|
||||
return
|
||||
if(1)
|
||||
if (WT.remove_fuel(0,user))
|
||||
@@ -137,7 +137,7 @@ field_generator power level display
|
||||
if (do_after(user,20 * WT.toolspeed))
|
||||
if(!src || !WT.isOn()) return
|
||||
state = 2
|
||||
user << "You weld the field generator to the floor."
|
||||
to_chat(user, "You weld the field generator to the floor.")
|
||||
else
|
||||
return
|
||||
if(2)
|
||||
@@ -149,7 +149,7 @@ field_generator power level display
|
||||
if (do_after(user,20 * WT.toolspeed))
|
||||
if(!src || !WT.isOn()) return
|
||||
state = 1
|
||||
user << "You cut the [src] free from the floor."
|
||||
to_chat(user, "You cut the [src] free from the floor.")
|
||||
else
|
||||
return
|
||||
else
|
||||
|
||||
@@ -78,7 +78,7 @@
|
||||
var/radiation = (energy*2)
|
||||
M.apply_effect((radiation*3),IRRADIATE,0)
|
||||
M.updatehealth()
|
||||
//M << "<font color='red'>You feel odd.</font>"
|
||||
//to_chat(M, "<font color='red'>You feel odd.</font>")
|
||||
|
||||
|
||||
/obj/effect/accelerated_particle/proc/move(var/lag)
|
||||
|
||||
@@ -37,7 +37,7 @@ GLOBAL_LIST_BOILERPLATE(all_singularities, /obj/singularity)
|
||||
energy = starting_energy
|
||||
|
||||
..()
|
||||
START_PROCESSING(SSobj, src)
|
||||
START_PROCESSING(SSobj, src)
|
||||
for(var/obj/machinery/power/singularity_beacon/singubeacon in machines)
|
||||
if(singubeacon.active)
|
||||
target = singubeacon
|
||||
@@ -422,11 +422,11 @@ GLOBAL_LIST_BOILERPLATE(all_singularities, /obj/singularity)
|
||||
if (istype(M,/mob/living/carbon/human))
|
||||
var/mob/living/carbon/human/H = M
|
||||
if(istype(H.glasses,/obj/item/clothing/glasses/meson) && current_size != STAGE_SUPER)
|
||||
H << "<span class=\"notice\">You look directly into The [src.name], good thing you had your protective eyewear on!</span>"
|
||||
to_chat(H, "<span class=\"notice\">You look directly into The [src.name], good thing you had your protective eyewear on!</span>")
|
||||
return
|
||||
else
|
||||
H << "<span class=\"warning\">You look directly into The [src.name], but your eyewear does absolutely nothing to protect you from it!</span>"
|
||||
M << "<span class='danger'>You look directly into The [src.name] and feel [current_size == STAGE_SUPER ? "helpless" : "weak"].</span>"
|
||||
to_chat(H, "<span class=\"warning\">You look directly into The [src.name], but your eyewear does absolutely nothing to protect you from it!</span>")
|
||||
to_chat(M, "<span class='danger'>You look directly into The [src.name] and feel [current_size == STAGE_SUPER ? "helpless" : "weak"].</span>")
|
||||
M.apply_effect(3, STUN)
|
||||
for(var/mob/O in viewers(M, null))
|
||||
O.show_message(text("<span class='danger'>[] stares blankly at The []!</span>", M, src), 1)
|
||||
@@ -443,8 +443,8 @@ GLOBAL_LIST_BOILERPLATE(all_singularities, /obj/singularity)
|
||||
to_chat(M, "<span class=\"warning\">You hear an uneartly ringing, then what sounds like a shrilling kettle as you are washed with a wave of heat.</span>")
|
||||
to_chat(M, "<span class=\"notice\">Miraculously, it fails to kill you.</span>")
|
||||
else
|
||||
M << "<span class=\"danger\">You hear an uneartly ringing, then what sounds like a shrilling kettle as you are washed with a wave of heat.</span>"
|
||||
M << "<span class=\"danger\">You don't even have a moment to react as you are reduced to ashes by the intense radiation.</span>"
|
||||
to_chat(M, "<span class=\"danger\">You hear an uneartly ringing, then what sounds like a shrilling kettle as you are washed with a wave of heat.</span>")
|
||||
to_chat(M, "<span class=\"danger\">You don't even have a moment to react as you are reduced to ashes by the intense radiation.</span>")
|
||||
M.dust()
|
||||
SSradiation.radiate(src, rand(energy))
|
||||
return
|
||||
|
||||
Reference in New Issue
Block a user