Users browsing this thread: 1 Guest(s)
Edit GP Rain damage

#4
Posts: 51
Threads: 5
Thanks Received: 2
Thanks Given: 0
Joined: Apr 2018
Reputation: 8
Status
Shell
There's one other relevant bit. The code Madsiur posted has
Code:
BNE $3FE9   (branch if there was actually some GP to throw)

Here's the code that jumps to:

Code:
C2/3FE9: A2 02        LDX #$02
C2/3FEB: 86 E8        STX $E8
C2/3FED: 20 B7 47     JSR $47B7      (24-bit $E8 = A * 2)
C2/3FF0: A5 E8        LDA $E8        (A = gold to consume * 2)
C2/3FF2: AE C9 3E     LDX $3EC9      (Number of targets)
C2/3FF5: 20 92 47     JSR $4792      (A / number of targets)
C2/3FF8: 8D B0 11     STA $11B0      (Sets maximum damage)
C2/3FFB: 60           RTS

GP Rain does a total 2 damage per GP thrown, divided equally among the targets. If you want to change the 2x multiplier instead of/in addition to the cost, C2/3FE9 is the place to do it.
  Find
Quote  
[-] The following 2 users say Thank You to Subtraction for this post:
  • C-Dude (01-02-2020), doofenH (01-02-2020)



Messages In This Thread
Edit GP Rain damage - by doofenH - 01-01-2020, 12:29 AM
RE: Edit GP Rain damage - by madsiur - 01-01-2020, 09:40 PM
RE: Edit GP Rain damage - by C-Dude - 01-01-2020, 10:43 PM
RE: Edit GP Rain damage - by Subtraction - 01-02-2020, 01:40 AM
RE: Edit GP Rain damage - by doofenH - 01-02-2020, 11:56 AM

Forum Jump:

Users browsing this thread: 1 Guest(s)


Theme by Madsiur2017Custom Graphics by JamesWhite