미션 카운팅

This commit is contained in:
Ino 2025-07-03 09:21:28 +09:00
parent 6216927b56
commit 6e7d0ebc39
1 changed files with 5 additions and 3 deletions

View File

@ -946,9 +946,9 @@ handlers.Save_PC_LimitSlotOptionChange = function(args)
var matdata = global.find(f => f.s_ID == "n_BreakingLimitSlotMaterialID"); var matdata = global.find(f => f.s_ID == "n_BreakingLimitSlotMaterialID");
if (!matdata) return Get_Return(3); // 설정 누락 if (!matdata) return Get_Return(3); // 설정 누락
var table = Get_MissionTable();
var price = 10 * ((1 + LockCount) * LockCount / 2 + 1); var price = 10 * ((1 + LockCount) * LockCount / 2 + 1);
if (Use_Item(Get_MissionTable(), urod, matdata.n_Value, price)) if (Use_Item(table, urod, matdata.n_Value, price))
//if (Use_Item(Get_MissionTable(), urod, 1, 0))
{ {
var rtnAdd = []; // [{ slot, randombagid, optionlv }] var rtnAdd = []; // [{ slot, randombagid, optionlv }]
// 슬롯만큼 for문 돌리기 // 슬롯만큼 for문 돌리기
@ -978,6 +978,8 @@ handlers.Save_PC_LimitSlotOptionChange = function(args)
} }
//log.info(rtnAdd); //log.info(rtnAdd);
Add_MissionCount(table, urod, "HERO_OPTION_CHANGE", 0, OpenSlots.length, false);
Add_MissionCount(table, urod, "HERO_OPTION_CHANGE_ACC", 0, OpenSlots.length, false);
Set_JsonUserData(urod); Set_JsonUserData(urod);
return Get_Return(0, rtnAdd); return Get_Return(0, rtnAdd);
} }