24.7%
Posted: Mon Dec 24, 2012 8:27 am
In case anyone cared, I've figured out that on the C64 version of BTI, there is a 24.7% chance of getting into a random fight while walking the streets of Skara Brae.
So why do I think that means a 24.7% chance of encounters? Because if you take 3f and convert it to decimal, you get 63. The highest value that can be in $5a is FF, which is 255. The "and" operation at 2f57, from what I gather, means to divide 3f by ff, or 63/255, which comes out to be .247 something.
Otherwise known as 24.7%.
And now you know. Or at least, now I think I know and wanted to post how smart I may or may not be.
Code: Select all
2f2b: dec $24
2f2d: bpl $2f33
2f2f: lda #$03
2f31: sta $24
2f33: jsr $0830 This does something sinister, I forget what...
2f36: jsr $0806 Clear the text screen...
2f39: ldy #$ae
2f3b: ldx #$fc
2f3d: jsr $0809 Print whatever is at $fcae...
2f40: lda $24
2f42: asl a Math crap
2f43: tax I refuse to file tax before April...
2f44: ldy $aef5,x I think this loads into Y the contents of $aef5 plus X.
2f47: lda $aef4,x I think this loads into A the contents of $aef4 plus X.
2f4a: tax More tax
2f4b: jsr $0809 Print other text based on what aef4/aef5 pointed to...
24fe: inc $37
2f50: jsr $082a Deploy the unicorns!
2f53: lda $5a Grab randomly generated number from $5a into A
2f55: and #$3f Don't forget to take the #$3f with you
2f57: bne $2f63 Break and enter at $2f63, or branch not equal to there
2f59: lda #$00 Zero the accumulator
2f5b: sta $e1 Set imminent combat mode to "monster"
2f5d: jsr $0893 Start a fight
2f60: jmp $ae0c Exit routine
2f63: jmp $ae0c Exit routine. Because it was worth repeating.Otherwise known as 24.7%.
And now you know. Or at least, now I think I know and wanted to post how smart I may or may not be.