Aliens can now shape membranes.

AIs now see runes as blood.

git-svn-id: http://tgstation13.googlecode.com/svn/trunk@2305 316c924e-a436-60f5-8080-3fe189b3f50e
This commit is contained in:
uporotiy
2011-10-01 16:36:23 +00:00
parent 995fb5f788
commit a71691759c
8 changed files with 55 additions and 18 deletions
+13 -1
View File
@@ -31,7 +31,19 @@
opacity = 1
anchored = 1
var/health = 50
var/mob/living/affecting = null
//var/mob/living/affecting = null
wall
name = "resin wall"
desc = "Purple slime solidified into a wall."
icon_state = "resinwall" //same as resin, but consistency ho!
membrane
name = "resin membrane"
desc = "Purple slime just thin enough to let light pass through."
icon_state = "resinmembrane"
opacity = 0
health = 20
/obj/alien/weeds
name = "weeds"
+13 -13
View File
@@ -3,7 +3,7 @@
/obj/alien/resin/proc/healthcheck()
if(health <=0)
density = 0
if(affecting)
/* if(affecting)
var/mob/living/carbon/M = affecting
contents.Remove(affecting)
if(ishuman(M))
@@ -13,7 +13,7 @@
M.loc = loc
M.paralysis += 10
for(var/mob/O in viewers(src, 3))
O.show_message(text("A body appeared from the dead resin!"), 1, text("You hear faint moaning somewhere about you."), 2)
O.show_message(text("A body appeared from the dead resin!"), 1, text("You hear faint moaning somewhere about you."), 2)*/
del(src)
return
@@ -64,10 +64,10 @@
/obj/alien/resin/attack_hand()
if ((usr.mutations & HULK))
usr << text("\blue You easily destroy the resin wall.")
usr << text("\blue You easily destroy the [name].")
for(var/mob/O in oviewers(src))
O.show_message(text("\red [] destroys the resin wall!", usr), 1)
health-=50
O.show_message(text("\red [] destroys the [name]!", usr), 1)
health = 0
healthcheck()
return
@@ -77,20 +77,20 @@
/obj/alien/resin/attack_alien()
if (islarva(usr))//Safety check for larva. /N
return
usr << text("\green You claw at the resin wall.")
usr << text("\green You claw at the [name].")
for(var/mob/O in oviewers(src))
O.show_message(text("\red [] claws at the resin!", usr), 1)
playsound(loc, 'attackblob.ogg', 100, 1)
health -= rand(10, 20)
if(health <= 0)
usr << text("\green You slice the resin wall to pieces.")
usr << text("\green You slice the [name] to pieces.")
for(var/mob/O in oviewers(src))
O.show_message(text("\red [] slices the resin wall apart!", usr), 1)
O.show_message(text("\red [] slices the [name] apart!", usr), 1)
healthcheck()
return
/obj/alien/resin/attackby(obj/item/weapon/W as obj, mob/user as mob)
if (istype(W, /obj/item/weapon/grab) && get_dist(src,user)<2)
/*if (istype(W, /obj/item/weapon/grab) && get_dist(src,user)<2)
var/obj/item/weapon/grab/G = W
if(isalien(user)&&(ishuman(G.affecting)||ismonkey(G.affecting)))
//Only aliens can stick humans and monkeys into resin walls. Also, the wall must not have a person inside already.
@@ -109,7 +109,7 @@
process()
else
user << "\red This wall is already occupied."
return
return */
var/aforce = W.force
health = max(0, health - aforce)
@@ -118,8 +118,8 @@
..()
return
/obj/alien/resin/process()
if(affecting)
/obj/alien/resin/process() //Buggy and irrelevant now that you're able to just make nice little infection chambers - Urist
/*if(affecting)
var/mob/living/carbon/M = affecting
var/check = 0
if(ishuman(affecting))//So they do not suicide and kill the babby.
@@ -156,7 +156,7 @@
O.show_message(text("A body appeared from the dead resin!"), 1, text("You hear faint moaning somewhere about you."), 2)
else
for(var/mob/O in viewers(src, 3))
O.show_message(text("\red An alien larva bursts from the resin wall!"), 1, text("\red You hear a high, alien screech nearby!"), 2)
O.show_message(text("\red An alien larva bursts from the resin wall!"), 1, text("\red You hear a high, alien screech nearby!"), 2)*/
return
/obj/alien/resin/CanPass(atom/movable/mover, turf/target, height=0, air_group=0)