Mimes can no longer whisper without breaking their vows. Mimes don't talk!

Lockers and crates now holy a maximum of 20 objects. 
This is to prevent players from dragging a locker into a populated area and opening it; resulting in clients with a weaker connection to lock up and crash. I realize this is an inconvenience for botanists but players being able to intentionally crash other players takes priority.

git-svn-id: http://tgstation13.googlecode.com/svn/trunk@4195 316c924e-a436-60f5-8080-3fe189b3f50e
This commit is contained in:
johnsonmt88@gmail.com
2012-07-27 18:31:28 +00:00
parent 0705168f1b
commit 7d1b47e482
4 changed files with 21 additions and 5 deletions
+9
View File
@@ -50,11 +50,18 @@
if(!src.can_close())
return 0
var/itemcount = 0
for(var/obj/item/I in src.loc)
if(itemcount >= storage_capacity)
break
if(!I.anchored)
I.loc = src
itemcount++
for(var/mob/M in src.loc)
if(itemcount >= storage_capacity)
break
if(istype (M, /mob/dead/observer))
continue
if(M.buckled)
@@ -65,6 +72,8 @@
M.client.eye = src
M.loc = src
itemcount++
src.icon_state = src.icon_closed
src.opened = 0
if(istype(src, /obj/structure/closet/body_bag))
+8
View File
@@ -235,11 +235,19 @@
/obj/structure/closet/crate/open()
playsound(src.loc, 'click.ogg', 15, 1, -3)
var/itemcount = 0
for(var/obj/O in src)
if(itemcount >= storage_capacity)
break
O.loc = get_turf(src)
itemcount++
for(var/mob/M in src)
if(itemcount >= storage_capacity)
break
M.loc = get_turf(src)
itemcount++
icon_state = icon_opened
src.opened = 1