Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Computer.portsNeededForCrack seems to be one less than the actual game value #149

Closed
PrincessRTFM opened this issue Jan 16, 2022 · 2 comments

Comments

@PrincessRTFM
Copy link

When reading the number of ports that need to be open to PortHack a computer, the returned value seems to be one less than the actual value. On the player's computer, probe shows that four ports are needed, but os.thisComputer.portsNeededForCrack returns 3, for example:

2022-01-16 18 06 44 - Hacknet

@SoundOfScooting
Copy link
Contributor

SoundOfScooting commented Jan 16, 2022

This is how the base game was designed. It correctly uses the value by adding/subtracting 1 when needed.

@PrincessRTFM
Copy link
Author

That's absolutely terrible, but I guess I'll just have to do the same thing in my plugin.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants