# A bed is two items on two tiles. Each half carries the ability that places the other one when
# it lands on the terrain, so placing either half places the whole bed, and a half with nowhere
# to put its other half removes itself instead of lying there alone.
# PAIR_DIRECTION is where the other half goes, counted from the item's own orientation: the top
# sits one tile along the orientation from the bot, which is how the world generators lay beds
# out as well.

complete_straw_bed_bot
{
    TYPE: COMPLETE_ITEM_PAIR

    PAIR_ITEM: straw_bed_top
    PAIR_DIRECTION: 0
}

complete_straw_bed_top
{
    TYPE: COMPLETE_ITEM_PAIR

    PAIR_ITEM: straw_bed_bot
    PAIR_DIRECTION: 3
}

complete_wooden_bed_bot
{
    TYPE: COMPLETE_ITEM_PAIR

    PAIR_ITEM: wooden_bed_top
    PAIR_DIRECTION: 0
}

complete_wooden_bed_top
{
    TYPE: COMPLETE_ITEM_PAIR

    PAIR_ITEM: wooden_bed_bot
    PAIR_DIRECTION: 3
}

# The orc throne is a pair stacked on itself rather than laid along the ground: the back sits on
# the seat, one level up, so its halves use PAIR_HEIGHT_OFFSET and no direction.

complete_orc_throne_base
{
    TYPE: COMPLETE_ITEM_PAIR

    PAIR_ITEM: orc_throne_back
    PAIR_HEIGHT_OFFSET: 1
}

complete_orc_throne_back
{
    TYPE: COMPLETE_ITEM_PAIR

    PAIR_ITEM: orc_throne_base
    PAIR_HEIGHT_OFFSET: -1
}
