Reduce lines by removing blank lines added by PJ's script

This commit is contained in:
Tigercat2000
2016-04-05 08:25:57 -07:00
parent 9d430844c3
commit 78f53553f8
1049 changed files with 3 additions and 8630 deletions
-10
View File
@@ -67,7 +67,6 @@
if(istype(load, /mob/living/carbon/human))
var/mob/living/D = load
to_chat(D, "\red You hit [M]!")
msg_admin_attack("[key_name_admin(D)] hit [key_name_admin(M)] with [src].")
@@ -88,7 +87,6 @@
var/turf/T = get_step_to(src, get_step(src, direction))
if(!T)
to_chat(user, "You can't find a clear area to step onto.")
return 0
if(user != load)
@@ -101,7 +99,6 @@
to_chat(user, "\blue You climb down from [src].")
return 1
/obj/vehicle/train/MouseDrop_T(var/atom/movable/C, mob/user as mob)
@@ -113,7 +110,6 @@
if(!load(C))
to_chat(user, "\red You were unable to load [C] on [src].")
/obj/vehicle/train/attack_hand(mob/user as mob)
if(user.stat || user.restrained() || !Adjacent(user))
return 0
@@ -150,17 +146,14 @@
/obj/vehicle/train/proc/attach_to(obj/vehicle/train/T, mob/user)
if (get_dist(src, T) > 1)
to_chat(user, "\red [src] is too far away from [T] to hitch them together.")
return
if (lead)
to_chat(user, "\red [src] is already hitched to something.")
return
if (T.tow)
to_chat(user, "\red [T] is already towing something.")
return
//check for cycles.
@@ -168,7 +161,6 @@
while (next_car)
if (next_car == src)
to_chat(user, "\red That seems very silly.")
return
next_car = next_car.lead
@@ -180,7 +172,6 @@
if(user)
to_chat(user, "\blue You hitch [src] to [T].")
update_stats()
@@ -188,7 +179,6 @@
/obj/vehicle/train/proc/unattach(mob/user)
if (!lead)
to_chat(user, "\red [src] is not hitched to anything.")
return
lead.tow = null
@@ -143,7 +143,6 @@
if(is_train_head() && istype(load, /mob/living/carbon/human))
var/mob/living/carbon/human/D = load
to_chat(D, "\red \b You ran over [H]!")
visible_message("<B>\red \The [src] ran over [H]!</B>")
attack_log += text("\[[time_stamp()]\] <font color='red'>ran over [key_name(H)], driven by [key_name(D)]</font>")
msg_admin_attack("[key_name_admin(D)] ran over [key_name_admin(H)]")
@@ -171,7 +170,6 @@
if(..(user, 1))
to_chat(user, "The power light is [on ? "on" : "off"].\nThere are[key ? "" : " no"] keys in the ignition.")
/obj/vehicle/train/ambulance/engine/verb/check_power()
set name = "Check power level"
set category = "Object"
@@ -182,12 +180,10 @@
if(!cell)
to_chat(usr, "There is no power cell installed in [src].")
return
to_chat(usr, "The power meter reads [round(cell.percent(), 0.01)]%")
/obj/vehicle/train/ambulance/engine/verb/start_engine()
set name = "Start engine"
set category = "Object"
@@ -198,21 +194,17 @@
if(on)
to_chat(usr, "The engine is already running.")
return
turn_on()
if (on)
to_chat(usr, "You start [src]'s engine.")
else
if(cell.charge < charge_use)
to_chat(usr, "[src] is out of power.")
else
to_chat(usr, "[src]'s engine won't start.")
/obj/vehicle/train/ambulance/engine/verb/stop_engine()
set name = "Stop engine"
set category = "Object"
@@ -223,14 +215,12 @@
if(!on)
to_chat(usr, "The engine is already stopped.")
return
turn_off()
if (!on)
to_chat(usr, "You stop [src]'s engine.")
/obj/vehicle/train/ambulance/engine/verb/remove_key()
set name = "Remove key"
set category = "Object"
@@ -139,7 +139,6 @@
if(is_train_head() && istype(load, /mob/living/carbon/human))
var/mob/living/carbon/human/D = load
to_chat(D, "\red \b You ran over [H]!")
visible_message("<B>\red \The [src] ran over [H]!</B>")
attack_log += text("\[[time_stamp()]\] <font color='red'>ran over [key_name(H)], driven by [key_name(D)]</font>")
msg_admin_attack("[key_name_admin(D)] ran over [key_name_admin(H)]")
@@ -168,10 +167,8 @@
return
to_chat(user, "The power light is [on ? "on" : "off"].\nThere are[key ? "" : " no"] keys in the ignition.")
to_chat(user, "The charge meter reads [cell? round(cell.percent(), 0.01) : 0]%")
/obj/vehicle/train/cargo/engine/verb/start_engine()
set name = "Start engine"
set category = "Object"
@@ -182,21 +179,17 @@
if(on)
to_chat(usr, "The engine is already running.")
return
turn_on()
if (on)
to_chat(usr, "You start [src]'s engine.")
else
if(cell.charge < charge_use)
to_chat(usr, "[src] is out of power.")
else
to_chat(usr, "[src]'s engine won't start.")
/obj/vehicle/train/cargo/engine/verb/stop_engine()
set name = "Stop engine"
set category = "Object"
@@ -207,14 +200,12 @@
if(!on)
to_chat(usr, "The engine is already stopped.")
return
turn_off()
if (!on)
to_chat(usr, "You stop [src]'s engine.")
/obj/vehicle/train/cargo/engine/verb/remove_key()
set name = "Remove key"
set category = "Object"
-7
View File
@@ -87,7 +87,6 @@
open = !open
update_icon()
to_chat(user, "<span class='notice'>Maintenance panel is now [open ? "opened" : "closed"].</span>")
else if(istype(W, /obj/item/weapon/crowbar) && cell && open)
remove_cell(user)
@@ -102,13 +101,10 @@
user.visible_message("\red [user] repairs [src]!","\blue You repair [src]!")
else
to_chat(user, "<span class='notice'>Unable to repair with the maintenance panel closed.</span>")
else
to_chat(user, "<span class='notice'>[src] does not need a repair.</span>")
else
to_chat(user, "<span class='notice'>Unable to repair while [src] is off.</span>")
else if(hasvar(W,"force") && hasvar(W,"damtype"))
switch(W.damtype)
if("fire")
@@ -211,7 +207,6 @@
locked = 0
to_chat(user, "<span class='warning'>You bypass [src]'s controls.</span>")
/obj/vehicle/proc/explode()
src.visible_message("\red <B>[src] blows apart!</B>", 1)
var/turf/Tsec = get_turf(src)
@@ -269,13 +264,11 @@
powercheck()
to_chat(usr, "<span class='notice'>You install [C] in [src].</span>")
/obj/vehicle/proc/remove_cell(var/mob/living/carbon/human/H)
if(!cell)
return
to_chat(usr, "<span class='notice'>You remove [cell] from [src].</span>")
cell.forceMove(get_turf(H))
H.put_in_hands(cell)
cell = null