Arguments:
* Array - An array of equip definitions
Returns:
* Promise
Example usages:
equip_batch([{ num: 0, slot: "chest" }, { num: 1, slot: "orb" }]);
equip_batch([{ num: 0, slot: "chest" }, { num: 1, slot: "orb" }]).then(
function(data){
game_log("Yes!"); // Not all items may have been equipped. All this means is that you send the correct layout of data.
},
function(data) {
game_log("equip_batch failed: " + data.reason);
},
);
Promise Reference:
"resolve"
{
place: "equip_batch",
response: "data",
slots: [{ num: 0, slot: "chest" }, "no_item"] // Note that even though equipping the orb failed, we still received a success response.
}
"reject"
{
place: "equip_batch",
failed: true,
response: "invalid",
reason: "invalid", // You didn't send an array.
}
"source"