Skip to content

Commit

Permalink
Show some more networth types in live networth.
Browse files Browse the repository at this point in the history
  • Loading branch information
DeKleineKobini committed Feb 26, 2025
1 parent 8332234 commit 7a34394
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
3 changes: 2 additions & 1 deletion extension/changelog.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@
{ "message": "Migrate attacks over to API V2.", "contributor": "DeKleineKobini" },
{ "message": "Migrate faction stakeouts over to API V2.", "contributor": "DeKleineKobini" },
{ "message": "Migrate faction last action over to API V2.", "contributor": "DeKleineKobini" },
{ "message": "Make icons in the popup clickable to open their corresponding pages.", "contributor": "Hashibee" }
{ "message": "Make icons in the popup clickable to open their corresponding pages.", "contributor": "Hashibee" },
{ "message": "Show some more networth types in live networth.", "contributor": "DeKleineKobini" }
],
"removed": []
}
Expand Down
8 changes: 8 additions & 0 deletions extension/scripts/features/live-networth/ttLiveNetworth.js
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,11 @@
"Bookie",
"Auction House",
"Cayman",
"Properties",
"Enlisted Cars",
"Item Market",
"Loan",
"Vault",
"Total",
];
}
Expand All @@ -124,6 +129,9 @@
nameStats = "pending";
} else if (type === "Cayman") nameStats = "overseas_bank";
else if (type === "Items") nameStats = "inventory";
else if (type === "Properties") nameStats = "property";
else if (type === "Loan") nameStats = "loans";
else if (type === "Vault") nameStats = "vaults";

if (type.includes("Cash")) {
current = userdata.networth.wallet + userdata.networth.vault;
Expand Down

0 comments on commit 7a34394

Please sign in to comment.