Users browsing this thread: 1 Guest(s)
Desperation Attacks

#3
Posts: 3,971
Threads: 279
Thanks Received: 238
Thanks Given: 58
Joined: Oct 2011
Reputation: 65
Status
Tissue-aware
(05-01-2012, 07:00 PM)Roseheart Wrote: So I was wondering, would there be any way to change the odds/chance of performing a Desperation Attack so that they happen more frequently?

Original code:
Code:
C2/15E9: 20 5A 4B     JSR $4B5A   (Random number 0 to 255)
C2/15EC: 29 0F        AND #$0F    (0 to 15)
C2/15EE: D0 20        BNE $1610   (1 in 16 chance for DA)

Beside Gi Nattak solution, for simply increasing the odds, you could do a AND #$1F instead of the AND #$0F that is there . This would double your chances (12.5% instead of 6.25%).
  Find
Quote  



Messages In This Thread
Desperation Attacks - by Roseheart - 05-01-2012, 07:00 PM
RE: Desperation Attacks - by Gi Nattak - 05-02-2012, 12:37 PM
RE: Desperation Attacks - by madsiur - 05-02-2012, 01:17 PM

Forum Jump:

Users browsing this thread: 1 Guest(s)


Theme by Madsiur2017Custom Graphics by JamesWhite