- Welding masks now have the view range lowered by default

- You can add a photo to you ID (Just one tho)
- If you examine someone with a photo on his ID, it'll tell you it has a photo
- Commented out code which spawns a photo of you at round start/late join
- Moving Mining out of beta

git-svn-id: http://tgstation13.googlecode.com/svn/trunk@1193 316c924e-a436-60f5-8080-3fe189b3f50e
This commit is contained in:
baloh.matevz
2011-03-16 06:02:42 +00:00
parent 2363af252b
commit cb843d95af
6 changed files with 52 additions and 4 deletions
+1 -1
View File
@@ -71,7 +71,7 @@ var
enter_allowed = 1
shuttle_frozen = 0
shuttle_left = 0
tinted_weldhelh = 0
tinted_weldhelh = 1
captainMax = 1
engineerMax = 5
+1
View File
@@ -349,6 +349,7 @@
var/access = list()
var/registered = null
var/assignment = null
var/obj/item/weapon/photo/PHOTO = null
/obj/item/weapon/card/id/gold
name = "identification card"
+11
View File
@@ -652,6 +652,17 @@
if(clear)
NL += T
src.loc = pick(NL)
/*
spawn(10)
var/obj/item/weapon/camera_test/CT = new/obj/item/weapon/camera_test(src.loc)
CT.afterattack(src, src, 10)
var/obj/item/weapon/photo/PH
PH = locate(/obj/item/weapon/photo,src.loc)
if(PH)
PH.layer = 3
src.equip_if_possible(PH, slot_in_backpack)
del(CT)*/ //--For another day - errorage
return
@@ -50,7 +50,34 @@ FINGERPRINT CARD
else
..()
/obj/item/weapon/card/id/attackby(obj/item/weapon/W as obj, mob/user as mob)
..()
if(istype(W,/obj/item/weapon/photo))
if(!(PHOTO))
src.PHOTO = W
usr.u_equip(W)
W.loc = src
if ((usr.client && usr.s_active != src))
usr.client.screen -= W
//src.orient2hud(usr)
W.dropped(usr)
add_fingerprint(usr)
usr << "\blue You add the photo to the ID"
else
usr << "\blue There is already a photo on this ID"
//PHOTO.loc = locate(0,0,0)
/obj/item/weapon/card/id/verb/removePhoto()
set name = "Remove Photo"
if(PHOTO)
contents -= PHOTO
PHOTO.loc = usr.loc
PHOTO.layer = 3
PHOTO = null
else
usr << "\blue There is no photo to remove"
// FINGERPRINT HOLDER
@@ -78,15 +78,24 @@
if (src.wear_id)
var/id
var/photo = 0
if(istype(src:wear_id, /obj/item/device/pda))
var/obj/item/device/pda/pda = src:wear_id
id = pda.owner
else
id = src.wear_id.registered
if (src.wear_id.PHOTO)
photo = 1
if (id != src.real_name && in_range(src, usr) && prob(10))
usr << "\red [src.name] is wearing \icon[src.wear_id] [src.wear_id.name] yet doesn't seem to be that person!!!"
if (photo)
usr << "\red [src.name] is wearing \icon[src.wear_id] [src.wear_id.name] with a photo yet doesn't seem to be that person!!!"
else
usr << "\red [src.name] is wearing \icon[src.wear_id] [src.wear_id.name] yet doesn't seem to be that person!!!"
else
usr << "\blue [src.name] is wearing \icon[src.wear_id] [src.wear_id.name]."
if (photo)
usr << "\blue [src.name] is wearing \icon[src.wear_id] [src.wear_id.name] with a photo."
else
usr << "\blue [src.name] is wearing \icon[src.wear_id] [src.wear_id.name]."
if (src.is_jittery)
switch(src.jitteriness)
+1 -1
View File
@@ -407,7 +407,7 @@ mob/new_player
if (IsJobAvailable("Warden", wardenMax))
dat += "<a href='byond://?src=\ref[src];SelectedJob=28'>Warden</a><br>"
if (IsJobAvailable("Shaft Miner",minerMax))
dat += "<a href='byond://?src=\ref[src];SelectedJob=29'>Shaft Miner</a> (BETA)<br>"
dat += "<a href='byond://?src=\ref[src];SelectedJob=29'>Shaft Miner</a><br>"
if (IsJobAvailable("Mail Sorter",sorterMax))
dat += "<a href='byond://?src=\ref[src];SelectedJob=31'>Mail Sorter</a> (BETA)<br>"
if (!jobban_isbanned(src,"Assistant"))