April sync (#360)

* Maps and things no code/icons

* helpers defines globalvars

* Onclick world.dm orphaned_procs

* subsystems

Round vote and shuttle autocall done here too

* datums

* Game folder

* Admin - chatter modules

* clothing - mining

* modular computers - zambies

* client

* mob level 1

* mob stage 2 + simple_animal

* silicons n brains

* mob stage 3 + Alien/Monkey

* human mobs

* icons updated

* some sounds

* emitter y u no commit

* update tgstation.dme

* compile fixes

* travis fixes

Also removes Fast digest mode, because reasons.

* tweaks for travis Mentors are broke again

Also fixes Sizeray guns

* oxygen loss fix for vore code.

* removes unused code

* some code updates

* bulk fixes

* further fixes

* outside things

* whoops.

* Maint bar ported

* GLOBs.
This commit is contained in:
Poojawa
2017-04-13 23:37:00 -05:00
committed by GitHub
parent cdc32c98fa
commit 7e9b96a00f
1322 changed files with 174827 additions and 23888 deletions
+30 -20
View File
@@ -1,8 +1,8 @@
/mob/Destroy()//This makes sure that mobs with clients/keys are not just deleted from the game.
mob_list -= src
dead_mob_list -= src
living_mob_list -= src
all_clockwork_mobs -= src
GLOB.mob_list -= src
GLOB.dead_mob_list -= src
GLOB.living_mob_list -= src
GLOB.all_clockwork_mobs -= src
if(observers && observers.len)
for(var/M in observers)
var/mob/dead/observe = M
@@ -19,17 +19,15 @@
..()
return QDEL_HINT_HARDDEL
var/next_mob_id = 0
/mob/Initialize()
tag = "mob_[next_mob_id++]"
mob_list += src
GLOB.mob_list += src
if(stat == DEAD)
dead_mob_list += src
GLOB.dead_mob_list += src
else
living_mob_list += src
GLOB.living_mob_list += src
prepare_huds()
can_ride_typecache = typecacheof(can_ride_typecache)
hook_vr("mob_new",list(src))
..()
/atom/proc/prepare_huds()
@@ -112,7 +110,7 @@ var/next_mob_id = 0
if(self_message)
msg = self_message
else
if(M.see_invisible<invisibility)//if src is invisible to us (and isn't a turf),
if(M.see_invisible<invisibility || (T != loc && T != src))//if src is invisible to us or is inside something (and isn't a turf),
if(blind_message) // then people see blind message if there is one, otherwise nothing.
msg = blind_message
else
@@ -430,9 +428,9 @@ var/next_mob_id = 0
set name = "Respawn"
set category = "OOC"
if (!( abandon_allowed ))
if (!( GLOB.abandon_allowed ))
return
if ((stat != 2 || !( ticker )))
if ((stat != 2 || !( SSticker )))
to_chat(usr, "<span class='boldnotice'>You must be dead to use this!</span>")
return
@@ -581,6 +579,7 @@ var/next_mob_id = 0
stat("Location:", "([x], [y], [z])")
stat("CPU:", "[world.cpu]")
stat("Instances:", "[world.contents.len]")
GLOB.stat_entry()
config.stat_entry()
stat(null)
if(Master)
@@ -595,7 +594,7 @@ var/next_mob_id = 0
stat(null)
for(var/datum/controller/subsystem/SS in Master.subsystems)
SS.stat_entry()
cameranet.stat_entry()
GLOB.cameranet.stat_entry()
if(listed_turf && client)
if(!TurfAdjacent(listed_turf))
@@ -873,7 +872,7 @@ var/next_mob_id = 0
return FALSE
//This will update a mob's name, real_name, mind.name, data_core records, pda, id and traitor text
//This will update a mob's name, real_name, mind.name, GLOB.data_core records, pda, id and traitor text
//Calling this proc without an oldname will only update the mob and skip updating the pda, id and records ~Carn
/mob/proc/fully_replace_character_name(oldname,newname)
if(!newname)
@@ -890,14 +889,14 @@ var/next_mob_id = 0
//update our pda and id if we have them on our person
replace_identification_name(oldname,newname)
for(var/datum/mind/T in ticker.minds)
for(var/datum/mind/T in SSticker.minds)
for(var/datum/objective/obj in T.objectives)
// Only update if this player is a target
if(obj.target && obj.target.current && obj.target.current.real_name == name)
obj.update_explanation_text()
return 1
//Updates data_core records with new name , see mob/living/carbon/human
//Updates GLOB.data_core records with new name , see mob/living/carbon/human
/mob/proc/replace_records_name(oldname,newname)
return
@@ -931,15 +930,24 @@ var/next_mob_id = 0
/mob/proc/update_health_hud()
return
/mob/proc/update_sight()
sync_lighting_plane_alpha()
/mob/proc/sync_lighting_plane_alpha()
if(hud_used)
var/obj/screen/plane_master/lighting/L = hud_used.plane_masters["[LIGHTING_PLANE]"]
if (L)
L.alpha = lighting_alpha
/mob/living/vv_edit_var(var_name, var_value)
switch(var_name)
if("stat")
if((stat == DEAD) && (var_value < DEAD))//Bringing the dead back to life
dead_mob_list -= src
living_mob_list += src
GLOB.dead_mob_list -= src
GLOB.living_mob_list += src
if((stat < DEAD) && (var_value == DEAD))//Kill he
living_mob_list -= src
dead_mob_list += src
GLOB.living_mob_list -= src
GLOB.dead_mob_list += src
. = ..()
switch(var_name)
if("weakened")
@@ -964,6 +972,8 @@ var/next_mob_id = 0
updatehealth()
if("resize")
update_transform()
if("lighting_alpha")
sync_lighting_plane_alpha()
/mob/proc/is_literate()