...
This commit is contained in:
parent
e1725afaf1
commit
a17746ab9d
|
|
@ -2028,11 +2028,12 @@ handlers.Save_Pet_MenuBack = function(args)
|
||||||
if (error < 0) return Get_Return(error);
|
if (error < 0) return Get_Return(error);
|
||||||
|
|
||||||
var urod = Get_JsonUserData(readonlydata);
|
var urod = Get_JsonUserData(readonlydata);
|
||||||
|
var table = Get_MissionTable();
|
||||||
|
|
||||||
if (urod.Pet[args.PetID])
|
if (urod.Pet[args.PetID])
|
||||||
{
|
{
|
||||||
urod.Equip.Equip["Pet"] = args.PetID;
|
urod.Equip.Equip["Pet"] = args.PetID;
|
||||||
Add_MissionCount(Get_MissionTable(), urod, "PET_MOUNT_LIMIT", 0, 1);
|
Add_MissionCount(table, urod, "PET_MOUNT_LIMIT", 0, 1);
|
||||||
}
|
}
|
||||||
|
|
||||||
Set_JsonUserData(urod);
|
Set_JsonUserData(urod);
|
||||||
|
|
|
||||||
|
|
@ -28,7 +28,7 @@ public class PetUI : BotMenuBase
|
||||||
|
|
||||||
if (changePet)
|
if (changePet)
|
||||||
{
|
{
|
||||||
ServerInfo.Ins.Save_Pet_MenuBack(Get_EnterID(eItem.Pet), result =>
|
ServerInfo.Ins.Save_Pet_MenuBack(sdata.Get_EqiupmentEquip(eItem.Pet), result =>
|
||||||
{
|
{
|
||||||
sdata.Equip.Set_Equip(eItem.Pet, result.equipPetID);
|
sdata.Equip.Set_Equip(eItem.Pet, result.equipPetID);
|
||||||
PCInfo.Ins.Make_Pet(false, sdata, MyValue.MyPC);
|
PCInfo.Ins.Make_Pet(false, sdata, MyValue.MyPC);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue