Can IAccountCheats accpects value types other than boolean? (number maybe) #2727

Closed
opened 2025-08-30 00:46:28 -07:00 by AlexisinGit · 1 comment
Contributor

I'm coding for some nemesis cheats. e.g. nemesisHintProgressMultiplier?: number

While I'm adding properties to IAccountCheats, setAccountCheatController reports an error.

Type 'boolean' is not assignable to type 'undefined'.ts(2322)

Correct me if i'm wrong. This interface requires all value type of IAccountCheats to be boolean.

interface ISetAccountCheatRequest {
    key: keyof IAccountCheats;
    value: boolean;
}

In this case I have to put my cheats in configService, which will made them server-wide cheats, and I don't think that would be appropriate.

In fact, from a coding aspect of view, any cheats property that is used inside a function accepting inventory data could be a account-wide cheat. (e.g. nightwaveStandingMultiplier in inventoryService.addCallenges)

So what determines if a cheat is account or server-wide? Or else we could change ISetAccountCheatRequest, make it accepting other types of value.

I'm coding for some nemesis cheats. e.g. nemesisHintProgressMultiplier?: number While I'm adding properties to IAccountCheats, setAccountCheatController reports an error. ``` Type 'boolean' is not assignable to type 'undefined'.ts(2322) ``` Correct me if i'm wrong. This interface requires all value type of IAccountCheats to be boolean. ``` interface ISetAccountCheatRequest { key: keyof IAccountCheats; value: boolean; } ``` In this case I have to put my cheats in configService, which will made them server-wide cheats, and I don't think that would be appropriate. In fact, from a coding aspect of view, any cheats property that is used inside a function accepting inventory data could be a account-wide cheat. (e.g. nightwaveStandingMultiplier in inventoryService.addCallenges) So what determines if a cheat is account or server-wide? Or else we could change ISetAccountCheatRequest, make it accepting other types of value.
Owner

This isn't coding support, just update the types

This isn't coding support, just update the types
Sign in to join this conversation.
No description provided.