Users browsing this thread: 1 Guest(s)
Request: No items lost at Colosseum

#2
Posts: 3,971
Threads: 279
Thanks Received: 237
Thanks Given: 58
Joined: Oct 2011
Reputation: 65
Status
Tissue-aware
Basically you're looking into removing all the following code. The most efficient way to do this without too much trouble is writing a BRA $49C4 at $C2499E.

Code:
C2/499E: AD 97 3A     LDA $3A97
C2/49A1: F0 21        BEQ $49C4      (branch if not Colosseum brawl)
C2/49A3: AD 05 02     LDA $0205      (item wagered)
C2/49A6: C9 FF        CMP #$FF    
C2/49A8: F0 1A        BEQ $49C4      (branch if null)
C2/49AA: A2 FF 00     LDX #$00FF
C2/49AD: DD 69 18     CMP $1869,X    (is item wagered in this slot?)
C2/49B0: D0 0F        BNE $49C1      (branch if not)
C2/49B2: DE 69 19     DEC $1969,X    (if it was, decrement the item's count as
                                      a Colosseum fee)
C2/49B5: F0 02        BEQ $49B9      (if there's none of the item left, empty
                                      out its slot)
C2/49B7: 10 08        BPL $49C1      (if there's a nonzero and positive quantity
                                      of the item, don't empty out its slot)
C2/49B9: A9 FF        LDA #$FF
C2/49BB: 9D 69 18     STA $1869,X    (store Empty item)
C2/49BE: 9E 69 19     STZ $1969,X    (with a quantity of 0)
C2/49C1: CA           DEX            (move to next lowest item slot)
C2/49C2: 10 E9        BPL $49AD      (loop for all 256 item slots)
  Find
Quote  



Messages In This Thread
RE: Request: No items lost at Colosseum - by madsiur - 09-24-2018, 07:41 PM

Forum Jump:

Users browsing this thread: 1 Guest(s)


Theme by Madsiur2017Custom Graphics by JamesWhite