Files
Paradise/code/game/asteroid/turf.dm
sieve32@gmail.com 459c558898 -Make holodeck eswords a child of obj/item/weapon/holo instead of regular eswords, clumsy check removed as a result, and you can no longer do things like cutting through walls or doors or what have you. (Fixes Issue 665)
-Redid icons to be more optimized at compile by setting icon = 'icons/folder/icon.dmi' instead of just icon = 'icon.dmi', meaning that Dream Maker doesn't have to search through every single file for every single .dmi. This shouldn't lead to any errors because of how I went about it, plus the fact that Dream Maker would have freaked out if I screwed something up. Also moved around 2 icons that weren't sorted well.

r4146 compile time: 1 minute, 40 seconds
r4147 compile time: 45 seconds

[VGTG]

git-svn-id: http://tgstation13.googlecode.com/svn/trunk@4147 316c924e-a436-60f5-8080-3fe189b3f50e
2012-07-23 00:48:51 +00:00

86 lines
1.7 KiB
Plaintext

/turf/simulated/wall/asteroid
name = "asteroid"
icon = 'icons/turf/walls.dmi'
icon_state = "asteroid"
opacity = 1
density = 1
oxygen = 0
nitrogen = 0
temperature = TCMB
var/contains = null
var/max_amount = 1
var/min_amount = 0
/turf/simulated/wall/asteroid/iron
icon_state = "asteroid_i"
contains = /obj/item/stack/sheet/metal
max_amount = 3
min_amount = 1
/turf/simulated/wall/asteroid/silicon
icon_state = "asteroid_i"
contains = /obj/item/stack/sheet/glass
max_amount = 3
min_amount = 1
/turf/simulated/wall/asteroid/facehugger
icon_state = "asteroid_i"
contains = /obj/item/clothing/mask/facehugger
max_amount = 1
min_amount = 0
/*
/turf/simulated/wall/asteroid/frozen_gas
name="frozen gas"
icon = 'icons/obj/atmos.dmi'
/turf/simulated/wall/asteroid/frozen_gas/oxygen
icon_state = "blue"
New()
src.oxygen = rand(40,200)
..()
/turf/simulated/wall/asteroid/frozen_gas/nitrogen
icon_state = "red"
New()
src.nitrogen = rand(40,200)
..()
/turf/simulated/wall/asteroid/frozen_gas/toxins
icon_state = "orange"
New()
src.toxins = rand(40,200)
..()
/turf/simulated/wall/asteroid/frozen_gas/carbon_dioxide
icon_state = "black"
New()
src.carbon_dioxide = rand(40,200)
..()
*/
/turf/simulated/wall/asteroid/dismantle_wall(devastated=0)
if(contains && ispath(contains))
var/iterations = 0
if(!devastated)
iterations = max_amount
else
iterations = min_amount
for(var/i=0 to iterations)
new contains(src)
ReplaceWithSpace()
/turf/simulated/wall/asteroid/attackby(obj/item/weapon/W as obj, mob/user as mob)//TODO
return attack_hand(user)
/turf/simulated/wall/asteroid/relativewall()//TODO.
return