mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2024-12-22 14:12:27 +01:00
add purchasedPlayer to RFA server data (#1103)
This commit is contained in:
parent
9b483bdd8a
commit
aba2336093
@ -40,7 +40,7 @@ export interface FileServer {
|
||||
server: string;
|
||||
}
|
||||
|
||||
export type RFAServerData = Pick<BaseServer, "hostname" | "hasAdminRights">;
|
||||
export type RFAServerData = Pick<BaseServer, "hostname" | "hasAdminRights" | "purchasedByPlayer">;
|
||||
|
||||
export function isFileData(p: unknown): p is FileData {
|
||||
const pf = p as FileData;
|
||||
|
@ -113,9 +113,10 @@ export const RFARequestHandler: Record<string, (message: RFAMessage) => void | R
|
||||
},
|
||||
|
||||
getAllServers: function (msg: RFAMessage): RFAMessage {
|
||||
const servers = GetAllServers().map(({ hostname, hasAdminRights }) => ({
|
||||
const servers = GetAllServers().map(({ hostname, hasAdminRights, purchasedByPlayer }) => ({
|
||||
hostname,
|
||||
hasAdminRights,
|
||||
purchasedByPlayer,
|
||||
}));
|
||||
|
||||
return new RFAMessage({ result: servers, id: msg.id });
|
||||
|
Loading…
Reference in New Issue
Block a user