mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-08-25 04:57:12 +01:00
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:
@@ -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))
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user