This commit is contained in:
Putoo
2026-07-07 08:38:26 +08:00
parent 63d56b245e
commit 49ac29c50a
18 changed files with 525 additions and 39 deletions

View File

@@ -48,42 +48,42 @@ public class EquTool
return onAttr;
}
int result = onLev * 3;
result = result > 57 ? 57 : result;
int result = onLev;
result = result > 19 ? 19 : result;
if (onLev > 19)
{
int addLev = onLev - 19;
addLev = addLev > 10 ? 10 : addLev;
result += addLev * 5;
result += addLev * 3;
}
if (onLev > 29)
{
int addLev = onLev - 29;
addLev = addLev > 10 ? 10 : addLev;
result += addLev * 10;
result += addLev * 5;
}
if (onLev > 39)
{
int addLev = onLev - 39;
addLev = addLev > 10 ? 10 : addLev;
result += addLev * 15;
result += addLev * 10;
}
if (onLev > 49)
{
int addLev = onLev - 49;
addLev = addLev > 10 ? 10 : addLev;
result += addLev * 20;
result += addLev * 15;
}
if (onLev > 59)
{
int addLev = onLev - 59;
addLev = addLev > 10 ? 10 : addLev;
result += addLev * 25;
result += addLev * 20;
}
if (onLev > 69)
@@ -91,7 +91,7 @@ public class EquTool
int addLev = onLev - 69;
addLev = addLev > 10 ? 10 : addLev;
int unitAdd = Convert.ToInt32(onAttr * 0.05);
unitAdd = unitAdd < 30 ? 30 : unitAdd;
unitAdd = unitAdd < 25 ? 25 : unitAdd;
result += addLev * unitAdd;
}
@@ -100,7 +100,7 @@ public class EquTool
int addLev = onLev - 79;
addLev = addLev > 10 ? 10 : addLev;
int unitAdd = Convert.ToInt32(onAttr * 0.1);
unitAdd = unitAdd < 35 ? 35 : unitAdd;
unitAdd = unitAdd < 30 ? 30 : unitAdd;
result += addLev * unitAdd;
}
@@ -109,7 +109,7 @@ public class EquTool
int addLev = onLev - 89;
addLev = addLev > 10 ? 10 : addLev;
int unitAdd = Convert.ToInt32(onAttr * 0.15);
unitAdd = unitAdd < 40 ? 40 : unitAdd;
unitAdd = unitAdd < 35 ? 35 : unitAdd;
result += addLev * unitAdd;
}