-Fixed issue 726, not the best fix but I could find no other solution.

-Added the unused alien resin door. Only aliens can open it, it will also auto-close after 10 seconds.

git-svn-id: http://tgstation13.googlecode.com/svn/trunk@4294 316c924e-a436-60f5-8080-3fe189b3f50e
This commit is contained in:
giacomand@gmail.com
2012-08-02 21:42:43 +00:00
parent dca350d120
commit c97004bef2
3 changed files with 15 additions and 1 deletions
+3
View File
@@ -238,6 +238,9 @@
if(ear in view(R.canhear_range,radio_loc))
hearers += M
break
else if(ear in range(0, radio_loc))
hearers += M
break
return hearers
+9
View File
@@ -285,6 +285,11 @@
/obj/structure/mineral_door/resin
mineralType = "resin"
hardness = 5
var/close_delay = 100
TryToSwitchState(atom/user)
if(isalien(user))
return ..()
Open()
isSwitchingStates = 1
@@ -297,6 +302,10 @@
update_icon()
isSwitchingStates = 0
spawn(close_delay)
if(!isSwitchingStates && state == 1)
Close()
Close()
isSwitchingStates = 1
playsound(loc, 'attackblob.ogg', 100, 1)
@@ -146,13 +146,15 @@ I kind of like the right click only--the window version can get a little confusi
set category = "Alien"
if(powerc(100))
var/choice = input("Choose what you wish to shape.","Resin building") as null|anything in list("resin wall","resin membrane","resin nest") //would do it through typesof but then the player choice would have the type path and we don't want the internal workings to be exposed ICly - Urist
var/choice = input("Choose what you wish to shape.","Resin building") as null|anything in list("resin door","resin wall","resin membrane","resin nest") //would do it through typesof but then the player choice would have the type path and we don't want the internal workings to be exposed ICly - Urist
if(!choice || !powerc(100)) return
adjustToxLoss(-100)
src << "\green You shape a [choice]."
for(var/mob/O in viewers(src, null))
O.show_message(text("\red <B>[src] vomits up a thick purple substance and begins to shape it!</B>"), 1)
switch(choice)
if("resin door")
new /obj/structure/mineral_door/resin(loc)
if("resin wall")
new /obj/effect/alien/resin/wall(loc)
if("resin membrane")