Merge branch 'master' of git://github.com/Baystation12/Baystation12

This commit is contained in:
unknown
2012-06-30 13:43:08 +03:00
47 changed files with 9199 additions and 8772 deletions
+1 -1
View File
@@ -192,7 +192,7 @@
return 0
var/mob/M = loc
if(!M.canmove)
if(!M.canmove && (!M.buckled && M.handcuffed))
return 0
if((src in M.contents) || ( istype(loc, /turf) && in_range(src, M) ) )
+2 -2
View File
@@ -114,14 +114,14 @@ MASS SPECTROMETER
else if (M.getBrainLoss() >= 10)
user.show_message(text("\red Significant brain damage detected. Subject may have had a concussion."), 1)
if (M.virus2 || M.reagents.reagent_list.len > 0)
user.show_message(text("\red Unknown substance detected in blood."), 1)
user.show_message(text("\red Foreign substances detected in bloodstream."), 1)
if(ishuman(M))
var/mob/living/carbon/human/H = M
for(var/name in H.organs)
var/datum/organ/external/e = H.organs[name]
var/limb = e.getDisplayName()
if(e.status & BROKEN)
if(((e.name == "l_arm") || (e.name == "r_arm") || (e.name == "l_leg") || (e.name == "r_leg")) && (!e.status & SPLINTED))
if(((e.name == "l_arm") || (e.name == "r_arm") || (e.name == "l_leg") || (e.name == "r_leg")) && (!(e.status & SPLINTED)))
user << "\red Unsecured fracture in subject [limb]. Splinting recommended for transport."
for(var/name in H.organs)
var/datum/organ/external/e = H.organs[name]
@@ -23,6 +23,9 @@
if (recording)
var/ending = copytext(msg, length(msg))
src.timestamp+= src.timerecorded
if (issilicon(M))
src.storedinfo += "\[[time2text(src.timerecorded*10,"hh:mm:ss")]\] [M.name] states, \"[msg]\""
return
if (M.stuttering)
src.storedinfo += "\[[time2text(src.timerecorded*10,"hh:mm:ss")]\] [M.name] stammers, \"[msg]\""
return
+1 -1
View File
@@ -139,7 +139,7 @@
var/direction = get_dir(src,target)
if(usr.buckled && isobj(usr.buckled) && !usr.buckled.anchored )
if(usr.buckled && istype(usr.buckled, /obj/structure/stool/bed/chair/office) && !usr.buckled.anchored ) //Making only office chairs fire-extinguishable. Because NO FUN ALLOWED
spawn(0)
var/obj/B = usr.buckled
var/movementdirection = turn(direction,180)
+20 -19
View File
@@ -7,10 +7,10 @@ MEDICAL
/obj/item/stack/medical/attack(mob/living/carbon/M as mob, mob/user as mob)
var/heal_cap = 0
var/heal_cap = 50
if(istype(src, /obj/item/stack/medical/advanced))
heal_cap = -50
heal_cap = 0
if (M.stat == 2)
var/t_him = "it"
@@ -51,7 +51,7 @@ MEDICAL
if(!((affecting.name == "l_arm") || (affecting.name == "r_arm") || (affecting.name == "l_leg") || (affecting.name == "r_leg")))
user << "\red You can't apply a splint there!"
return
if(!affecting.status & BROKEN)
if(!(affecting.status & BROKEN))
user << "\red [M]'s [limb] isn't broken!"
return
if(affecting.status & SPLINTED)
@@ -87,25 +87,26 @@ MEDICAL
user << "\red \The [M] is wounded badly, this item cannot help [t_him]!"
return
if (user)
if (M != user)
user.visible_message("\red \The [H]'s [affecting.display_name] has been bandaged with \a [src] by \the [user].",\
"\red You bandage \the [H]'s [affecting.display_name] with \the [src].",\
"You hear gauze being ripped.")
else
var/t_his = "its"
if (user.gender == MALE)
t_his = "his"
else if (user.gender == FEMALE)
t_his = "her"
user.visible_message("\red \The [user] bandages [t_his] [affecting.display_name] with \a [src].",\
"\red You bandage your [affecting.display_name] with \the [src].",\
"You hear gauze being ripped.")
use(1)
if (affecting.heal_damage(src.heal_brute, src.heal_burn))
H.UpdateDamageIcon()
if (user)
if (M != user)
user.visible_message("\red \The [H]'s [affecting.display_name] has been bandaged with \a [src] by \the [user].",\
"\red You bandage \the [H]'s [affecting.display_name] with \the [src].",\
"You hear gauze being ripped.")
else
var/t_his = "its"
if (user.gender == MALE)
t_his = "his"
else if (user.gender == FEMALE)
t_his = "her"
user.visible_message("\red \The [user] bandages [t_his] [affecting.display_name] with \a [src].",\
"\red You bandage your [affecting.display_name] with \the [src].",\
"You hear gauze being ripped.")
use(1)
else
user << "Nothing to patch up!"
H.UpdateDamage()
M.updatehealth()
else
+2 -2
View File
@@ -60,7 +60,7 @@
..()
return
if(user.a_intent != "help")
if(user.a_intent == "hurt")
if(!..()) return
H.apply_effect(5, WEAKEN, 0)
H.visible_message("<span class='danger'>[M] has been beaten with the [src] by [user]!</span>")
@@ -77,7 +77,7 @@
H.lastattacker = user
charges--
H.visible_message("<span class='danger'>[M] has been stunned with the [src] by [user]!</span>")
playsound(src.loc, "sparks", 75, 1, -1)
playsound(src.loc, 'Egloves.ogg', 50, 1, -1)
if(charges < 1)
status = 0
update_icon()
@@ -1242,7 +1242,7 @@ CIRCULAR SAW
if(istype(M, /mob/living/carbon/human))
var/datum/organ/external/affecting = M:get_organ("head")
affecting.take_damage(7)
affecting.status |= OPEN
affecting.open = 1
else
M.take_organ_damage(7)
@@ -1454,7 +1454,8 @@ CIRCULAR SAW
user << "\red You mess up!"
S.take_damage(15)
S.status |= OPEN|BLEEDING
S.status |= BLEEDING
S.open = 1
if(S.display_name == "chest")
H:embryo_op_stage = 1.0
if(S.display_name == "groin")