Automatic conversion via Regex

This commit is contained in:
Remie Richards
2016-06-11 18:37:48 +01:00
parent a041255b80
commit fda2c699fc
126 changed files with 323 additions and 323 deletions
+1 -1
View File
@@ -15,7 +15,7 @@
icon_state = "shield"
anchored = 1
density = 1
dir = 1
setDir(1)
use_power = 0//Living things generally dont use power
idle_power_usage = 0
active_power_usage = 0
+3 -3
View File
@@ -109,9 +109,9 @@
// offset 24 pixels in direction of dir
// this allows the APC to be embedded in a wall, yet still inside an area
if (building)
dir = ndir
setDir(ndir)
src.tdir = dir // to fix Vars bug
dir = SOUTH
setDir(SOUTH)
if(auto_name)
name = "[get_area(src)] APC"
@@ -153,7 +153,7 @@
// create a terminal object at the same position as original turf loc
// wires will attach to this
terminal = new/obj/machinery/power/terminal(src.loc)
terminal.dir = tdir
terminal.setDir(tdir)
terminal.master = src
/obj/machinery/power/apc/proc/init()
+3 -3
View File
@@ -41,7 +41,7 @@
/obj/machinery/light_construct/New(loc, ndir, building)
..()
if(building)
dir = ndir
setDir(ndir)
/obj/machinery/light_construct/examine(mob/user)
..()
@@ -110,7 +110,7 @@
newlight = new /obj/machinery/light/built(loc)
if ("bulb")
newlight = new /obj/machinery/light/small/built(loc)
newlight.dir = dir
newlight.setDir(dir)
transfer_fingerprints_to(newlight)
qdel(src)
return
@@ -320,7 +320,7 @@
if("bulb")
newlight = new /obj/machinery/light_construct/small(src.loc)
newlight.icon_state = "bulb-construct-stage2"
newlight.dir = src.dir
newlight.setDir(src.dir)
newlight.stage = 2
transfer_fingerprints_to(newlight)
qdel(src)
+2 -2
View File
@@ -68,7 +68,7 @@
if (src.anchored)
usr << "<span class='warning'>It is fastened to the floor!</span>"
return 0
src.dir = turn(src.dir, 270)
src.setDir(turn(src.dir, 270))
return 1
/obj/machinery/power/emitter/AltClick(mob/user)
@@ -170,7 +170,7 @@
var/obj/item/projectile/A = PoolOrNew(projectile_type,src.loc)
A.dir = src.dir
A.setDir(src.dir)
playsound(src.loc, projectile_sound, 25, 1)
if(prob(35))
@@ -283,7 +283,7 @@ field_generator power level display
var/obj/machinery/field/containment/CF = new/obj/machinery/field/containment()
CF.set_master(src,G)
CF.loc = T
CF.dir = field_dir
CF.setDir(field_dir)
fields += CF
G.fields += CF
for(var/mob/living/L in T)
+1 -1
View File
@@ -151,7 +151,7 @@
/obj/singularity/narsie/proc/narsie_spawn_animation()
icon = 'icons/obj/narsie_spawn_anim.dmi'
dir = SOUTH
setDir(SOUTH)
move_self = 0
flick("narsie_spawn_anim",src)
sleep(11)
@@ -22,7 +22,7 @@
/obj/effect/accelerated_particle/New(loc, dir = 2)
src.dir = dir
src.setDir(dir)
spawn(0)
move(1)
@@ -63,7 +63,7 @@
if (anchored)
usr << "It is fastened to the floor!"
return 0
dir = turn(dir, -90)
setDir(turn(dir, -90))
return 1
/obj/structure/particle_accelerator/AltClick(mob/user)
@@ -86,7 +86,7 @@
if (anchored)
usr << "It is fastened to the floor!"
return 0
dir = turn(dir, 90)
setDir(turn(dir, 90))
return 1
/obj/structure/particle_accelerator/attackby(obj/item/W, mob/user, params)
@@ -10,7 +10,7 @@
use_power = 0
idle_power_usage = 500
active_power_usage = 10000
dir = 1
setDir(1)
var/strength_upper_limit = 2
var/interface_control = 1
var/list/obj/structure/particle_accelerator/connected_parts
@@ -166,7 +166,7 @@
if(!F)
return 0
dir = F.dir
setDir(F.dir)
connected_parts.Cut()
T = get_step(T,rdir)
+1 -1
View File
@@ -193,7 +193,7 @@
// wires will attach to this
/obj/machinery/power/smes/proc/make_terminal(turf/T)
terminal = new/obj/machinery/power/terminal(T)
terminal.dir = get_dir(T,src)
terminal.setDir(get_dir(T,src))
terminal.master = src
/obj/machinery/power/smes/disconnect_terminal()
+1 -1
View File
@@ -114,7 +114,7 @@
overlays += image('icons/obj/power.dmi', icon_state = "solar_panel-b", layer = FLY_LAYER)
else
overlays += image('icons/obj/power.dmi', icon_state = "solar_panel", layer = FLY_LAYER)
src.dir = angle2dir(adir)
src.setDir(angle2dir(adir))
return
//calculates the fraction of the sunlight that the panel recieves
+1 -1
View File
@@ -61,7 +61,7 @@ var/list/blacklisted_tesla_types = typecacheof(list(/obj/machinery/atmospherics,
pixel_x = 0
pixel_y = 0
dir = tesla_zap(src, 7, TESLA_DEFAULT_POWER)
setDir(tesla_zap(src, 7, TESLA_DEFAULT_POWER))
pixel_x = -32
pixel_y = -32
+1 -1
View File
@@ -53,7 +53,7 @@
sun_angle = angle
//set icon dir to show sun illumination
dir = turn(NORTH, -angle - 22.5) // 22.5 deg bias ensures, e.g. 67.5-112.5 is EAST
setDir(turn(NORTH, -angle - 22.5) )// 22.5 deg bias ensures, e.g. 67.5-112.5 is EAST
if(powernet && (powernet == control.powernet)) //update if we're still in the same powernet
control.currentdir = angle