-
Notifications
You must be signed in to change notification settings - Fork 81
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
fix: Secondary Pointers. HuntMode Packing. #227
Conversation
@@ -208,8 +209,56 @@ export function parseNpcConfig(key: string, value: string): ConfigValue | null | | |||
return null; | |||
} | |||
} else if (key === 'huntmode') { | |||
// TODO | |||
return value; | |||
switch (value) { |
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.
This should be PACKFILE.get('hunt')!.indexOf(value)
and return null if it's -1
throw new Error('unimplemented'); | ||
const mode = state.popInt(); | ||
|
||
if (mode === -1 || mode > HuntMode.BIGMONSTER_MELEE) { |
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.
Meant to include this in the review. Hunt lookups should go to the HuntType, and if the compiler needs to be aware of it then we just have to generate hunt.tsv values for the compiler (if it's not already)
…xes.