Files
Aurora.3/code/defines/obj/window.dm
vageyenaman@gmail.com 591c5303d5 Fixed silicate:
- You can no longer infinitely reinforce them, they have a limit. This should prevent them from becoming so reinforced that they become literally invisible.
     - You can now rotate silicated windows without the icon not updating properly.
     - Silicate now doesn't automatically double a window's integrity, instead, it now depends on the volume of silicate. This prevents windows from becoming virtually invincible. 1 unit of silicate is only 1/100ths as effective as 100 units of silicate, etc.

git-svn-id: http://tgstation13.googlecode.com/svn/trunk@2072 316c924e-a436-60f5-8080-3fe189b3f50e
2011-08-30 05:03:29 +00:00

63 lines
1.1 KiB
Plaintext

/obj/window
name = "window"
icon = 'structures.dmi'
desc = "A window."
density = 1
var/health = 14.0
var/ini_dir = null
var/state = 0
var/reinf = 0
var/silicate = 0 // number of units of silicate
var/icon/silicateIcon = null // the silicated icon
pressure_resistance = 4*ONE_ATMOSPHERE
anchored = 1.0
flags = ON_BORDER
// Prefab windows to make it easy...
// Basic
/obj/window/basic
icon_state = "window"
/obj/window/basic/north
dir = NORTH
/obj/window/basic/east
dir = EAST
/obj/window/basic/west
dir = WEST
/obj/window/basic/south
dir = SOUTH
/obj/window/basic/northwest
dir = NORTHWEST
/obj/window/basic/northeast
dir = NORTHEAST
/obj/window/basic/southwest
dir = SOUTHWEST
/obj/window/basic/southeast
dir = SOUTHEAST
// Reinforced
/obj/window/reinforced
reinf = 1
icon_state = "rwindow"
name = "reinforced window"
/obj/window/reinforced/tinted
name = "tinted window"
icon_state = "twindow"
opacity = 1
/obj/window/reinforced/tinted/frosted
icon_state = "fwindow"
name = "frosted window"