Skip to content

Commit

Permalink
Clean up Spectrolus color cycling code
Browse files Browse the repository at this point in the history
  • Loading branch information
TheRealWormbo committed Dec 31, 2024
1 parent 11e1d0d commit a31b12f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ public void tickFlower() {

private void addManaAndCycle(int toAdd) {
addMana(toAdd);
nextColor = nextColor == DyeColor.BLACK ? DyeColor.WHITE : DyeColor.values()[nextColor.ordinal() + 1];
nextColor = nextColor == DyeColor.BLACK ? DyeColor.WHITE : DyeColor.byId(nextColor.getId() + 1);
sync();
}

Expand Down
1 change: 1 addition & 0 deletions doc/1.21-notes.md
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,7 @@
* Finer control of burst targeting and firing. For example allowing phantom bursts to pass through full spreaders/pools
* Mana splitter that shoots bursts (though nerf to not renew burst lifespan lol)
* (This would be a big change with lots of consequences; Requires thorough discussion and testing) Consider tweaking the requirements for spreaders firing. For example, completely ignore fired bursts and fire at a fixed interval. Or maybe allow three bursts in flight at the same time.
* Expected order of colors for Spectrolus depends on world seed

### Development period
I think for 1.21 i want to have a somewhat long beta period while we get everything in order and do all the breaking changes we want to do (as you can see there are a lot planned). Also to get community feedback on the more invasive changes.

0 comments on commit a31b12f

Please sign in to comment.