code optimizations

This commit is contained in:
paprka
2014-12-25 13:28:05 -08:00
parent a6acdeb3c2
commit 404da4dbdd
5 changed files with 9 additions and 60 deletions
+5 -5
View File
@@ -2,7 +2,7 @@
name = "lattice"
desc = "A lightweight support lattice."
icon = 'icons/obj/structures.dmi'
icon_state = "lattice"
icon_state = "latticefull"
density = 0
anchored = 1.0
layer = 2.3 //under pipes
@@ -60,7 +60,7 @@
if (istype(C, /obj/item/weapon/weldingtool))
var/obj/item/weapon/weldingtool/WT = C
if(WT.remove_fuel(0, user))
user << "<span class='notice'>Slicing [initial(icon_state)] joints ...</span>"
user << "<span class='notice'>Slicing [name] joints ...</span>"
Deconstruct()
return
@@ -78,7 +78,7 @@
if(!(istype(get_step(src, direction), /turf/space)))
dir_sum += direction
icon_state = "[initial(icon_state)][dir_sum]"
icon_state = "[name][dir_sum]"
return
/obj/structure/lattice/Deconstruct()
@@ -93,7 +93,7 @@
/obj/structure/lattice/catwalk
name = "catwalk"
desc = "A catwalk for easier EVA manuevering."
icon_state = "catwalk"
icon_state = "catwalkfull"
/obj/structure/lattice/catwalk/attackby(obj/item/C as obj, mob/user as mob)
..()
@@ -103,4 +103,4 @@
if((LC.d1==0)||(LC.d2==0))
LC.attackby(C,user)
return
coil.catwalk_place(src, user)
coil.place(src, user)