Skip to content

Adds drop_stack() helper proc

Rob Nelson requested to merge pull/7452/stacks_helper into Bleeding-Edge

Created by: unid15

        var/obj/item/stack/tile/mineral/uranium/U = locate(/obj/item/stack/tile/mineral/uranium) in user.loc
        if(U && U.type==/obj/item/stack/tile/mineral/uranium && U.amount<U.max_amount)
            U.amount++
            to_chat(user, "You add a uranium tile to the stack. It now has [U.amount] tiles.")
            return
        U = new(user.loc)

turns into

        drop_stack(/obj/item/stack/tile/mineral/uranium, user.loc, 1, user)

Merge request reports