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

fix: Secondary Pointers. HuntMode Packing. #227

Merged
merged 6 commits into from
Nov 28, 2023

Conversation

ultraviolet-jordan
Copy link
Collaborator

…xes.

@@ -208,8 +209,56 @@ export function parseNpcConfig(key: string, value: string): ConfigValue | null |
return null;
}
} else if (key === 'huntmode') {
// TODO
return value;
switch (value) {
Copy link
Contributor

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) {
Copy link
Contributor

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)

@Pazaz Pazaz merged commit bdd3fde into 2004Scape:main Nov 28, 2023
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants