Users browsing this thread: 1 Guest(s)
Stamina Questions
Logically if greater stamina means greater avoiding chance, for 32 stamina the attack will be avoid if random number is below 32. It should be a BMI instruction that branch if Accumulator compared to (CMP) #$32 < 0 (if A minus #$32 is below 0, Negative flag of CPU is set, which is what BMI look at). Anything after my first sentence is really extra info..
Edit: The call for the stamina check is at C2/22B0. Actually I was wrong, it does a BCC (branch if carry flag is not set) because A CMP value will set the carry flag if below 0. So the function check if stamina doesn't block the attack, if value > stamina. There are other things related to stamina in bank $C2, make a search for the word. Monster also have a max stamina of 40.
Edit: The call for the stamina check is at C2/22B0. Actually I was wrong, it does a BCC (branch if carry flag is not set) because A CMP value will set the carry flag if below 0. So the function check if stamina doesn't block the attack, if value > stamina. There are other things related to stamina in bank $C2, make a search for the word. Monster also have a max stamina of 40.
« Next Oldest | Next Newest »
|
||||
Users browsing this thread: 1 Guest(s)