Users browsing this thread: 1 Guest(s)
Stamina Questions

#3
Posts: 3,970
Threads: 279
Thanks Received: 236
Thanks Given: 58
Joined: Oct 2011
Reputation: 65
Status
Tissue-aware
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.
  Find
Quote  



Messages In This Thread
Stamina Questions - by Timbo - 04-17-2017, 01:17 AM
RE: Stamina Questions - by BTB - 04-17-2017, 01:30 AM
RE: Stamina Questions - by madsiur - 04-17-2017, 02:20 AM
RE: Stamina Questions - by Tenkarider - 04-17-2017, 02:20 PM
RE: Stamina Questions - by BTB - 04-17-2017, 02:52 PM
RE: Stamina Questions - by Timbo - 04-17-2017, 02:40 PM

Forum Jump:

Users browsing this thread: 1 Guest(s)


Theme by Madsiur2017Custom Graphics by JamesWhite