-
Notifications
You must be signed in to change notification settings - Fork 114
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
Add vault generation details to seed catalog #729
base: release
Are you sure you want to change the base?
Add vault generation details to seed catalog #729
Conversation
caeef50
to
7fd1e3b
Compare
895f662
to
4bd4409
Compare
4bd4409
to
926c42d
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thanks, seems good, i'd mainly like some docs describing the architecture of the feature
idle thought: damn there's so much boilerplate with linked lists, i wonder if we should move towards reallocing arrays..
@@ -14,7 +14,7 @@ boolean serverMode = false; | |||
boolean nonInteractivePlayback = false; | |||
boolean hasGraphics = false; | |||
enum graphicsModes graphicsMode = TEXT_GRAPHICS; | |||
boolean isCsvFormat = false; | |||
boolean isCsvFormat, includeVaults = false; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I believe this leaves isCsvFormat undefined - please change to
boolean isCsvFormat, includeVaults = false; | |
boolean isCsvFormat = false; | |
boolean includeVaults = false; |
@@ -1392,6 +1392,15 @@ typedef struct keyLocationProfile { | |||
boolean disposableHere; | |||
} keyLocationProfile; | |||
|
|||
typedef struct machineInfo { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
request: could you add some comments describing what this type represents? e.g. what a child machine is?
void addMachineInfoToChain(machineInfo *theInfo, machineInfo *theChain) { | ||
theInfo->nextMachineInfo = theChain->nextMachineInfo; | ||
theChain->nextMachineInfo = theInfo; | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
am i right that this seems to add to the second list position? why's that?
return prev; | ||
} | ||
|
||
void addMachineInfoAndChainToChain(machineInfo *theInfo, machineInfo *theChain) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
request: This name was not obvious to me at first, could it be improved?
an idea:
void addMachineInfoAndChainToChain(machineInfo *theInfo, machineInfo *theChain) { | |
void concatMachineInfoChainOntoChain(machineInfo *theInfo, machineInfo *theChain) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
or maybe something involving the word "prepend"
short originX, short originY, | ||
unsigned long requiredMachineFlags, | ||
item *adoptiveItem, | ||
item *parentSpawnedItems[MACHINES_BUFFER_LENGTH], | ||
creature *parentSpawnedMonsters[MACHINES_BUFFER_LENGTH]) { | ||
creature *parentSpawnedMonsters[MACHINES_BUFFER_LENGTH], | ||
machineInfo *thisMachineInfoChain) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can you document what this new parameter does?
free(levelMachineInfo); | ||
|
||
if (firstRealNode != NULL) { | ||
machineInfo *reversed = reverseAllMachineInfo(firstRealNode); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why does the chain need reversing? why is the chain order important? if it is, can you document it in the docs for the struct?
Adds vault generation detail to seed catalog. Information is generally interesting and I use it for vault frequency analysis when trying to balance vault generation probabilities.
Invoked as:
Typical output is as follows: