Users browsing this thread: 2 Guest(s)
Final Requests for Help
04-05-2021, 11:44 PM
(04-05-2021, 11:28 PM)PowerPanda Wrote: 3. Tools have a 1 in 32 chance of breaking when used. This would also require removing the restriction of not being able to buy more than 1 of each tool from shops. I would also like, if possible, for the Chain Saw to be exempted from this, since it is the only unique tool not acquired from shops.
Don't know about making the tools break, but removing the buy restriction is easy enough.
Code:
Invoke buy order menu if justified
C3/B7E6: 20C2BF JSR $BFC2 ; Selected item
C3/B7E9: 202183 JSR $8321 ; Compute index
C3/B7EC: AE3421 LDX $2134 ; Load it
C3/B7EF: BF0050D8 LDA $D85000,X ; Properties
C3/B7F3: 2907 AND #$07 ; Tool?
C3/B7F5: D013 BNE $B80A ; Branch if not
C3/B7F7: 2092BC JSR $BC92 ; Define $64
C3/B7FA: A564 LDA $64 ; Owning none?
C3/B7FC: F00C BEQ $B80A ; Test GP if so
C3/B7FE: 20C00E JSR $0EC0 ; Play buzzer
C3/B801: A0F5C3 LDY #$C3F5 ; Text pointer
C3/B804: 20F902 JSR $02F9 ; Draw excuse
C3/B807: 4C7DB8 JMP $B87D ; Set to exit
Just JMP $B80A unconditionally instead of checking if it's a tool.
« Next Oldest | Next Newest »
Users browsing this thread: 2 Guest(s)