mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-07-10 14:44:05 +01:00
Fixed issue 777.
Fixed issue 439. Relating to the 439 fix, added a new define, TEMPERATURE_DAMAGE_COEFFICIENT. The name is slightly misleading, as it is used in reagents that affect body temperature. Leporazine now functions properly, and you can once again into space with a cup of coffee and a firesuit. Also did a few grammar changes for newscasters. git-svn-id: http://tgstation13.googlecode.com/svn/trunk@4392 316c924e-a436-60f5-8080-3fe189b3f50e
This commit is contained in:
@@ -235,19 +235,8 @@
|
||||
/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
|
||||
@@ -255,9 +244,14 @@
|
||||
/obj/structure/closet/crate/close()
|
||||
playsound(src.loc, 'click.ogg', 15, 1, -3)
|
||||
|
||||
var/itemcount = 0
|
||||
|
||||
for(var/obj/O in get_turf(src))
|
||||
if(itemcount >= storage_capacity)
|
||||
break
|
||||
if(O.density || O.anchored || O == src) continue
|
||||
O.loc = src
|
||||
itemcount++
|
||||
|
||||
icon_state = icon_closed
|
||||
src.opened = 0
|
||||
|
||||
Reference in New Issue
Block a user