duu
This commit is contained in:
parent
88f618cadf
commit
8f9f5b5100
108 changed files with 2139 additions and 1500 deletions
|
|
@ -21,14 +21,6 @@ function lineageSignedPercentText(value = 0) {
|
|||
return `${n >= 0 ? "+" : ""}${n}%`;
|
||||
}
|
||||
|
||||
function lineageFightRateText(n) {
|
||||
const entity = n?.id ? world.tarinai.find(t => (t.familyKey || t.id) === n.id) : null;
|
||||
const wins = Number(entity?.totalFightWins ?? n?.totalFightWins ?? 0) || 0;
|
||||
const losses = Number(entity?.totalFightLosses ?? n?.totalFightLosses ?? 0) || 0;
|
||||
const total = wins + losses;
|
||||
if (!total) return "--";
|
||||
return `${Math.round((wins / total) * 100)}%/${total}`;
|
||||
}
|
||||
|
||||
function lineageTreeNodeHtml(n, x, y) {
|
||||
const entity = n?.id ? world.tarinai.find(t => (t.familyKey || t.id) === n.id) : null;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue