Merge remote-tracking branch 'upstream/master' into dev-freeze

Conflicts:
	code/modules/mob/living/carbon/human/life.dm
This commit is contained in:
PsiOmegaDelta
2015-07-28 07:59:49 +02:00
9 changed files with 20 additions and 38 deletions

View File

@@ -1097,7 +1097,7 @@ proc/admin_notice(var/message, var/rights)
else else
new chosen(usr.loc) new chosen(usr.loc)
log_admin("[key_name(usr)] spawned [chosen] at ([usr.x],[usr.y],[usr.z])") log_and_message_admins("spawned [chosen] at ([usr.x],[usr.y],[usr.z])")
feedback_add_details("admin_verb","SA") //If you are copy-pasting this, ensure the 2nd parameter is unique to the new proc! feedback_add_details("admin_verb","SA") //If you are copy-pasting this, ensure the 2nd parameter is unique to the new proc!

View File

@@ -358,7 +358,7 @@
dat += "<td>NA</td>" dat += "<td>NA</td>"
dat += {"<td>[(M.client ? "[M.client]" : "No client")]</td> dat += {"<td>[M.key ? (M.client ? M.key : "[M.key] (DC)") : "No key"]</td>
<td align=center><A HREF='?src=\ref[src];adminplayeropts=\ref[M]'>X</A></td> <td align=center><A HREF='?src=\ref[src];adminplayeropts=\ref[M]'>X</A></td>
<td align=center><A href='?src=\ref[usr];priv_msg=\ref[M]'>PM</A></td> <td align=center><A href='?src=\ref[usr];priv_msg=\ref[M]'>PM</A></td>
"} "}

View File

@@ -1651,18 +1651,7 @@
var/mob/M = O var/mob/M = O
M.real_name = obj_name M.real_name = obj_name
if (number == 1) log_and_message_admins("created [number] [english_list(paths)]")
log_admin("[key_name(usr)] created a [english_list(paths)]")
for(var/path in paths)
if(ispath(path, /mob))
message_admins("[key_name_admin(usr)] created a [english_list(paths)]", 1)
break
else
log_admin("[key_name(usr)] created [number]ea [english_list(paths)]")
for(var/path in paths)
if(ispath(path, /mob))
message_admins("[key_name_admin(usr)] created [number]ea [english_list(paths)]", 1)
break
return return
else if(href_list["secretsfun"]) else if(href_list["secretsfun"])

View File

@@ -1205,7 +1205,7 @@
damageoverlay.overlays += I damageoverlay.overlays += I
if( stat == DEAD ) if( stat == DEAD )
sight |= (SEE_TURFS|SEE_MOBS|SEE_OBJS) sight = SEE_TURFS|SEE_MOBS|SEE_OBJS|SEE_SELF
see_in_dark = 8 see_in_dark = 8
if(!druggy) see_invisible = SEE_INVISIBLE_LEVEL_TWO if(!druggy) see_invisible = SEE_INVISIBLE_LEVEL_TWO
if(healths) healths.icon_state = "health7" //DEAD healthmeter if(healths) healths.icon_state = "health7" //DEAD healthmeter
@@ -1228,7 +1228,7 @@
*/ */
else else
sight &= ~(SEE_TURFS|SEE_MOBS|SEE_OBJS) sight = species.vision_flags
see_in_dark = species.darksight see_in_dark = species.darksight
see_invisible = see_in_dark>2 ? SEE_INVISIBLE_LEVEL_ONE : SEE_INVISIBLE_LIVING see_invisible = see_in_dark>2 ? SEE_INVISIBLE_LEVEL_ONE : SEE_INVISIBLE_LIVING
@@ -1237,29 +1237,23 @@
see_in_dark = 8 see_in_dark = 8
if(!druggy) see_invisible = SEE_INVISIBLE_LEVEL_TWO if(!druggy) see_invisible = SEE_INVISIBLE_LEVEL_TWO
if(seer==1) if(seer)
var/obj/effect/rune/R = locate() in loc var/obj/effect/rune/R = locate() in loc
if(R && R.word1 == cultwords["see"] && R.word2 == cultwords["hell"] && R.word3 == cultwords["join"]) if(R && R.word1 == cultwords["see"] && R.word2 == cultwords["hell"] && R.word3 == cultwords["join"])
see_invisible = SEE_INVISIBLE_CULT see_invisible = SEE_INVISIBLE_CULT
else else
see_invisible = SEE_INVISIBLE_LIVING
seer = 0 seer = 0
var/tmp/glasses_processed = 0 var/equipped_glasses = glasses
var/obj/item/weapon/rig/rig = back var/obj/item/weapon/rig/rig = back
if(istype(rig) && rig.visor) if(istype(rig) && rig.visor)
if(!rig.helmet || (head && rig.helmet == head)) if(!rig.helmet || (head && rig.helmet == head))
if(rig.visor && rig.visor.vision && rig.visor.active && rig.visor.vision.glasses) if(rig.visor && rig.visor.vision && rig.visor.active && rig.visor.vision.glasses)
glasses_processed = 1 equipped_glasses = rig.visor.vision.glasses
process_glasses(rig.visor.vision.glasses) if(equipped_glasses)
process_glasses(equipped_glasses)
if(glasses && !glasses_processed) if(!seer)
glasses_processed = 1
process_glasses(glasses)
if(!glasses_processed && (species.vision_flags > 0))
sight |= species.vision_flags
if(!seer && !glasses_processed)
see_invisible = SEE_INVISIBLE_LIVING see_invisible = SEE_INVISIBLE_LIVING
if(healths) if(healths)
@@ -1383,7 +1377,7 @@
if(viewflags < 0) if(viewflags < 0)
reset_view(null, 0) reset_view(null, 0)
else if(viewflags) else if(viewflags)
sight |= viewflags sight = viewflags //when viewing from a machine, use only the sight flags that the machine provides
else if(eyeobj) else if(eyeobj)
if(eyeobj.owner != src) if(eyeobj.owner != src)

View File

@@ -46,7 +46,7 @@
var/list/unarmed_attacks = null // For empty hand harm-intent attack var/list/unarmed_attacks = null // For empty hand harm-intent attack
var/brute_mod = 1 // Physical damage multiplier. var/brute_mod = 1 // Physical damage multiplier.
var/burn_mod = 1 // Burn damage multiplier. var/burn_mod = 1 // Burn damage multiplier.
var/vision_flags = 0 // Same flags as glasses. var/vision_flags = SEE_SELF // Same flags as glasses.
// Death vars. // Death vars.
var/meat_type = /obj/item/weapon/reagent_containers/food/snacks/meat/human var/meat_type = /obj/item/weapon/reagent_containers/food/snacks/meat/human

View File

@@ -42,7 +42,7 @@
breath_type = null breath_type = null
poison_type = null poison_type = null
vision_flags = SEE_MOBS vision_flags = SEE_SELF|SEE_MOBS
has_organ = list( has_organ = list(
"heart" = /obj/item/organ/heart, "heart" = /obj/item/organ/heart,

View File

@@ -405,8 +405,7 @@ var/list/ai_verbs_default = list(
/mob/living/silicon/ai/check_eye(var/mob/user as mob) /mob/living/silicon/ai/check_eye(var/mob/user as mob)
if (!camera) if (!camera)
return null return -1
user.reset_view(camera)
return 0 return 0
/mob/living/silicon/ai/restrained() /mob/living/silicon/ai/restrained()

View File

@@ -119,7 +119,6 @@
/mob/living/silicon/pai/check_eye(var/mob/user as mob) /mob/living/silicon/pai/check_eye(var/mob/user as mob)
if (!src.current) if (!src.current)
return -1 return -1
user.reset_view(src.current)
return 0 return 0
/mob/living/silicon/pai/blob_act() /mob/living/silicon/pai/blob_act()

View File

@@ -53,11 +53,10 @@
/obj/machinery/computer/helm/check_eye(var/mob/user as mob) /obj/machinery/computer/helm/check_eye(var/mob/user as mob)
if (!manual_control) if (!manual_control)
return null return -1
if (!get_dist(user, src) > 1 || user.blinded || !linked ) if (!get_dist(user, src) > 1 || user.blinded || !linked )
return null return -1
user.reset_view(linked) return 0
return 1
/obj/machinery/computer/helm/attack_hand(var/mob/user as mob) /obj/machinery/computer/helm/attack_hand(var/mob/user as mob)
if(..()) if(..())
@@ -67,6 +66,8 @@
if(!isAI(user)) if(!isAI(user))
user.set_machine(src) user.set_machine(src)
if(linked)
user.reset_view(linked)
ui_interact(user) ui_interact(user)