-Added Zelack's alien infection code. Aliens can now tell if someone is impregnated or not.

-Fixed a bug where a Cyborg could drop their module by clicking it on an operating table.

git-svn-id: http://tgstation13.googlecode.com/svn/trunk@4561 316c924e-a436-60f5-8080-3fe189b3f50e
This commit is contained in:
giacomand@gmail.com
2012-08-27 09:32:09 +00:00
parent a1695cb5ff
commit 2066f54e36
7 changed files with 99 additions and 2 deletions

View File

@@ -50,4 +50,30 @@
else
// add some movement delay
move_delay_add = min(move_delay_add + round(amount / 2), 10) // a maximum delay of 10
return
return
/*----------------------------------------
Proc: AddInfectionImages()
Des: Gives the client of the alien an image on each infected mob.
----------------------------------------*/
/mob/living/carbon/alien/proc/AddInfectionImages()
if (client)
for (var/mob/living/carbon/C in world)
if(C.status_flags & XENO_HOST)
var/I = image('icons/mob/alien.dmi', loc = C, icon_state = "infected")
client.images += I
return
/*----------------------------------------
Proc: RemoveInfectionImages()
Des: Removes all infected images from the alien.
----------------------------------------*/
/mob/living/carbon/alien/proc/RemoveInfectionImages()
if (client)
for(var/image/I in client.images)
if(I.icon_state == "infected")
del(I)
return

View File

@@ -0,0 +1,4 @@
/mob/living/carbon/alien/humanoid/Login()
..()
AddInfectionImages()
return

View File

@@ -0,0 +1,4 @@
/mob/living/carbon/alien/humanoid/Logout()
..()
RemoveInfectionImages()
return

View File

@@ -14,6 +14,9 @@
/mob/living/silicon/proc/show_laws()
return
/mob/living/silicon/drop_item()
return
/mob/living/silicon/emp_act(severity)
switch(severity)
if(1)