mirror of
https://github.com/KabKebab/GS13.git
synced 2026-08-27 07:01:29 +01:00
Login loss prevention v1
This commit is contained in:
@@ -1,4 +1,6 @@
|
||||
/mob/living/carbon/alien/Login()
|
||||
..()
|
||||
. = ..()
|
||||
if(!. || !client)
|
||||
return FALSE
|
||||
AddInfectionImages()
|
||||
return
|
||||
|
||||
@@ -1,5 +1,7 @@
|
||||
/mob/living/carbon/human/Login()
|
||||
..()
|
||||
. = ..()
|
||||
if(!. || !client)
|
||||
return FALSE
|
||||
if(src.martial_art == default_martial_art && mind.stored_martial_art) //If the mind has a martial art stored and the body has the default one.
|
||||
src.mind.stored_martial_art.teach(src) //Running teach so that it deals with help verbs.
|
||||
else if(src.martial_art != default_martial_art && src.martial_art != mind.stored_martial_art) //If the body has a martial art which is not the default one and is not stored in the mind.
|
||||
|
||||
@@ -1,5 +1,7 @@
|
||||
/mob/living/Login()
|
||||
..()
|
||||
. = ..()
|
||||
if(!. || !client)
|
||||
return FALSE
|
||||
//Mind updates
|
||||
sync_mind()
|
||||
mind.show_memory(src, 0)
|
||||
|
||||
@@ -1,5 +1,7 @@
|
||||
/mob/living/silicon/ai/Login()
|
||||
..()
|
||||
. = ..()
|
||||
if(!. || !client)
|
||||
return FALSE
|
||||
if(stat != DEAD)
|
||||
for(var/each in GLOB.ai_status_displays) //change status
|
||||
var/obj/machinery/status_display/ai/O = each
|
||||
|
||||
@@ -7,4 +7,4 @@
|
||||
var/datum/antagonist/bloodsucker/V = mind.has_antag_datum(/datum/antagonist/bloodsucker)
|
||||
if(V)
|
||||
mind.remove_antag_datum(V)
|
||||
..()
|
||||
return ..()
|
||||
|
||||
@@ -163,14 +163,15 @@
|
||||
return TRUE
|
||||
|
||||
/mob/living/silicon/pai/Login()
|
||||
..()
|
||||
. = ..()
|
||||
if(!. || !client)
|
||||
return FALSE
|
||||
usr << browse_rsc('html/paigrid.png') // Go ahead and cache the interface resources as early as possible
|
||||
if(client)
|
||||
client.perspective = EYE_PERSPECTIVE
|
||||
if(holoform)
|
||||
client.eye = src
|
||||
else
|
||||
client.eye = card
|
||||
client.perspective = EYE_PERSPECTIVE
|
||||
if(holoform)
|
||||
client.eye = src
|
||||
else
|
||||
client.eye = card
|
||||
|
||||
/mob/living/silicon/pai/get_status_tab_items()
|
||||
. += ..()
|
||||
|
||||
@@ -1,5 +1,7 @@
|
||||
|
||||
/mob/living/silicon/robot/Login()
|
||||
..()
|
||||
. = ..()
|
||||
if(!. || !client)
|
||||
return FALSE
|
||||
regenerate_icons()
|
||||
show_laws(0)
|
||||
|
||||
@@ -957,6 +957,8 @@ Pass a positive integer as an argument to override a bot's default speed.
|
||||
|
||||
/mob/living/simple_animal/bot/Login()
|
||||
. = ..()
|
||||
if(!. || !client)
|
||||
return FALSE
|
||||
access_card.access += player_access
|
||||
diag_hud_set_botmode()
|
||||
|
||||
|
||||
@@ -64,7 +64,9 @@
|
||||
CR.button.moved = "6:[pos],4:-2"
|
||||
|
||||
/mob/living/simple_animal/hostile/construct/Login()
|
||||
..()
|
||||
. = ..()
|
||||
if(!. || !client)
|
||||
return FALSE
|
||||
to_chat(src, playstyle_string)
|
||||
|
||||
/mob/living/simple_animal/hostile/construct/examine(mob/user)
|
||||
|
||||
@@ -130,7 +130,9 @@
|
||||
return ..()
|
||||
|
||||
/mob/living/simple_animal/drone/Login()
|
||||
..()
|
||||
. = ..()
|
||||
if(!. || !client)
|
||||
return FALSE
|
||||
check_laws()
|
||||
|
||||
if(flavortext)
|
||||
|
||||
@@ -37,7 +37,9 @@
|
||||
hidden_uplink.telecrystals = 10
|
||||
|
||||
/mob/living/simple_animal/drone/syndrone/Login()
|
||||
..()
|
||||
. = ..()
|
||||
if(!. || !client)
|
||||
return FALSE
|
||||
to_chat(src, "<span class='notice'>You can kill and eat other drones to increase your health!</span>" )
|
||||
|
||||
/mob/living/simple_animal/drone/syndrone/badass
|
||||
@@ -149,7 +151,9 @@
|
||||
verbs -= /mob/living/simple_animal/drone/verb/drone_ping
|
||||
|
||||
/mob/living/simple_animal/drone/cogscarab/Login()
|
||||
..()
|
||||
. = ..()
|
||||
if(!. || !client)
|
||||
return FALSE
|
||||
add_servant_of_ratvar(src, TRUE, GLOB.servants_active)
|
||||
to_chat(src,"<b>You yourself are one of these servants, and will be able to utilize almost anything they can[GLOB.ratvar_awakens ? "":", <i>excluding a clockwork slab</i>"].</b>") // this can't go with flavortext because i'm assuming it requires them to be ratvar'd
|
||||
|
||||
|
||||
@@ -70,7 +70,9 @@
|
||||
humanize_spider(ghost)
|
||||
|
||||
/mob/living/simple_animal/hostile/poison/giant_spider/Login()
|
||||
..()
|
||||
. = ..()
|
||||
if(!. || !client)
|
||||
return FALSE
|
||||
if(directive)
|
||||
to_chat(src, "<span class='notice'>Your mother left you a directive! Follow it at all costs.</span>")
|
||||
to_chat(src, "<span class='spider'><b>[directive]</b></span>")
|
||||
@@ -490,6 +492,8 @@
|
||||
|
||||
/mob/living/simple_animal/hostile/poison/giant_spider/Login()
|
||||
. = ..()
|
||||
if(!. || !client)
|
||||
return FALSE
|
||||
GLOB.spidermobs[src] = TRUE
|
||||
|
||||
/mob/living/simple_animal/hostile/poison/giant_spider/Destroy()
|
||||
|
||||
Reference in New Issue
Block a user