Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

I think there is something wrong with CountOwnedPresentAndLimboed method ? #1377

Open
5 tasks done
Artizy2333 opened this issue Sep 11, 2024 · 0 comments
Open
5 tasks done
Labels
Phobos bug Something isn't working properly

Comments

@Artizy2333
Copy link

Description

When I was reading the source code, I found that limbo units seem to be counted in the quantity of the house that they belong to when they are delivered with the {RegisterGain} method, and when the program reads the {CountOwnedPresentAndLimboed }method, an additional count of limbo unit quantity is added. Causing discrepancies with actual quantities?

I added a debug and attempted to print the quantity of my limbo building by using CountOwnedPresentAndLimboed(all of this type of the building is limbo building),it gave twice as much as the actual quantity,however, CountOwnedAndPresent gave the correct one.....

Phobos Version

b43

Conditions to reproduce

No response

INI code

No response

Steps to reproduce

1.nope
2.nope
3.
...

Expected behaviour

CountOwnedPresentAndLimboed can get corret quantity of the type

Actual behaviour

CountOwnedPresentAndLimboed now = limbo + limbo +actual

Additional context

No response

Checklist

  • The issue happens on the latest official version of Phobos and wasn't fixed yet.
  • I agree to elaborate the details if requested and provide thorough testing if the bugfix is implemented.
  • I added a very descriptive title to this issue.
  • I used the GitHub search and read the issue list to find a similar issue and didn't find it.
  • I have attached as much information as possible (screenshots, gifs, videos, debug and exception logs, etc).
@Artizy2333 Artizy2333 added the Phobos bug Something isn't working properly label Sep 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Phobos bug Something isn't working properly
Projects
None yet
Development

No branches or pull requests

1 participant