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

Add screen to generate child behavior values #4

Open
kabili207 opened this issue Jan 8, 2019 · 3 comments
Open

Add screen to generate child behavior values #4

kabili207 opened this issue Jan 8, 2019 · 3 comments

Comments

@kabili207
Copy link
Owner

The value of the child's behavior is based on a counter. We should create a screen that allows users to choose the answers to the questions that Blossom asks and calculate the value for the user.

https://wiki.zeldahacking.net/oracle/Bipin_and_Blossom's_son

@kabili207
Copy link
Owner Author

@Drenn1 I found your disassembly tried to work my way through the calculation of the initial value for the child's behavior (see here), but I'm not very good with assembly. Does this logic look correct to you?

byte CalculateInitialValue(string name)
{
    int value = 0;

    foreach(int a in name)
    {
        value += (a & 0xF);
    }

    do { value -= 3; } while (value > -1);
    return (byte)(value + 4);
}

@Stewmath
Copy link
Contributor

Stewmath commented Jan 9, 2019

Yeah, it looks correct.

@kabili207
Copy link
Owner Author

Awesome, thank you!

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

No branches or pull requests

2 participants