Table and Crate interactions (#1353)

Inspired partially by complaints about my changes to crates that made them hard to shoot open. This PR adds two main features which interact:

Crates can now be slid under tables, making them easier to stow away. A crate only fits under a table while closed, and can't be opened while under there.

Crates can now be hoisted up ontop of a table, this takes time depending on the mass of the crate. A crate ontop of a table works as normal, and it will also always block shots, making a table the ideal platform for firing an emitter at one.

A table can have a crate both under and ontop of it, allowing two crates to be stored on one tile, at some cost of convenience and effort. The crates have their pixel offsets modified so that both of them can be seen at once.
This commit is contained in:
NanakoAC
2016-12-31 02:18:03 +00:00
committed by skull132
parent 7a4d9fedaa
commit 74f29a6c22
4 changed files with 190 additions and 11 deletions

View File

@@ -6,7 +6,7 @@
density = 1
anchored = 1
climbable = 1
layer = 2.8
layer = LAYER_TABLE
throwpass = 1
var/flipped = 0
var/maxhealth = 10
@@ -65,7 +65,7 @@
/obj/structure/table/initialize()
..()
// One table per turf.
for(var/obj/structure/table/T in loc)
if(T != src)