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

Reactor with one rod only radiating from the bottom #102

Open
arnoudvanderleer opened this issue Sep 16, 2024 · 0 comments
Open

Reactor with one rod only radiating from the bottom #102

arnoudvanderleer opened this issue Sep 16, 2024 · 0 comments
Assignees
Labels
1.18 1.19 1.20 bug Something isn't working Priority: High This needs to be done as soon as possible.

Comments

@arnoudvanderleer
Copy link

currentRod++;
if (currentRod >= controlRods.length) {
currentRod = 0;
rodOffset++;
}
int yLevel = currentRod % y;
int currentRod = this.currentRod + rodOffset;
currentRod %= controlRods.length;

yLevel does not use the offset and only uses the currentRod, which means that only the first controlRods.length y-levels can be the source of radiation; if you have 3 rods and the reactor has a height of 2, that means that two thirds of the time, radiation originates from the first level.

@arnoudvanderleer arnoudvanderleer changed the title 1-rod reactor only radiating from the bottom Reactor with one rod only radiating from the bottom Sep 19, 2024
@RogueLogix RogueLogix added bug Something isn't working 1.18 1.19 Priority: High This needs to be done as soon as possible. 1.20 labels Oct 6, 2024
@RogueLogix RogueLogix self-assigned this Oct 7, 2024
RogueLogix added a commit that referenced this issue Nov 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
1.18 1.19 1.20 bug Something isn't working Priority: High This needs to be done as soon as possible.
Projects
None yet
Development

No branches or pull requests

2 participants