mirror of
https://github.com/maierfelix/POGOserver.git
synced 2026-07-10 23:13:29 -05:00
25 lines
586 B
JavaScript
25 lines
586 B
JavaScript
import POGOProtos from "pokemongo-protobuf";
|
|
import print from "../../../print";
|
|
/**
|
|
* @param {Object} msg
|
|
* @return {Buffer}
|
|
*/
|
|
export default function UseXpBoost(msg) {
|
|
let buffer = null;
|
|
|
|
buffer = { result: "SUCCESS",
|
|
applied_items:{item:[
|
|
{
|
|
item_id: msg.item_id,
|
|
item_type: "ITEM_TYPE_XP_BOOST",
|
|
expire_ms: +new Date()+20000,//1800000 ,
|
|
applied_ms:+new Date()
|
|
}
|
|
]}};
|
|
this.removeItems({"301":1});
|
|
this.info.LuckyEggExp = +new Date()+20000;
|
|
return (
|
|
POGOProtos.serialize(buffer, "POGOProtos.Networking.Responses.UseItemXpBoostResponse")
|
|
);
|
|
|
|
} |