mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-11 18:53:06 +00:00
Fixed a bunch of the runtime errors cropping up in the server logs.
git-svn-id: http://tgstation13.googlecode.com/svn/trunk@175 316c924e-a436-60f5-8080-3fe189b3f50e
This commit is contained in:
@@ -569,6 +569,7 @@ datum
|
||||
if(istype(O,/obj/decal/cleanable))
|
||||
del(O)
|
||||
else
|
||||
if (O)
|
||||
O.clean_blood()
|
||||
reaction_turf(var/turf/T, var/volume)
|
||||
T.overlays = null
|
||||
|
||||
@@ -250,6 +250,7 @@
|
||||
O.show_message(text("\red [] was hit by the syringe!", M), 1)
|
||||
|
||||
del(D)
|
||||
return
|
||||
|
||||
for(var/atom/A in D.loc)
|
||||
if(A == user) continue
|
||||
|
||||
@@ -442,7 +442,7 @@
|
||||
relaymove(mob/user as mob)
|
||||
if (user.stat)
|
||||
return
|
||||
|
||||
if (src.loc)
|
||||
for (var/mob/M in hearers(src.loc.loc))
|
||||
M << "<FONT size=[max(0, 5 - get_dist(src, M))]>CLONG, clong!</FONT>"
|
||||
|
||||
|
||||
@@ -867,13 +867,14 @@
|
||||
var/newblock
|
||||
var/tstructure2
|
||||
var/oldblock
|
||||
if (src.connected.occupant)
|
||||
block = getblock(getblock(src.connected.occupant.dna.struc_enzymes,src.strucblock,3),src.subblock,1)
|
||||
src.delete = 1
|
||||
src.temphtml = text("Working ... Please wait ([] Seconds)", src.radduration)
|
||||
usr << browse(temphtml, "window=scannernew;size=550x650")
|
||||
onclose(usr, "scannernew")
|
||||
sleep(10*src.radduration)
|
||||
if (!src.connected.occupant)
|
||||
else
|
||||
temphtml = null
|
||||
delete = 0
|
||||
return null
|
||||
|
||||
@@ -13,6 +13,7 @@
|
||||
pressure_resistance = 7*ONE_ATMOSPHERE
|
||||
var/temperature_resistance = 1000 + T0C
|
||||
volume = 1000
|
||||
var/throwforce = 0
|
||||
|
||||
/obj/machinery/portable_atmospherics/canister/sleeping_agent
|
||||
name = "Canister: \[N2O\]"
|
||||
|
||||
@@ -44,6 +44,7 @@
|
||||
else if (O.g_amt || O.m_amt)
|
||||
spawn(16) {
|
||||
flick("autolathe_c",src)
|
||||
if(O)
|
||||
if(O.g_amt) // Added null checks to avoid runtime errors when an item doesn't have an expected variable -- TLE
|
||||
src.g_amount += O.g_amt
|
||||
if(O.m_amt)
|
||||
|
||||
@@ -8,6 +8,7 @@
|
||||
var/datum/ai_laws/laws = new /datum/ai_laws/asimov
|
||||
var/obj/item/weapon/circuitboard/circuit = null
|
||||
var/obj/item/brain/brain = null
|
||||
var/throwforce = 0
|
||||
|
||||
|
||||
/obj/AIcore/attackby(obj/item/weapon/P as obj, mob/user as mob)
|
||||
@@ -83,6 +84,7 @@
|
||||
if(P:amount >= 2)
|
||||
playsound(src.loc, 'Deconstruct.ogg', 50, 1)
|
||||
if(do_after(user, 20))
|
||||
if (P)
|
||||
P:amount -= 2
|
||||
if(!P:amount) del(P)
|
||||
user << "\blue You put in the glass panel."
|
||||
|
||||
@@ -169,6 +169,7 @@
|
||||
if(P:amount >= 2)
|
||||
playsound(src.loc, 'Deconstruct.ogg', 50, 1)
|
||||
if(do_after(user, 20))
|
||||
if(P)
|
||||
P:amount -= 2
|
||||
if(!P:amount) del(P)
|
||||
user << "\blue You put in the glass panel."
|
||||
|
||||
@@ -162,6 +162,7 @@
|
||||
if(R)
|
||||
var/choice = input("Are you certain you wish to detonate [R.name]?") in list("Confirm", "Abort")
|
||||
if(choice == "Confirm")
|
||||
if(R)
|
||||
R.self_destruct()
|
||||
|
||||
src.add_fingerprint(usr)
|
||||
|
||||
@@ -13,6 +13,7 @@
|
||||
if (src.metal_amount < 150000.0)
|
||||
var/count = 0
|
||||
spawn(15)
|
||||
if(O)
|
||||
if(!O:amount)
|
||||
return
|
||||
while(metal_amount < 150000 && O:amount)
|
||||
|
||||
@@ -660,7 +660,7 @@ datum/borrowbook // Datum used to keep track of who has borrowed what when and f
|
||||
var/obj/item/weapon/book/b = new(src.loc)
|
||||
b.dat = O:info
|
||||
b.name = "Print Job #" + "[rand(100, 999)]"
|
||||
b.icon_state = "book" + rand(1,7)
|
||||
b.icon_state = "book[rand(1,7)]"
|
||||
del(O)
|
||||
else
|
||||
..()
|
||||
@@ -219,6 +219,7 @@
|
||||
return safe.attackby(W, user)
|
||||
if ((!( shielded ) || !( W.flags ) & 32))
|
||||
spawn( 0 )
|
||||
if (W)
|
||||
W.attack(src, user)
|
||||
return
|
||||
return
|
||||
|
||||
@@ -128,8 +128,9 @@
|
||||
O.invisibility = 0
|
||||
O.name = "Cyborg"
|
||||
O.real_name = "Cyborg"
|
||||
O.lastKnownIP = src.brain.owner.client.address
|
||||
|
||||
if (src.brain.owner.client)
|
||||
O.lastKnownIP = src.brain.owner.client.address
|
||||
src.brain.owner.client.mob = O
|
||||
else
|
||||
for(var/mob/dead/observer/G in world)
|
||||
|
||||
@@ -130,6 +130,7 @@
|
||||
user.show_message("\blue The timer is now secured!", 1)
|
||||
else
|
||||
user.show_message("\blue The timer is now unsecured!", 1)
|
||||
if (src.part2)
|
||||
src.part2.status = src.status
|
||||
src.add_fingerprint(user)
|
||||
return
|
||||
|
||||
@@ -605,6 +605,7 @@ turf/simulated/floor/proc/update_icon()
|
||||
if (C:amount >= 2)
|
||||
user << "\blue Reinforcing the floor..."
|
||||
if(do_after(user, 30))
|
||||
if (C)
|
||||
ReplaceWithEngineFloor()
|
||||
C:amount -= 2
|
||||
if (C:amount <= 0) del(C) //wtf
|
||||
|
||||
@@ -168,9 +168,10 @@
|
||||
break
|
||||
if(clear)
|
||||
L+=T
|
||||
|
||||
if (L.len)
|
||||
usr.loc = pick(L)
|
||||
|
||||
else
|
||||
usr << "Teleporting to that area doesn't seem to be working currently. But at least now it tells you that."
|
||||
|
||||
var/list/karma_spenders = list()
|
||||
|
||||
|
||||
@@ -1004,6 +1004,7 @@
|
||||
if (istype(src.wear_suit, /obj/item/clothing/suit))
|
||||
var/t1 = src.wear_suit.icon_state
|
||||
src.overlays += image("icon" = 'suit.dmi', "icon_state" = text("[][]", t1, (!( src.lying ) ? null : "2")), "layer" = MOB_LAYER)
|
||||
if (src.wear_suit)
|
||||
if (src.wear_suit.blood_DNA)
|
||||
var/icon/stain_icon = null
|
||||
if (istype(src.wear_suit, /obj/item/clothing/suit/armor/vest || /obj/item/clothing/suit/wcoat || /obj/item/clothing/suit/armor/a_i_a_ptank))
|
||||
|
||||
@@ -4,6 +4,7 @@
|
||||
spawn( 0 )
|
||||
O.mode = 0
|
||||
if(!isturf(src.loc))
|
||||
if (src.client)
|
||||
src.client.eye = src.loc
|
||||
src.client.perspective = EYE_PERSPECTIVE
|
||||
if (src.stat == 2)
|
||||
|
||||
@@ -1403,6 +1403,7 @@
|
||||
M << "\red Admin PM from-<b>[key_name(usr, M, 0)]</b>: [t]"
|
||||
usr << "\blue Admin PM to-<b>[key_name(M, usr, 1)]</b>: [t]"
|
||||
else
|
||||
if (M)
|
||||
if (M.client && M.client.holder)
|
||||
M << "\blue Reply PM from-<b>[key_name(usr, M, 1)]</b>: [t]"
|
||||
else
|
||||
@@ -1868,6 +1869,7 @@
|
||||
|
||||
newmob = new/mob/dead/observer(src)
|
||||
src:client:mob = newmob
|
||||
if (src.mind)
|
||||
src.mind.transfer_to(newmob)
|
||||
|
||||
var/virus = src.virus
|
||||
|
||||
@@ -11,6 +11,7 @@
|
||||
|
||||
/obj/machinery/power/solar/attackby(obj/item/weapon/W, mob/user)
|
||||
..()
|
||||
if (W)
|
||||
src.add_fingerprint(user)
|
||||
src.health -= W.force
|
||||
src.healthcheck()
|
||||
|
||||
Reference in New Issue
Block a user