Advertisement
EditorRUS

Frost Dillema

May 28th, 2012
99
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.50 KB | None | 0 0
  1. /obj/structure/window/proc/frost()
  2. for(var/turf/T in orange(1,src))
  3. if(!T.air_mixture)
  4. return 0
  5. var/temperature = T.air_mixture.temperature
  6. var/pressure = T.air_mixture.pressure
  7. if(temperature <= 150.3 && !frosted)
  8. if(pressure > 10)
  9. src.frosted = 2
  10. src.health += 30
  11. src.icon_state = "fwindow"
  12. else
  13. src.frosted = 1
  14. src.health -= 15
  15. src.icon_state = "pwindow"
  16. else
  17. icon_state="rwindow"
  18. src.frosted = 0
  19. src.health = max(src.health - 30,0)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement