mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-12 19:22:56 +00:00
More runtime errors
git-svn-id: http://tgstation13.googlecode.com/svn/trunk@1156 316c924e-a436-60f5-8080-3fe189b3f50e
This commit is contained in:
@@ -58,6 +58,7 @@ datum
|
|||||||
return the_id
|
return the_id
|
||||||
|
|
||||||
trans_to(var/obj/target, var/amount=1, var/multiplier=1, var/preserve_data=1)//if preserve_data=0, the reagents data will be lost. Usefull if you use data for some strange stuff and don't want it to be transferred.
|
trans_to(var/obj/target, var/amount=1, var/multiplier=1, var/preserve_data=1)//if preserve_data=0, the reagents data will be lost. Usefull if you use data for some strange stuff and don't want it to be transferred.
|
||||||
|
if (!target) return
|
||||||
var/total_transfered = 0
|
var/total_transfered = 0
|
||||||
var/current_list_element = 1
|
var/current_list_element = 1
|
||||||
var/datum/reagents/R = target.reagents
|
var/datum/reagents/R = target.reagents
|
||||||
|
|||||||
@@ -625,6 +625,9 @@ var/showadminmessages = 1
|
|||||||
|
|
||||||
if (href_list["adminplayeropts"])
|
if (href_list["adminplayeropts"])
|
||||||
var/mob/M = locate(href_list["adminplayeropts"])
|
var/mob/M = locate(href_list["adminplayeropts"])
|
||||||
|
if(!M)
|
||||||
|
usr << "You seem to be selecting a mob that doesn't exist."
|
||||||
|
return
|
||||||
var/dat = "<html><head><title>Options for [M.key]</title></head>"
|
var/dat = "<html><head><title>Options for [M.key]</title></head>"
|
||||||
var/foo = "\[ "
|
var/foo = "\[ "
|
||||||
if (ismob(M) && M.client)
|
if (ismob(M) && M.client)
|
||||||
|
|||||||
@@ -900,6 +900,9 @@
|
|||||||
if (src.head)
|
if (src.head)
|
||||||
for(var/i=1, i<=src.head.allowed.len, i++)
|
for(var/i=1, i<=src.head.allowed.len, i++)
|
||||||
// world << "[src.head.allowed[i]] and [W.type]"
|
// world << "[src.head.allowed[i]] and [W.type]"
|
||||||
|
if(!W)
|
||||||
|
src << "The code is under the impression that the item you're trying to stick in your hat doesn't exist."
|
||||||
|
return
|
||||||
if (findtext("[W.type]","[src.head.allowed[i]]") || istype(W, /obj/item/weapon/pen))
|
if (findtext("[W.type]","[src.head.allowed[i]]") || istype(W, /obj/item/weapon/pen))
|
||||||
confirm = 1
|
confirm = 1
|
||||||
break
|
break
|
||||||
|
|||||||
Reference in New Issue
Block a user