Added a penlight. also slightly changed the way flashlights work, so we can easily add more kinds of flashlights. Now they have a brightness_on var, which determines their luminosity when on, an icon_on and icon_off var which determine their sprites when on and off. Jobs that spawn with a pen-light: medical doctor, CMO, geneticist, virologist. note that a pen-light is a pen-sized light, not a pen, that's also a light.

git-svn-id: http://tgstation13.googlecode.com/svn/trunk@892 316c924e-a436-60f5-8080-3fe189b3f50e
This commit is contained in:
baloh.matevz
2011-01-19 02:37:45 +00:00
parent bef0114839
commit 3c5bac264e
6 changed files with 36 additions and 14 deletions
+13
View File
@@ -330,12 +330,25 @@
desc = "A hand-held emergency light."
icon_state = "flight0"
var/on = 0
var/brightness_on = 4 //luminosity when on
var/icon_on = "flight1"
var/icon_off = "flight0"
w_class = 2
item_state = "flight"
flags = FPRINT | ONBELT | TABLEPASS | CONDUCT
m_amt = 50
g_amt = 20
/obj/item/device/flashlight/pen
name = "penlight"
desc = "A pen-sized light."
icon_state = "plight0"
flags = FPRINT | TABLEPASS | CONDUCT
item_state = ""
icon_on = "plight1"
icon_off = "plight0"
brightness_on = 3
/obj/item/device/healthanalyzer
name = "Health Analyzer"
icon_state = "health"
+2 -1
View File
@@ -286,6 +286,7 @@
icon_state = "hardhat0"
flags = FPRINT | TABLEPASS | SUITSPACE
item_state = "hardhat0"
var/brightness_on = 4 //luminosity when on
var/on = 0
@@ -540,7 +541,7 @@
body_parts_covered = UPPER_TORSO|LOWER_TORSO|ARMS
permeability_coefficient = 0.25
heat_transfer_coefficient = 0.75
allowed = list(/obj/item/device/analyzer,/obj/item/weapon/medical,/obj/item/weapon/dnainjector,/obj/item/weapon/reagent_containers/dropper,/obj/item/weapon/reagent_containers/syringe,/obj/item/weapon/reagent_containers/hypospray,/obj/item/device/healthanalyzer)
allowed = list(/obj/item/device/analyzer,/obj/item/weapon/medical,/obj/item/weapon/dnainjector,/obj/item/weapon/reagent_containers/dropper,/obj/item/weapon/reagent_containers/syringe,/obj/item/weapon/reagent_containers/hypospray,/obj/item/device/healthanalyzer,/obj/item/device/flashlight/pen)
/obj/item/clothing/suit/labcoat/cmo
name = "chief medical officer's labcoat"