Merge pull request #903 from Erthilo/master

Adds fingerless gloves, new sprites for filing cabinet, pressure, and gun toggle, fixes blood level not decreasing from syringes
This commit is contained in:
SkyMarshal
2012-04-21 20:47:04 -07:00
16 changed files with 33 additions and 175 deletions
+9 -1
View File
@@ -972,13 +972,17 @@
if(istype(target, /mob/living/carbon))//maybe just add a blood reagent to all mobs. Then you can suck them dry...With hundreds of syringes. Jolly good idea.
var/amount = src.reagents.maximum_volume - src.reagents.total_volume
var/mob/living/carbon/T = target
var/datum/reagent/B = new /datum/reagent/blood
if(!T.dna)
usr << "You are unable to locate any blood. (To be specific, your target seems to be missing their DNA datum)"
return
if(T.mutations2 & NOCLONE) //target done been et, no more blood in him
user << "\red You are unable to locate any blood."
return
if(ishuman(T))
if(T:vessel.get_reagent_amount("blood") < amount)
return
var/datum/reagent/B = new /datum/reagent/blood
B.holder = src
B.volume = amount
//set reagent data
@@ -1016,11 +1020,15 @@
//for(var/D in B.data)
// world << "Data [D] = [B.data[D]]"
//debug
if(ishuman(T))
T:vessel.remove_reagent("blood",amount) // Removes blood if human
src.reagents.reagent_list += B
src.reagents.update_total()
src.on_reagent_change()
src.reagents.handle_reactions()
// T:vessel.trans_to(src, amount) // Virus2 and antibodies aren't in blood in the first place.
user << "\blue You take a blood sample from [target]"
for(var/mob/O in viewers(4, user))
O.show_message("\red [user] takes a blood sample from [target].", 1)
+16 -1
View File
@@ -242,4 +242,19 @@
color="brown"
cargo
color = "cargo" //Exists for washing machines. Is not different from brown gloves in any way.
color = "cargo" //Exists for washing machines. Is not different from brown gloves in any way.
//Fingerless gloves
/obj/item/clothing/gloves/fingerless
name = "fingerless gloves"
desc = "A pair of gloves. They don't seem to have fingers."
icon_state = "fingerless_black"
item_state = "fingerless_black"
/obj/item/clothing/gloves/fingerless/black
name = "black fingerless gloves"
desc = "A pair of black gloves. They don't seem to have fingers."
icon_state = "fingerless_black"
item_state = "fingerless_black"
color="black"