Fixed some runtimes

Gibber now properly checks for clothes when you attempt to shove people in it.


git-svn-id: http://tgstation13.googlecode.com/svn/trunk@2429 316c924e-a436-60f5-8080-3fe189b3f50e
This commit is contained in:
mport2004@gmail.com
2011-10-26 23:15:34 +00:00
parent 4c268a37ee
commit eba614d78f
9 changed files with 30 additions and 39 deletions
+1 -1
View File
@@ -101,7 +101,7 @@
if(S == src) continue
if((S.frequency == src.frequency) && (S.code == src.code))
spawn(0)
S.pulse(0)
if(S) S.pulse(0)
return 0
@@ -2196,3 +2196,11 @@ It can still be worn/put on as normal.
src.health = 100 - src.oxyloss - src.toxloss - src.fireloss - src.bruteloss - src.cloneloss
/mob/living/carbon/human/abiotic(var/full_body = 0)
if(full_body && ((src.l_hand && !( src.l_hand.abstract )) || (src.r_hand && !( src.r_hand.abstract )) || (src.back || src.wear_mask || src.head || src.shoes || src.w_uniform || src.wear_suit || src.glasses || src.ears || src.gloves)))
return 1
if((src.l_hand && !( src.l_hand.abstract )) || (src.r_hand && !( src.r_hand.abstract )))
return 1
return 0
@@ -18,7 +18,7 @@
else
lawsync()
src << "<b>Laws synced with AI, be sure to note any changes.</b>"
if (mind.special_role == "traitor" && mind.original == src)
if(mind && mind.special_role == "traitor" && mind.original == src)
src << "<b>Remember, your AI does NOT share or know about your law 0."
else
src << "<b>No AI selected to sync laws with, disabling lawsync protocol.</b>"
@@ -26,7 +26,7 @@
who << "<b>Obey these laws:</b>"
laws.show_laws(who)
if ((mind.special_role == "traitor" && mind.original == src) && connected_ai)
if (mind && (mind.special_role == "traitor" && mind.original == src) && connected_ai)
who << "<b>Remember, [connected_ai.name] is technically your master, but your objective comes first.</b>"
else if (connected_ai)
who << "<b>Remember, [connected_ai.name] is your master, other AIs can be ignored.</b>"
+11
View File
@@ -230,3 +230,14 @@ It's fairly easy to fix if dealing with single letters but not so much with comp
if (M.real_name == text("[msg]"))
return 1
return 0
/mob/proc/abiotic(var/full_body = 0)
if(full_body && ((src.l_hand && !( src.l_hand.abstract )) || (src.r_hand && !( src.r_hand.abstract )) || (src.back || src.wear_mask)))
return 1
if((src.l_hand && !( src.l_hand.abstract )) || (src.r_hand && !( src.r_hand.abstract )))
return 1
return 0
+5 -15
View File
@@ -1041,16 +1041,6 @@ datum
build_path = "/obj/item/weapon/gun/energy/lasercannon"
locked = 1
shockgun
name = "Shock Gun"
desc = "Your opponent has just lost THE GAME."
id = "shockgun"
req_tech = list("combat" = 5, "materials" = 4, "powerstorage" = 3)
build_type = PROTOLATHE
materials = list("$metal" = 8000, "$silver" = 3000, "$gold" = 500)
build_path = "/obj/item/weapon/gun/energy/shockgun"
locked = 1
decloner
name = "Decloner"
desc = "Your opponent will bubble into a messy pile of goop."
@@ -1089,14 +1079,14 @@ datum
materials = list("$metal" = 5000, "$glass" = 1000, "$uranium" = 1000, "$silver" = 1000)
build_path = "/obj/item/weapon/gun/energy/largecrossbow"
freeze_gun
name = "Freeze Gun"
desc = "A gun that shoots supercooled hydrogen particles to drastically chill a target's body temperature."
id = "freeze_gun"
temp_gun
name = "Temperature Gun"
desc = "A gun that shoots temperature bullet energythings to change temperature."//Change it if you want
id = "temp_gun"
req_tech = list("combat" = 3, "materials" = 4, "powerstorage" = 3, "magnets" = 2)
build_type = PROTOLATHE
materials = list("$metal" = 5000, "$glass" = 500, "$silver" = 3000)
build_path = "/obj/item/weapon/gun/energy/freeze"
build_path = "/obj/item/weapon/gun/energy/temperature"
locked = 1
large_grenade