Save_Pet_LvUp
This commit is contained in:
parent
d67be15024
commit
0cc272183c
|
|
@ -4,6 +4,7 @@ using System.Collections.Generic;
|
||||||
using System.IO;
|
using System.IO;
|
||||||
using UnityEditor;
|
using UnityEditor;
|
||||||
using UnityEngine;
|
using UnityEngine;
|
||||||
|
using UnityEngine.UIElements;
|
||||||
|
|
||||||
public class GetServerTables
|
public class GetServerTables
|
||||||
{
|
{
|
||||||
|
|
@ -17,6 +18,8 @@ public class GetServerTables
|
||||||
Get_ServerTable("EquipSmelting", new List<string> { "n_IncreaseValueRate" });
|
Get_ServerTable("EquipSmelting", new List<string> { "n_IncreaseValueRate" });
|
||||||
Get_ServerTable("SkillList", new List<string> { "exception", "n_MP", "f_CoolTime", "f_SkillRange", "s_Animation", "s_NextAnimation", "f_CastingTime", "e_SkillTarget", "n_DefaultValue", "f_LevelPerValue", "f_BalanceConstant", "e_SkillExtraType", "f_ExtraValue1", "f_ExtraValue1_비고", "f_ExtraValue2", "f_ExtraValue2_비고", "f_ExtraValue3", "f_ExtraValue3_비고", "f_ExtraValue4", "f_ExtraValue4_비고" });
|
Get_ServerTable("SkillList", new List<string> { "exception", "n_MP", "f_CoolTime", "f_SkillRange", "s_Animation", "s_NextAnimation", "f_CastingTime", "e_SkillTarget", "n_DefaultValue", "f_LevelPerValue", "f_BalanceConstant", "e_SkillExtraType", "f_ExtraValue1", "f_ExtraValue1_비고", "f_ExtraValue2", "f_ExtraValue2_비고", "f_ExtraValue3", "f_ExtraValue3_비고", "f_ExtraValue4", "f_ExtraValue4_비고" });
|
||||||
Get_ServerTable("GlobalValue", new List<string> { "exception" });
|
Get_ServerTable("GlobalValue", new List<string> { "exception" });
|
||||||
|
Get_ServerTable("PetList", new List<string> { "e_AttackType", "n_DefaultATK", "n_DefaultDEF", "n_DefaultM_DEF", "n_DefaultHP", "f_PetStatRate", "f_AttackRange", "s_PetAttackPrefab", "f_PetMoveSPD", "f_PetAttackSPD", "n_PetActiveSkill", "n_PetPassiveSkill", "s_PetPrefab", "f_Scale", "f_UIScale", "f_UIOffSet_y" });
|
||||||
|
Get_ServerTable("OptionConfig", new List<string> { "e_OptionType", "f_ExtraValue1", "f_ExtraValue2", "f_ExtraValue3", "f_ExtraValue4" });
|
||||||
}
|
}
|
||||||
|
|
||||||
static void Get_ServerTable(string path, List<string> except)
|
static void Get_ServerTable(string path, List<string> except)
|
||||||
|
|
|
||||||
|
|
@ -1469,6 +1469,45 @@ handlers.Save_Pet_Gacha = function(args)
|
||||||
}
|
}
|
||||||
return Get_Return(1);
|
return Get_Return(1);
|
||||||
}
|
}
|
||||||
|
handlers.Save_Pet_LvUp = function(args)
|
||||||
|
{
|
||||||
|
var readonlydata = Get_UserReadOnlyData();
|
||||||
|
var error = Get_Error(readonlydata, args.Token);
|
||||||
|
if (error < 0) return Get_Return(error);
|
||||||
|
|
||||||
|
var urod = Get_JsonUserData(readonlydata);
|
||||||
|
|
||||||
|
if (!urod.Pet[args.PetID]) return Get_Return(3);
|
||||||
|
|
||||||
|
var grade = Get_PetTable().find(f=>f.n_PetID == args.PetID).n_PetGrade;
|
||||||
|
var lv = urod.Pet[args.PetID][1];
|
||||||
|
var petupgrade_data = Get_PetUpgradeTable().find(f=>f.n_UpgradeLv == lv);
|
||||||
|
var needCard = grade < 4 ? petupgrade_data.n_LowPetCost : grade < 7 ? petupgrade_data.n_MidPetCost : petupgrade_data.n_HighPetCost;
|
||||||
|
var optionid = grade < 4 ? Get_GlobalValue_nValue("n_PetReinforcePriceOptionID1") :
|
||||||
|
grade < 7 ? Get_GlobalValue_nValue("n_PetReinforcePriceOptionID2") :
|
||||||
|
Get_GlobalValue_nValue("n_PetReinforcePriceOptionID3");
|
||||||
|
var optionData = Get_OptionConfigTable().find(f=>f.n_OptionID == optionid);
|
||||||
|
var needMat = Get_K_Value(lv, optionData.f_BalanceConstant, optionData.n_DefaultValue ,optionData.f_LevelPerValue);
|
||||||
|
var matID = Get_GlobalValue_nValue("n_PetReinforceMaterialID");
|
||||||
|
//log.info("needCard " + needCard + ", needMat " + needMat);
|
||||||
|
|
||||||
|
var table = Get_MissionTable();
|
||||||
|
if (Use_Item(table, urod, matID, needMat))
|
||||||
|
{
|
||||||
|
if (Use_Item(table, urod, args.PetID, needCard))
|
||||||
|
{
|
||||||
|
++urod.Pet[args.PetID][1];
|
||||||
|
|
||||||
|
Add_MissionCount(table, urod, "PET_UPGRADE_ALL", 0, 1);
|
||||||
|
Add_MissionCount(table, urod, "PET_UPGRADE_ACC", 0, 1);
|
||||||
|
|
||||||
|
Set_JsonUserData(urod);
|
||||||
|
return Get_Return(0, { usemat : needMat, usepet : needCard });
|
||||||
|
}
|
||||||
|
return Get_Return(2);
|
||||||
|
}
|
||||||
|
return Get_Return(1);
|
||||||
|
}
|
||||||
/////////////////////////////////// 서버 처리
|
/////////////////////////////////// 서버 처리
|
||||||
|
|
||||||
handlers.Write_UnityInApp = function(args)
|
handlers.Write_UnityInApp = function(args)
|
||||||
|
|
@ -17931,6 +17970,525 @@ function Get_SkillTable()
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function Get_PetTable()
|
||||||
|
{
|
||||||
|
return [
|
||||||
|
{
|
||||||
|
"n_PetID": "50001",
|
||||||
|
"n_PetGrade": "1"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"n_PetID": "50002",
|
||||||
|
"n_PetGrade": "1"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"n_PetID": "50003",
|
||||||
|
"n_PetGrade": "1"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"n_PetID": "50004",
|
||||||
|
"n_PetGrade": "1"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"n_PetID": "50005",
|
||||||
|
"n_PetGrade": "1"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"n_PetID": "50006",
|
||||||
|
"n_PetGrade": "1"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"n_PetID": "50007",
|
||||||
|
"n_PetGrade": "1"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"n_PetID": "50008",
|
||||||
|
"n_PetGrade": "1"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"n_PetID": "50009",
|
||||||
|
"n_PetGrade": "1"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"n_PetID": "50010",
|
||||||
|
"n_PetGrade": "2"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"n_PetID": "50011",
|
||||||
|
"n_PetGrade": "2"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"n_PetID": "50012",
|
||||||
|
"n_PetGrade": "2"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"n_PetID": "50013",
|
||||||
|
"n_PetGrade": "2"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"n_PetID": "50014",
|
||||||
|
"n_PetGrade": "2"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"n_PetID": "50015",
|
||||||
|
"n_PetGrade": "2"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"n_PetID": "50016",
|
||||||
|
"n_PetGrade": "2"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"n_PetID": "50017",
|
||||||
|
"n_PetGrade": "2"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"n_PetID": "50018",
|
||||||
|
"n_PetGrade": "2"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"n_PetID": "50019",
|
||||||
|
"n_PetGrade": "3"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"n_PetID": "50020",
|
||||||
|
"n_PetGrade": "3"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"n_PetID": "50021",
|
||||||
|
"n_PetGrade": "3"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"n_PetID": "50022",
|
||||||
|
"n_PetGrade": "3"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"n_PetID": "50023",
|
||||||
|
"n_PetGrade": "3"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"n_PetID": "50024",
|
||||||
|
"n_PetGrade": "3"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"n_PetID": "50025",
|
||||||
|
"n_PetGrade": "3"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"n_PetID": "50026",
|
||||||
|
"n_PetGrade": "3"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"n_PetID": "50027",
|
||||||
|
"n_PetGrade": "3"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"n_PetID": "50028",
|
||||||
|
"n_PetGrade": "4"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"n_PetID": "50029",
|
||||||
|
"n_PetGrade": "4"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"n_PetID": "50030",
|
||||||
|
"n_PetGrade": "4"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"n_PetID": "50031",
|
||||||
|
"n_PetGrade": "4"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"n_PetID": "50032",
|
||||||
|
"n_PetGrade": "4"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"n_PetID": "50033",
|
||||||
|
"n_PetGrade": "4"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"n_PetID": "50034",
|
||||||
|
"n_PetGrade": "4"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
function Get_PetUpgradeTable()
|
||||||
|
{
|
||||||
|
return [
|
||||||
|
{
|
||||||
|
"n_UpgradeLv": "1",
|
||||||
|
"n_LowPetCost": "1",
|
||||||
|
"n_MidPetCost": "0",
|
||||||
|
"n_HighPetCost": "0"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"n_UpgradeLv": "2",
|
||||||
|
"n_LowPetCost": "1",
|
||||||
|
"n_MidPetCost": "0",
|
||||||
|
"n_HighPetCost": "0"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"n_UpgradeLv": "3",
|
||||||
|
"n_LowPetCost": "1",
|
||||||
|
"n_MidPetCost": "0",
|
||||||
|
"n_HighPetCost": "0"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"n_UpgradeLv": "4",
|
||||||
|
"n_LowPetCost": "1",
|
||||||
|
"n_MidPetCost": "0",
|
||||||
|
"n_HighPetCost": "0"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"n_UpgradeLv": "5",
|
||||||
|
"n_LowPetCost": "1",
|
||||||
|
"n_MidPetCost": "1",
|
||||||
|
"n_HighPetCost": "0"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"n_UpgradeLv": "6",
|
||||||
|
"n_LowPetCost": "1",
|
||||||
|
"n_MidPetCost": "1",
|
||||||
|
"n_HighPetCost": "0"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"n_UpgradeLv": "7",
|
||||||
|
"n_LowPetCost": "1",
|
||||||
|
"n_MidPetCost": "1",
|
||||||
|
"n_HighPetCost": "0"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"n_UpgradeLv": "8",
|
||||||
|
"n_LowPetCost": "1",
|
||||||
|
"n_MidPetCost": "1",
|
||||||
|
"n_HighPetCost": "0"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"n_UpgradeLv": "9",
|
||||||
|
"n_LowPetCost": "1",
|
||||||
|
"n_MidPetCost": "1",
|
||||||
|
"n_HighPetCost": "0"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"n_UpgradeLv": "10",
|
||||||
|
"n_LowPetCost": "1",
|
||||||
|
"n_MidPetCost": "1",
|
||||||
|
"n_HighPetCost": "0"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"n_UpgradeLv": "11",
|
||||||
|
"n_LowPetCost": "1",
|
||||||
|
"n_MidPetCost": "1",
|
||||||
|
"n_HighPetCost": "0"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"n_UpgradeLv": "12",
|
||||||
|
"n_LowPetCost": "1",
|
||||||
|
"n_MidPetCost": "1",
|
||||||
|
"n_HighPetCost": "0"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"n_UpgradeLv": "13",
|
||||||
|
"n_LowPetCost": "1",
|
||||||
|
"n_MidPetCost": "1",
|
||||||
|
"n_HighPetCost": "1"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"n_UpgradeLv": "14",
|
||||||
|
"n_LowPetCost": "1",
|
||||||
|
"n_MidPetCost": "1",
|
||||||
|
"n_HighPetCost": "1"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"n_UpgradeLv": "15",
|
||||||
|
"n_LowPetCost": "1",
|
||||||
|
"n_MidPetCost": "1",
|
||||||
|
"n_HighPetCost": "1"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"n_UpgradeLv": "16",
|
||||||
|
"n_LowPetCost": "1",
|
||||||
|
"n_MidPetCost": "1",
|
||||||
|
"n_HighPetCost": "1"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"n_UpgradeLv": "17",
|
||||||
|
"n_LowPetCost": "1",
|
||||||
|
"n_MidPetCost": "1",
|
||||||
|
"n_HighPetCost": "1"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"n_UpgradeLv": "18",
|
||||||
|
"n_LowPetCost": "1",
|
||||||
|
"n_MidPetCost": "1",
|
||||||
|
"n_HighPetCost": "1"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"n_UpgradeLv": "19",
|
||||||
|
"n_LowPetCost": "1",
|
||||||
|
"n_MidPetCost": "1",
|
||||||
|
"n_HighPetCost": "1"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"n_UpgradeLv": "20",
|
||||||
|
"n_LowPetCost": "1",
|
||||||
|
"n_MidPetCost": "1",
|
||||||
|
"n_HighPetCost": "1"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"n_UpgradeLv": "21",
|
||||||
|
"n_LowPetCost": "1",
|
||||||
|
"n_MidPetCost": "1",
|
||||||
|
"n_HighPetCost": "1"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"n_UpgradeLv": "22",
|
||||||
|
"n_LowPetCost": "1",
|
||||||
|
"n_MidPetCost": "1",
|
||||||
|
"n_HighPetCost": "1"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"n_UpgradeLv": "23",
|
||||||
|
"n_LowPetCost": "1",
|
||||||
|
"n_MidPetCost": "1",
|
||||||
|
"n_HighPetCost": "1"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"n_UpgradeLv": "24",
|
||||||
|
"n_LowPetCost": "1",
|
||||||
|
"n_MidPetCost": "1",
|
||||||
|
"n_HighPetCost": "1"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"n_UpgradeLv": "25",
|
||||||
|
"n_LowPetCost": "1",
|
||||||
|
"n_MidPetCost": "1",
|
||||||
|
"n_HighPetCost": "1"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"n_UpgradeLv": "26",
|
||||||
|
"n_LowPetCost": "1",
|
||||||
|
"n_MidPetCost": "1",
|
||||||
|
"n_HighPetCost": "1"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"n_UpgradeLv": "27",
|
||||||
|
"n_LowPetCost": "1",
|
||||||
|
"n_MidPetCost": "1",
|
||||||
|
"n_HighPetCost": "1"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"n_UpgradeLv": "28",
|
||||||
|
"n_LowPetCost": "1",
|
||||||
|
"n_MidPetCost": "1",
|
||||||
|
"n_HighPetCost": "1"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"n_UpgradeLv": "29",
|
||||||
|
"n_LowPetCost": "1",
|
||||||
|
"n_MidPetCost": "1",
|
||||||
|
"n_HighPetCost": "1"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"n_UpgradeLv": "30",
|
||||||
|
"n_LowPetCost": "1",
|
||||||
|
"n_MidPetCost": "1",
|
||||||
|
"n_HighPetCost": "1"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"n_UpgradeLv": "31",
|
||||||
|
"n_LowPetCost": "1",
|
||||||
|
"n_MidPetCost": "1",
|
||||||
|
"n_HighPetCost": "1"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"n_UpgradeLv": "32",
|
||||||
|
"n_LowPetCost": "1",
|
||||||
|
"n_MidPetCost": "1",
|
||||||
|
"n_HighPetCost": "1"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"n_UpgradeLv": "33",
|
||||||
|
"n_LowPetCost": "1",
|
||||||
|
"n_MidPetCost": "1",
|
||||||
|
"n_HighPetCost": "1"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"n_UpgradeLv": "34",
|
||||||
|
"n_LowPetCost": "1",
|
||||||
|
"n_MidPetCost": "1",
|
||||||
|
"n_HighPetCost": "1"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"n_UpgradeLv": "35",
|
||||||
|
"n_LowPetCost": "1",
|
||||||
|
"n_MidPetCost": "1",
|
||||||
|
"n_HighPetCost": "1"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"n_UpgradeLv": "36",
|
||||||
|
"n_LowPetCost": "1",
|
||||||
|
"n_MidPetCost": "1",
|
||||||
|
"n_HighPetCost": "1"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"n_UpgradeLv": "37",
|
||||||
|
"n_LowPetCost": "1",
|
||||||
|
"n_MidPetCost": "1",
|
||||||
|
"n_HighPetCost": "1"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"n_UpgradeLv": "38",
|
||||||
|
"n_LowPetCost": "1",
|
||||||
|
"n_MidPetCost": "1",
|
||||||
|
"n_HighPetCost": "1"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"n_UpgradeLv": "39",
|
||||||
|
"n_LowPetCost": "1",
|
||||||
|
"n_MidPetCost": "1",
|
||||||
|
"n_HighPetCost": "1"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"n_UpgradeLv": "40",
|
||||||
|
"n_LowPetCost": "1",
|
||||||
|
"n_MidPetCost": "1",
|
||||||
|
"n_HighPetCost": "1"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
|
||||||
|
function Get_OptionConfigTable()
|
||||||
|
{
|
||||||
|
return [
|
||||||
|
{
|
||||||
|
"n_OptionID": "330001",
|
||||||
|
"n_DefaultValue": "90",
|
||||||
|
"f_LevelPerValue": "1",
|
||||||
|
"f_BalanceConstant": "0"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"n_OptionID": "330002",
|
||||||
|
"n_DefaultValue": "90",
|
||||||
|
"f_LevelPerValue": "1",
|
||||||
|
"f_BalanceConstant": "0"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"n_OptionID": "330003",
|
||||||
|
"n_DefaultValue": "0",
|
||||||
|
"f_LevelPerValue": "20",
|
||||||
|
"f_BalanceConstant": "0.0015"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"n_OptionID": "330004",
|
||||||
|
"n_DefaultValue": "0",
|
||||||
|
"f_LevelPerValue": "20",
|
||||||
|
"f_BalanceConstant": "0.0015"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"n_OptionID": "330005",
|
||||||
|
"n_DefaultValue": "10",
|
||||||
|
"f_LevelPerValue": "20",
|
||||||
|
"f_BalanceConstant": "0.0015"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"n_OptionID": "330006",
|
||||||
|
"n_DefaultValue": "10",
|
||||||
|
"f_LevelPerValue": "20",
|
||||||
|
"f_BalanceConstant": "0.0015"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"n_OptionID": "330007",
|
||||||
|
"n_DefaultValue": "10",
|
||||||
|
"f_LevelPerValue": "20",
|
||||||
|
"f_BalanceConstant": "0.0015"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"n_OptionID": "330008",
|
||||||
|
"n_DefaultValue": "10",
|
||||||
|
"f_LevelPerValue": "20",
|
||||||
|
"f_BalanceConstant": "0.0015"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"n_OptionID": "330009",
|
||||||
|
"n_DefaultValue": "10",
|
||||||
|
"f_LevelPerValue": "20",
|
||||||
|
"f_BalanceConstant": "0.0015"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"n_OptionID": "330101",
|
||||||
|
"n_DefaultValue": "90",
|
||||||
|
"f_LevelPerValue": "2",
|
||||||
|
"f_BalanceConstant": "0"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"n_OptionID": "330102",
|
||||||
|
"n_DefaultValue": "90",
|
||||||
|
"f_LevelPerValue": "2",
|
||||||
|
"f_BalanceConstant": "0"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"n_OptionID": "330103",
|
||||||
|
"n_DefaultValue": "0",
|
||||||
|
"f_LevelPerValue": "30",
|
||||||
|
"f_BalanceConstant": "0.0015"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"n_OptionID": "330104",
|
||||||
|
"n_DefaultValue": "0",
|
||||||
|
"f_LevelPerValue": "30",
|
||||||
|
"f_BalanceConstant": "0.0015"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"n_OptionID": "330105",
|
||||||
|
"n_DefaultValue": "10",
|
||||||
|
"f_LevelPerValue": "30",
|
||||||
|
"f_BalanceConstant": "0.0015"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"n_OptionID": "330106",
|
||||||
|
"n_DefaultValue": "10",
|
||||||
|
"f_LevelPerValue": "30",
|
||||||
|
"f_BalanceConstant": "0.0015"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"n_OptionID": "330107",
|
||||||
|
"n_DefaultValue": "10",
|
||||||
|
"f_LevelPerValue": "30",
|
||||||
|
"f_BalanceConstant": "0.0015"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"n_OptionID": "330108",
|
||||||
|
"n_DefaultValue": "10",
|
||||||
|
"f_LevelPerValue": "30",
|
||||||
|
"f_BalanceConstant": "0.0015"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"n_OptionID": "330109",
|
||||||
|
"n_DefaultValue": "10",
|
||||||
|
"f_LevelPerValue": "30",
|
||||||
|
"f_BalanceConstant": "0.0015"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"n_OptionID": "340001",
|
||||||
|
"n_DefaultValue": "10000",
|
||||||
|
"f_LevelPerValue": "1",
|
||||||
|
"f_BalanceConstant": "0.1"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"n_OptionID": "340002",
|
||||||
|
"n_DefaultValue": "20000",
|
||||||
|
"f_LevelPerValue": "2",
|
||||||
|
"f_BalanceConstant": "0.2"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"n_OptionID": "340003",
|
||||||
|
"n_DefaultValue": "30000",
|
||||||
|
"f_LevelPerValue": "3",
|
||||||
|
"f_BalanceConstant": "0.3"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
|
||||||
function Get_PlayOCoupons()
|
function Get_PlayOCoupons()
|
||||||
{
|
{
|
||||||
var poc = JSON.parse(server.GetTitleInternalData("PlayO").Data.PlayO);
|
var poc = JSON.parse(server.GetTitleInternalData("PlayO").Data.PlayO);
|
||||||
|
|
|
||||||
File diff suppressed because one or more lines are too long
|
|
@ -1 +1 @@
|
||||||
[{"n_OptionID": "330001", "e_OptionType": "KillToMP", "n_DefaultValue": "90", "f_LevelPerValue": "1", "f_BalanceConstant": "0", "f_ExtraValue1": "0.5", "f_ExtraValue2": "1", "f_ExtraValue3": "0", "f_ExtraValue4": "0"}, {"n_OptionID": "330002", "e_OptionType": "KillToHP", "n_DefaultValue": "90", "f_LevelPerValue": "1", "f_BalanceConstant": "0", "f_ExtraValue1": "0", "f_ExtraValue2": "0", "f_ExtraValue3": "0", "f_ExtraValue4": "0"}, {"n_OptionID": "330003", "e_OptionType": "Pet_ATK_Multiplier", "n_DefaultValue": "0", "f_LevelPerValue": "20", "f_BalanceConstant": "0.0015", "f_ExtraValue1": "5", "f_ExtraValue2": "0.25", "f_ExtraValue3": "0", "f_ExtraValue4": "0"}, {"n_OptionID": "330004", "e_OptionType": "Pet_HP_Multiplier", "n_DefaultValue": "0", "f_LevelPerValue": "20", "f_BalanceConstant": "0.0015", "f_ExtraValue1": "0", "f_ExtraValue2": "0", "f_ExtraValue3": "0", "f_ExtraValue4": "0"}, {"n_OptionID": "330005", "e_OptionType": "ATK", "n_DefaultValue": "10", "f_LevelPerValue": "20", "f_BalanceConstant": "0.0015", "f_ExtraValue1": "0", "f_ExtraValue2": "0", "f_ExtraValue3": "0", "f_ExtraValue4": "0"}, {"n_OptionID": "330006", "e_OptionType": "DEF", "n_DefaultValue": "10", "f_LevelPerValue": "20", "f_BalanceConstant": "0.0015", "f_ExtraValue1": "0", "f_ExtraValue2": "0", "f_ExtraValue3": "0", "f_ExtraValue4": "0"}, {"n_OptionID": "330007", "e_OptionType": "MaxHP", "n_DefaultValue": "10", "f_LevelPerValue": "20", "f_BalanceConstant": "0.0015", "f_ExtraValue1": "0", "f_ExtraValue2": "0", "f_ExtraValue3": "0", "f_ExtraValue4": "0"}, {"n_OptionID": "330008", "e_OptionType": "MaxMP", "n_DefaultValue": "10", "f_LevelPerValue": "20", "f_BalanceConstant": "0.0015", "f_ExtraValue1": "0", "f_ExtraValue2": "0", "f_ExtraValue3": "0", "f_ExtraValue4": "0"}, {"n_OptionID": "330009", "e_OptionType": "M_DEF", "n_DefaultValue": "10", "f_LevelPerValue": "20", "f_BalanceConstant": "0.0015", "f_ExtraValue1": "0", "f_ExtraValue2": "0", "f_ExtraValue3": "0", "f_ExtraValue4": "0"}, {"n_OptionID": "330101", "e_OptionType": "KillToMP", "n_DefaultValue": "90", "f_LevelPerValue": "2", "f_BalanceConstant": "0", "f_ExtraValue1": "0.5", "f_ExtraValue2": "1", "f_ExtraValue3": "0", "f_ExtraValue4": "0"}, {"n_OptionID": "330102", "e_OptionType": "KillToHP", "n_DefaultValue": "90", "f_LevelPerValue": "2", "f_BalanceConstant": "0", "f_ExtraValue1": "0", "f_ExtraValue2": "0", "f_ExtraValue3": "0", "f_ExtraValue4": "0"}, {"n_OptionID": "330103", "e_OptionType": "Pet_ATK_Multiplier", "n_DefaultValue": "0", "f_LevelPerValue": "30", "f_BalanceConstant": "0.0015", "f_ExtraValue1": "5", "f_ExtraValue2": "0.25", "f_ExtraValue3": "0", "f_ExtraValue4": "0"}, {"n_OptionID": "330104", "e_OptionType": "Pet_HP_Multiplier", "n_DefaultValue": "0", "f_LevelPerValue": "30", "f_BalanceConstant": "0.0015", "f_ExtraValue1": "0", "f_ExtraValue2": "0", "f_ExtraValue3": "0", "f_ExtraValue4": "0"}, {"n_OptionID": "330105", "e_OptionType": "ATK", "n_DefaultValue": "10", "f_LevelPerValue": "30", "f_BalanceConstant": "0.0015", "f_ExtraValue1": "0", "f_ExtraValue2": "0", "f_ExtraValue3": "0", "f_ExtraValue4": "0"}, {"n_OptionID": "330106", "e_OptionType": "DEF", "n_DefaultValue": "10", "f_LevelPerValue": "30", "f_BalanceConstant": "0.0015", "f_ExtraValue1": "0", "f_ExtraValue2": "0", "f_ExtraValue3": "0", "f_ExtraValue4": "0"}, {"n_OptionID": "330107", "e_OptionType": "MaxHP", "n_DefaultValue": "10", "f_LevelPerValue": "30", "f_BalanceConstant": "0.0015", "f_ExtraValue1": "0", "f_ExtraValue2": "0", "f_ExtraValue3": "0", "f_ExtraValue4": "0"}, {"n_OptionID": "330108", "e_OptionType": "MaxMP", "n_DefaultValue": "10", "f_LevelPerValue": "30", "f_BalanceConstant": "0.0015", "f_ExtraValue1": "0", "f_ExtraValue2": "0", "f_ExtraValue3": "0", "f_ExtraValue4": "0"}, {"n_OptionID": "330109", "e_OptionType": "M_DEF", "n_DefaultValue": "10", "f_LevelPerValue": "30", "f_BalanceConstant": "0.0015", "f_ExtraValue1": "0", "f_ExtraValue2": "0", "f_ExtraValue3": "0", "f_ExtraValue4": "0"}, {"n_OptionID": "340001", "e_OptionType": "Pet_Reinforce_Price", "n_DefaultValue": "1", "f_LevelPerValue": "1", "f_BalanceConstant": "0.1", "f_ExtraValue1": "0", "f_ExtraValue2": "0", "f_ExtraValue3": "0", "f_ExtraValue4": "0"}, {"n_OptionID": "340002", "e_OptionType": "Pet_Reinforce_Price", "n_DefaultValue": "2", "f_LevelPerValue": "2", "f_BalanceConstant": "0.2", "f_ExtraValue1": "0", "f_ExtraValue2": "0", "f_ExtraValue3": "0", "f_ExtraValue4": "0"}, {"n_OptionID": "340003", "e_OptionType": "Pet_Reinforce_Price", "n_DefaultValue": "3", "f_LevelPerValue": "3", "f_BalanceConstant": "0.3", "f_ExtraValue1": "0", "f_ExtraValue2": "0", "f_ExtraValue3": "0", "f_ExtraValue4": "0"}]
|
[{"n_OptionID": "330001", "e_OptionType": "KillToMP", "n_DefaultValue": "90", "f_LevelPerValue": "1", "f_BalanceConstant": "0", "f_ExtraValue1": "0.5", "f_ExtraValue2": "1", "f_ExtraValue3": "0", "f_ExtraValue4": "0"}, {"n_OptionID": "330002", "e_OptionType": "KillToHP", "n_DefaultValue": "90", "f_LevelPerValue": "1", "f_BalanceConstant": "0", "f_ExtraValue1": "0", "f_ExtraValue2": "0", "f_ExtraValue3": "0", "f_ExtraValue4": "0"}, {"n_OptionID": "330003", "e_OptionType": "Pet_ATK_Multiplier", "n_DefaultValue": "0", "f_LevelPerValue": "20", "f_BalanceConstant": "0.0015", "f_ExtraValue1": "5", "f_ExtraValue2": "0.25", "f_ExtraValue3": "0", "f_ExtraValue4": "0"}, {"n_OptionID": "330004", "e_OptionType": "Pet_HP_Multiplier", "n_DefaultValue": "0", "f_LevelPerValue": "20", "f_BalanceConstant": "0.0015", "f_ExtraValue1": "0", "f_ExtraValue2": "0", "f_ExtraValue3": "0", "f_ExtraValue4": "0"}, {"n_OptionID": "330005", "e_OptionType": "ATK", "n_DefaultValue": "10", "f_LevelPerValue": "20", "f_BalanceConstant": "0.0015", "f_ExtraValue1": "0", "f_ExtraValue2": "0", "f_ExtraValue3": "0", "f_ExtraValue4": "0"}, {"n_OptionID": "330006", "e_OptionType": "DEF", "n_DefaultValue": "10", "f_LevelPerValue": "20", "f_BalanceConstant": "0.0015", "f_ExtraValue1": "0", "f_ExtraValue2": "0", "f_ExtraValue3": "0", "f_ExtraValue4": "0"}, {"n_OptionID": "330007", "e_OptionType": "MaxHP", "n_DefaultValue": "10", "f_LevelPerValue": "20", "f_BalanceConstant": "0.0015", "f_ExtraValue1": "0", "f_ExtraValue2": "0", "f_ExtraValue3": "0", "f_ExtraValue4": "0"}, {"n_OptionID": "330008", "e_OptionType": "MaxMP", "n_DefaultValue": "10", "f_LevelPerValue": "20", "f_BalanceConstant": "0.0015", "f_ExtraValue1": "0", "f_ExtraValue2": "0", "f_ExtraValue3": "0", "f_ExtraValue4": "0"}, {"n_OptionID": "330009", "e_OptionType": "M_DEF", "n_DefaultValue": "10", "f_LevelPerValue": "20", "f_BalanceConstant": "0.0015", "f_ExtraValue1": "0", "f_ExtraValue2": "0", "f_ExtraValue3": "0", "f_ExtraValue4": "0"}, {"n_OptionID": "330101", "e_OptionType": "KillToMP", "n_DefaultValue": "90", "f_LevelPerValue": "2", "f_BalanceConstant": "0", "f_ExtraValue1": "0.5", "f_ExtraValue2": "1", "f_ExtraValue3": "0", "f_ExtraValue4": "0"}, {"n_OptionID": "330102", "e_OptionType": "KillToHP", "n_DefaultValue": "90", "f_LevelPerValue": "2", "f_BalanceConstant": "0", "f_ExtraValue1": "0", "f_ExtraValue2": "0", "f_ExtraValue3": "0", "f_ExtraValue4": "0"}, {"n_OptionID": "330103", "e_OptionType": "Pet_ATK_Multiplier", "n_DefaultValue": "0", "f_LevelPerValue": "30", "f_BalanceConstant": "0.0015", "f_ExtraValue1": "5", "f_ExtraValue2": "0.25", "f_ExtraValue3": "0", "f_ExtraValue4": "0"}, {"n_OptionID": "330104", "e_OptionType": "Pet_HP_Multiplier", "n_DefaultValue": "0", "f_LevelPerValue": "30", "f_BalanceConstant": "0.0015", "f_ExtraValue1": "0", "f_ExtraValue2": "0", "f_ExtraValue3": "0", "f_ExtraValue4": "0"}, {"n_OptionID": "330105", "e_OptionType": "ATK", "n_DefaultValue": "10", "f_LevelPerValue": "30", "f_BalanceConstant": "0.0015", "f_ExtraValue1": "0", "f_ExtraValue2": "0", "f_ExtraValue3": "0", "f_ExtraValue4": "0"}, {"n_OptionID": "330106", "e_OptionType": "DEF", "n_DefaultValue": "10", "f_LevelPerValue": "30", "f_BalanceConstant": "0.0015", "f_ExtraValue1": "0", "f_ExtraValue2": "0", "f_ExtraValue3": "0", "f_ExtraValue4": "0"}, {"n_OptionID": "330107", "e_OptionType": "MaxHP", "n_DefaultValue": "10", "f_LevelPerValue": "30", "f_BalanceConstant": "0.0015", "f_ExtraValue1": "0", "f_ExtraValue2": "0", "f_ExtraValue3": "0", "f_ExtraValue4": "0"}, {"n_OptionID": "330108", "e_OptionType": "MaxMP", "n_DefaultValue": "10", "f_LevelPerValue": "30", "f_BalanceConstant": "0.0015", "f_ExtraValue1": "0", "f_ExtraValue2": "0", "f_ExtraValue3": "0", "f_ExtraValue4": "0"}, {"n_OptionID": "330109", "e_OptionType": "M_DEF", "n_DefaultValue": "10", "f_LevelPerValue": "30", "f_BalanceConstant": "0.0015", "f_ExtraValue1": "0", "f_ExtraValue2": "0", "f_ExtraValue3": "0", "f_ExtraValue4": "0"}, {"n_OptionID": "340001", "e_OptionType": "Pet_Reinforce_Price", "n_DefaultValue": "10000", "f_LevelPerValue": "1", "f_BalanceConstant": "0.1", "f_ExtraValue1": "0", "f_ExtraValue2": "0", "f_ExtraValue3": "0", "f_ExtraValue4": "0"}, {"n_OptionID": "340002", "e_OptionType": "Pet_Reinforce_Price", "n_DefaultValue": "20000", "f_LevelPerValue": "2", "f_BalanceConstant": "0.2", "f_ExtraValue1": "0", "f_ExtraValue2": "0", "f_ExtraValue3": "0", "f_ExtraValue4": "0"}, {"n_OptionID": "340003", "e_OptionType": "Pet_Reinforce_Price", "n_DefaultValue": "30000", "f_LevelPerValue": "3", "f_BalanceConstant": "0.3", "f_ExtraValue1": "0", "f_ExtraValue2": "0", "f_ExtraValue3": "0", "f_ExtraValue4": "0"}]
|
||||||
|
|
@ -0,0 +1,128 @@
|
||||||
|
[
|
||||||
|
{
|
||||||
|
"n_OptionID": "330001",
|
||||||
|
"n_DefaultValue": "90",
|
||||||
|
"f_LevelPerValue": "1",
|
||||||
|
"f_BalanceConstant": "0"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"n_OptionID": "330002",
|
||||||
|
"n_DefaultValue": "90",
|
||||||
|
"f_LevelPerValue": "1",
|
||||||
|
"f_BalanceConstant": "0"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"n_OptionID": "330003",
|
||||||
|
"n_DefaultValue": "0",
|
||||||
|
"f_LevelPerValue": "20",
|
||||||
|
"f_BalanceConstant": "0.0015"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"n_OptionID": "330004",
|
||||||
|
"n_DefaultValue": "0",
|
||||||
|
"f_LevelPerValue": "20",
|
||||||
|
"f_BalanceConstant": "0.0015"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"n_OptionID": "330005",
|
||||||
|
"n_DefaultValue": "10",
|
||||||
|
"f_LevelPerValue": "20",
|
||||||
|
"f_BalanceConstant": "0.0015"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"n_OptionID": "330006",
|
||||||
|
"n_DefaultValue": "10",
|
||||||
|
"f_LevelPerValue": "20",
|
||||||
|
"f_BalanceConstant": "0.0015"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"n_OptionID": "330007",
|
||||||
|
"n_DefaultValue": "10",
|
||||||
|
"f_LevelPerValue": "20",
|
||||||
|
"f_BalanceConstant": "0.0015"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"n_OptionID": "330008",
|
||||||
|
"n_DefaultValue": "10",
|
||||||
|
"f_LevelPerValue": "20",
|
||||||
|
"f_BalanceConstant": "0.0015"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"n_OptionID": "330009",
|
||||||
|
"n_DefaultValue": "10",
|
||||||
|
"f_LevelPerValue": "20",
|
||||||
|
"f_BalanceConstant": "0.0015"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"n_OptionID": "330101",
|
||||||
|
"n_DefaultValue": "90",
|
||||||
|
"f_LevelPerValue": "2",
|
||||||
|
"f_BalanceConstant": "0"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"n_OptionID": "330102",
|
||||||
|
"n_DefaultValue": "90",
|
||||||
|
"f_LevelPerValue": "2",
|
||||||
|
"f_BalanceConstant": "0"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"n_OptionID": "330103",
|
||||||
|
"n_DefaultValue": "0",
|
||||||
|
"f_LevelPerValue": "30",
|
||||||
|
"f_BalanceConstant": "0.0015"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"n_OptionID": "330104",
|
||||||
|
"n_DefaultValue": "0",
|
||||||
|
"f_LevelPerValue": "30",
|
||||||
|
"f_BalanceConstant": "0.0015"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"n_OptionID": "330105",
|
||||||
|
"n_DefaultValue": "10",
|
||||||
|
"f_LevelPerValue": "30",
|
||||||
|
"f_BalanceConstant": "0.0015"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"n_OptionID": "330106",
|
||||||
|
"n_DefaultValue": "10",
|
||||||
|
"f_LevelPerValue": "30",
|
||||||
|
"f_BalanceConstant": "0.0015"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"n_OptionID": "330107",
|
||||||
|
"n_DefaultValue": "10",
|
||||||
|
"f_LevelPerValue": "30",
|
||||||
|
"f_BalanceConstant": "0.0015"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"n_OptionID": "330108",
|
||||||
|
"n_DefaultValue": "10",
|
||||||
|
"f_LevelPerValue": "30",
|
||||||
|
"f_BalanceConstant": "0.0015"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"n_OptionID": "330109",
|
||||||
|
"n_DefaultValue": "10",
|
||||||
|
"f_LevelPerValue": "30",
|
||||||
|
"f_BalanceConstant": "0.0015"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"n_OptionID": "340001",
|
||||||
|
"n_DefaultValue": "1",
|
||||||
|
"f_LevelPerValue": "1",
|
||||||
|
"f_BalanceConstant": "0.1"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"n_OptionID": "340002",
|
||||||
|
"n_DefaultValue": "2",
|
||||||
|
"f_LevelPerValue": "2",
|
||||||
|
"f_BalanceConstant": "0.2"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"n_OptionID": "340003",
|
||||||
|
"n_DefaultValue": "3",
|
||||||
|
"f_LevelPerValue": "3",
|
||||||
|
"f_BalanceConstant": "0.3"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
|
@ -0,0 +1,7 @@
|
||||||
|
fileFormatVersion: 2
|
||||||
|
guid: 715e0bc9f2810424a88f62385cead51e
|
||||||
|
TextScriptImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
||||||
|
|
@ -0,0 +1,138 @@
|
||||||
|
[
|
||||||
|
{
|
||||||
|
"n_PetID": "50001",
|
||||||
|
"n_PetGrade": "1"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"n_PetID": "50002",
|
||||||
|
"n_PetGrade": "1"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"n_PetID": "50003",
|
||||||
|
"n_PetGrade": "1"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"n_PetID": "50004",
|
||||||
|
"n_PetGrade": "1"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"n_PetID": "50005",
|
||||||
|
"n_PetGrade": "1"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"n_PetID": "50006",
|
||||||
|
"n_PetGrade": "1"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"n_PetID": "50007",
|
||||||
|
"n_PetGrade": "1"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"n_PetID": "50008",
|
||||||
|
"n_PetGrade": "1"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"n_PetID": "50009",
|
||||||
|
"n_PetGrade": "1"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"n_PetID": "50010",
|
||||||
|
"n_PetGrade": "2"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"n_PetID": "50011",
|
||||||
|
"n_PetGrade": "2"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"n_PetID": "50012",
|
||||||
|
"n_PetGrade": "2"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"n_PetID": "50013",
|
||||||
|
"n_PetGrade": "2"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"n_PetID": "50014",
|
||||||
|
"n_PetGrade": "2"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"n_PetID": "50015",
|
||||||
|
"n_PetGrade": "2"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"n_PetID": "50016",
|
||||||
|
"n_PetGrade": "2"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"n_PetID": "50017",
|
||||||
|
"n_PetGrade": "2"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"n_PetID": "50018",
|
||||||
|
"n_PetGrade": "2"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"n_PetID": "50019",
|
||||||
|
"n_PetGrade": "3"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"n_PetID": "50020",
|
||||||
|
"n_PetGrade": "3"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"n_PetID": "50021",
|
||||||
|
"n_PetGrade": "3"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"n_PetID": "50022",
|
||||||
|
"n_PetGrade": "3"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"n_PetID": "50023",
|
||||||
|
"n_PetGrade": "3"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"n_PetID": "50024",
|
||||||
|
"n_PetGrade": "3"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"n_PetID": "50025",
|
||||||
|
"n_PetGrade": "3"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"n_PetID": "50026",
|
||||||
|
"n_PetGrade": "3"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"n_PetID": "50027",
|
||||||
|
"n_PetGrade": "3"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"n_PetID": "50028",
|
||||||
|
"n_PetGrade": "4"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"n_PetID": "50029",
|
||||||
|
"n_PetGrade": "4"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"n_PetID": "50030",
|
||||||
|
"n_PetGrade": "4"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"n_PetID": "50031",
|
||||||
|
"n_PetGrade": "4"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"n_PetID": "50032",
|
||||||
|
"n_PetGrade": "4"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"n_PetID": "50033",
|
||||||
|
"n_PetGrade": "4"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"n_PetID": "50034",
|
||||||
|
"n_PetGrade": "4"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
|
@ -0,0 +1,7 @@
|
||||||
|
fileFormatVersion: 2
|
||||||
|
guid: 798ebb315e28fe64eb457ae638b63e46
|
||||||
|
TextScriptImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
||||||
Binary file not shown.
|
|
@ -12,7 +12,7 @@ MonoBehaviour:
|
||||||
m_Script: {fileID: 11500000, guid: 093286084a3d1994a9c28281a1c38b1d, type: 3}
|
m_Script: {fileID: 11500000, guid: 093286084a3d1994a9c28281a1c38b1d, type: 3}
|
||||||
m_Name: PlayFabSharedSettings
|
m_Name: PlayFabSharedSettings
|
||||||
m_EditorClassIdentifier:
|
m_EditorClassIdentifier:
|
||||||
TitleId: CD90A
|
TitleId: D1149
|
||||||
DeveloperSecretKey: WH5F5UFQ9YRS538YJJHQCFIUEZTF5JSD36IJQKZ3Z99G7WDNES
|
DeveloperSecretKey: WH5F5UFQ9YRS538YJJHQCFIUEZTF5JSD36IJQKZ3Z99G7WDNES
|
||||||
ProductionEnvironmentUrl:
|
ProductionEnvironmentUrl:
|
||||||
RequestType: 2
|
RequestType: 2
|
||||||
|
|
|
||||||
|
|
@ -2981,4 +2981,8 @@ public class SC_PetGachaResult
|
||||||
public DateTime adtime;
|
public DateTime adtime;
|
||||||
public List<int> pets;
|
public List<int> pets;
|
||||||
}
|
}
|
||||||
|
public class SC_PetLvUpResult
|
||||||
|
{
|
||||||
|
public int usemat, usepet;
|
||||||
|
}
|
||||||
#endregion
|
#endregion
|
||||||
|
|
@ -1753,6 +1753,43 @@ public class ServerInfo : MyCoroutine
|
||||||
Set_Coroutine(() => { Save_Pet_Gacha(isad, amount, _act); }, 2f);
|
Set_Coroutine(() => { Save_Pet_Gacha(isad, amount, _act); }, 2f);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
public void Save_Pet_LvUp(int petid, Action<SC_PetLvUpResult> _act)
|
||||||
|
{
|
||||||
|
NetWait.Ins.Set(true);
|
||||||
|
PlayFabClientAPI.ExecuteCloudScript(new ExecuteCloudScriptRequest
|
||||||
|
{
|
||||||
|
FunctionName = MethodBase.GetCurrentMethod().Name,
|
||||||
|
GeneratePlayStreamEvent = true,
|
||||||
|
FunctionParameter = new
|
||||||
|
{
|
||||||
|
Token = m_LoginInfo.EntityToken.EntityToken,
|
||||||
|
PetID = petid,
|
||||||
|
}
|
||||||
|
},
|
||||||
|
result =>
|
||||||
|
{
|
||||||
|
if (result.Error == null)
|
||||||
|
{
|
||||||
|
NetWait.Ins.Set(false);
|
||||||
|
var str_result = result.FunctionResult.ToString();
|
||||||
|
var error = MyErrorCheck(str_result);
|
||||||
|
// (0 성공, 1 실패 (재화 부족), 2 실패 (펫 부족), 3 실패 (없는 펫))
|
||||||
|
switch (error)
|
||||||
|
{
|
||||||
|
case 0: _act?.Invoke(JsonConvert.DeserializeObject<SC_PetLvUpResult>(str_result)); break;
|
||||||
|
case 1: ToastUI.Ins.Set(388); break;
|
||||||
|
case 2: ToastUI.Ins.Set(999900027); break;
|
||||||
|
case 3: ToastUI.Ins.Set(999900014); break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
else
|
||||||
|
Set_Coroutine(() => { Save_Pet_LvUp(petid, _act); }, 2f);
|
||||||
|
},
|
||||||
|
fail =>
|
||||||
|
{
|
||||||
|
Set_Coroutine(() => { Save_Pet_LvUp(petid, _act); }, 2f);
|
||||||
|
});
|
||||||
|
}
|
||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
#region 우편
|
#region 우편
|
||||||
|
|
|
||||||
|
|
@ -10,6 +10,6 @@ public class PetUI : BotMenuBase
|
||||||
base.Set();
|
base.Set();
|
||||||
m_PetUI_Right.Set(); // left 포함
|
m_PetUI_Right.Set(); // left 포함
|
||||||
|
|
||||||
Set_Money(1, 441);
|
Set_Money(table_GlobalValue.Ins.Get_Int("n_CashItemID"), table_GlobalValue.Ins.Get_Int("n_PetReinforceMaterialID"));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -101,23 +101,24 @@ public class PetUI_Right : uScrollViewMgr
|
||||||
{
|
{
|
||||||
if (CanReinforce(true))
|
if (CanReinforce(true))
|
||||||
{
|
{
|
||||||
var sdata = ServerInfo.Ins.m_ServerData;
|
|
||||||
var petData = Get_SelectPetData();
|
var petData = Get_SelectPetData();
|
||||||
var lv = sdata.Get_PetLv(petData.n_PetID);
|
ServerInfo.Ins.Save_Pet_LvUp(petData.n_PetID, result =>
|
||||||
var Tdata = table_petupgrade.Ins.Get_Data_orNull(lv);
|
{
|
||||||
var matID = table_GlobalValue.Ins.Get_Int("n_PetReinforceMaterialID");
|
var sdata = ServerInfo.Ins.m_ServerData;
|
||||||
|
var matID = table_GlobalValue.Ins.Get_Int("n_PetReinforceMaterialID");
|
||||||
|
|
||||||
sdata.Use_Item(petData.n_PetID, Tdata.Get_PetCost(petData.n_PetGrade));
|
sdata.Use_Item(petData.n_PetID, result.usepet);
|
||||||
sdata.Use_Item(matID, Tdata.Get_Price(petData.n_PetGrade, lv));
|
sdata.Use_Item(matID, result.usemat);
|
||||||
sdata.Add_PetLv(petData.n_PetID);
|
sdata.Add_PetLv(petData.n_PetID);
|
||||||
|
|
||||||
sdata.Add_MissionCount(ePurpose.PET_UPGRADE_ACC);
|
sdata.Add_MissionCount(ePurpose.PET_UPGRADE_ACC);
|
||||||
sdata.Add_MissionCount(ePurpose.PET_UPGRADE_ALL);
|
sdata.Add_MissionCount(ePurpose.PET_UPGRADE_ALL);
|
||||||
|
|
||||||
// 왼쪽 정보 설정
|
// 왼쪽 정보 설정
|
||||||
m_PetUI_Left.Set(Get_SelectPetData());
|
m_PetUI_Left.Set(Get_SelectPetData());
|
||||||
// 오른쪽 정보 설정
|
// 오른쪽 정보 설정
|
||||||
Set_UI();
|
Set_UI();
|
||||||
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue