MISC: Add formulas API for calculating share power and move UI of sharing RAM (#2126)

This commit is contained in:
catloversg
2025-05-11 09:14:15 +07:00
committed by GitHub
parent 22ee7fca2c
commit 849bcb2601
12 changed files with 77 additions and 23 deletions
+4 -3
View File
@@ -55,9 +55,10 @@ export function ShareOption({ rerender }: { rerender: () => void }): React.React
return (
<Paper sx={{ my: 1, p: 1 }}>
<Typography>
You can share free RAM of your home computer with your faction to get a bonus multiplier for reputation gain.
Each time you share your free RAM, you get a boost for {ShareBonusTime / 1000} seconds. You can share free RAM
of other servers that you have admin rights by using ns.share() API.
You can share free RAM of your home computer with your factions to get a bonus multiplier for reputation gain.
Each time you share your free RAM, you get a boost for {ShareBonusTime / 1000} seconds. After that, you lose the
boost and get back your shared RAM. You can share free RAM of other servers that you have admin rights on by
using the ns.share() API.
<br />
Free RAM on home computer: {formatRam(home.maxRam - home.ramUsed)}.
<br />