mirror of
https://github.com/EpinelPS/EpinelPS.git
synced 2025-12-13 23:44:45 +01:00
should be +1, not -1
This commit is contained in:
@@ -41,7 +41,7 @@ namespace EpinelPS.LobbyServer.Inventory
|
|||||||
Value = user.GetCurrencyVal(CurrencyType.Gold) - MathUtils.Clamp(goldCost, 0, CalcTotalExp(destItem))
|
Value = user.GetCurrencyVal(CurrencyType.Gold) - MathUtils.Clamp(goldCost, 0, CalcTotalExp(destItem))
|
||||||
};
|
};
|
||||||
|
|
||||||
// TODO
|
// TODO: need reward handling function first
|
||||||
if (modules > 0)
|
if (modules > 0)
|
||||||
{
|
{
|
||||||
(int t1, int t2, int t3) = CalcModules(modules);
|
(int t1, int t2, int t3) = CalcModules(modules);
|
||||||
@@ -105,13 +105,13 @@ namespace EpinelPS.LobbyServer.Inventory
|
|||||||
|
|
||||||
while (destItem.Level < maxLevel[destEquipRecord.grade_core_id - 1] && destItem.Exp >= expNextTable[destItem.Level + 1] && destItem.Level < maxLevel[destEquipRecord.grade_core_id - 1])
|
while (destItem.Level < maxLevel[destEquipRecord.grade_core_id - 1] && destItem.Exp >= expNextTable[destItem.Level + 1] && destItem.Level < maxLevel[destEquipRecord.grade_core_id - 1])
|
||||||
{
|
{
|
||||||
destItem.Exp -= expNextTable[destItem.Level - 1];
|
destItem.Exp -= expNextTable[destItem.Level + 1];
|
||||||
destItem.Level++;
|
destItem.Level++;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (destItem.Level >= maxLevel[destEquipRecord.grade_core_id - 1])
|
if (destItem.Level >= maxLevel[destEquipRecord.grade_core_id - 1])
|
||||||
{
|
{
|
||||||
modules = destItem.Exp; // is the ratio actually 1:1?
|
modules = destItem.Exp; // TODO: check this. is the ratio actually 1:1?
|
||||||
destItem.Exp = 0;
|
destItem.Exp = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user