mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-11 10:43:20 +00:00
-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:
@@ -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
|
||||
|
||||
|
||||
4
code/modules/mob/living/carbon/alien/login.dm
Normal file
4
code/modules/mob/living/carbon/alien/login.dm
Normal file
@@ -0,0 +1,4 @@
|
||||
/mob/living/carbon/alien/humanoid/Login()
|
||||
..()
|
||||
AddInfectionImages()
|
||||
return
|
||||
4
code/modules/mob/living/carbon/alien/logout.dm
Normal file
4
code/modules/mob/living/carbon/alien/logout.dm
Normal file
@@ -0,0 +1,4 @@
|
||||
/mob/living/carbon/alien/humanoid/Logout()
|
||||
..()
|
||||
RemoveInfectionImages()
|
||||
return
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user