Closed XenoAmess closed 1 year ago
you should change config.nextRoom.maxRooms to be like max(8 (default), Game.gcl.level / 1.5) or something like this
What you said is reasonable, but you would see there already be existed codes in nextroomers, means max(config.nextRoom.maxRooms, Game.gcl.level)
Which is the only place where we call this function in the codes.
@mschultheiss83 please reply and re-review, thanks.
if you have 2 or more nextroomer in 2 different rooms the following line ensures that the first nextroomer wins
if (Memory.myRooms.length >= Game.gcl.level) {
looks good to me, but we should change the config.js
maxRooms: Math.max(8, Game.gcl.level),
nope as the config will only run once, would never recalculate when you upgrade gcl level.
if you have 2 or more nextroomer in 2 different rooms the following line ensures that the first nextroomer wins
if (Memory.myRooms.length >= Game.gcl.level) {
yes, it already have such limits. so I don't think we need to add another.
nope as the config will only run once, would never recalculate when you upgrade gcl level.
we could update it in brain.prepareMemory
yes, it already have such limits. so I don't think we need to add another. it for after respawn like me GCL 28 but like 6 rooms so maxRooms should be near you GCL. i have faced some memory issues when i had more than 20 rooms so i added
config.nextRoom.maxRooms = Math.max(8, Game.gcl.level / 1.5);
to thebrain.prepareMemory
function
yes, it already have such limits. so I don't think we need to add another. it for after respawn like me GCL 28 but like 6 rooms so maxRooms should be near you GCL. i have faced some memory issues when i had more than 20 rooms so i added
config.nextRoom.maxRooms = Math.max(8, Game.gcl.level / 1.5);
to thebrain.prepareMemory
function
@mschultheiss83 I understood what you wanna. please have a look at the latest version, I added a dynamic config stage machenism, and IMO it can do.
@dependabot use this milestone
This pull request was merged by worlddriven.
@TooAngel I cannot say there be 0 possibility that it be a bug, but I really think it possibly be a hacking-attack to this repo.
please review as soon as possible, thanks.
only when Memory.myRooms.length < 0 can we claim new room, yep a negative array!