Click_LaunchSpellFromBook:
bsr.s adrCd004E8E ;6112
bne.s adrCd004E86 ;6608
bsr adrCd006698 ;61001818
bsr adrCd00C85E ;610079DA
adrCd004E86:
move.w #$0002,$0014(a5) ;3B7C00020014
adrCd004E8C:
rts ;4E75
adrCd004E8E:
bsr adrCd00665C ;610017CC
clr.w adrW_00505A.l ;42790000505A
move.b $0007(a5),adrB_00EE3E.l ;13ED00070000EE3E
adrCd004EA0:
move.b $0013(a4),d0 ;102C0013
bmi.s adrCd004E8C ;6BE6
subq.b #$03,d0 ;5700
beq.s adrCd004EBE ;6714
cmp.w #$0008,$0042(a5) ;0C6D00080042
bne.s adrCd004EBE ;660C
movem.l d0-d7/a0-a6,-(sp) ;48E7FFFE
bsr adrCd00332A ;6100E472
movem.l (sp)+,d0-d7/a0-a6 ;4CDF7FFF
adrCd004EBE:
subq.b #$04,$0007(a4) ;592C0007
bcc.s adrCd004EC8 ;6404
clr.b $0007(a4) ;422C0007
adrCd004EC8:
move.b #$0F,$001B(a4) ;197C000F001B
clr.b $0011(a4) ;422C0011
bsr adrCd00688C ;610019B8
move.b $0009(a4),d1 ;122C0009
sub.b d0,d1 ;9200
bcs adrCd004FD6 ;650000F8
move.b d1,$0009(a4) ;19410009
tst.b d0 ;4A00
bne.s adrCd004EFA ;6612
move.b $0013(a4),d0 ;102C0013
bsr adrCd006900 ;61001A12
lea RingUses.l,a0 ;41F90000EE32
subq.b #$01,$00(a0,d0.w) ;53300000
adrCd004EFA:
bsr adrCd0080CA ;610031CE
bsr adrCd006778 ;61001878
moveq #$00,d0 ;7000
move.b $0013(a4),d0 ;102C0013
lea adrEA00685E.l,a6 ;4DF90000685E
move.b $00(a6,d0.w),d1 ;12360000
addq.b #$05,d1 ;5A01
add.b $0015(a4),d1 ;D22C0015
cmp.b #$64,d1 ;0C010064
bcs.s adrCd004F20 ;6502
moveq #$64,d1 ;7264
adrCd004F20:
move.b d1,$0015(a4) ;19410015
add.w d0,d0 ;D040
lea Spells_01_Armour.l,a0 ;41F90000505C
lea Spells_LookupTable.l,a6 ;4DF90000500C
add.w $00(a6,d0.w),a0 ;D0F60000
bsr adrCd005546 ;6100060E
add.b d0,d7 ;DE00
bmi.s adrCd004FB0 ;6B72
move.w d7,-(sp) ;3F07
bsr adrCd008498 ;61003556
move.w (sp)+,d7 ;3E1F
move.w $00(a6,d0.w),d1 ;32360000
and.w #$0007,d1 ;02410007
subq.w #$06,d1 ;5D41
bne.s adrCd004F5E ;660C
move.b $00(a6,d0.w),d1 ;12360000
and.w #$0003,d1 ;02410003
beq adrCd004FEE ;67000092
adrCd004F5E:
move.l a4,-(sp) ;2F0C
jsr (a0) ;4E90
moveq #$00,d0 ;7000
move.b adrB_00EE3E.l,d0 ;10390000EE3E
bsr adrCd004078 ;6100F10C
tst.w d1 ;4A41
bmi.s adrCd004F8E ;6B1C
beq.s adrCd004F86 ;6712
move.w d1,d7 ;3E01
tst.w $0042(a5) ;4A6D0042
bpl.s adrCd004F8E ;6A12
bsr adrCd007EF0 ;61002F72
bsr adrCd007ED2 ;61002F50
bra.s adrCd004F8E ;6008
adrCd004F86:
move.w $0006(a5),d7 ;3E2D0006
bsr adrCd00CCD8 ;61007D4C
adrCd004F8E:
move.l (sp)+,a4 ;285F
move.l #adrL_007E22,a0 ;207C00007E22
add.l a4,a0 ;D1CC
moveq #$00,d0 ;7000
move.b $0013(a4),d0 ;102C0013
addq.b #$01,$00(a0,d0.w) ;52300000
bcc.s adrCd004FA8 ;6404
subq.b #$01,$00(a0,d0.w) ;53300000
adrCd004FA8:
lea NullString.l,a6 ;4DF90000CAE9
bra.s adrCd004FBE ; 600E
adrCd004FB0:
lea SpellFailedMsg.l,a6 ;4DF90000504C
move.w #$0004,adrW_00D92A.l ;33FC00040000D92A
adrCd004FBE:
move.b #$FF,$0013(a4) ;197C00FF0013
tst.b adrB_00505B.l ;4A390000505B
bne.s adrCd004FD4 ;6608
jsr LowerText.l ;4EB90000CFB8
moveq #$00,d0 ;7000
adrCd004FD4:
rts ;4E75
adrCd004FD6:
tst.b adrB_00505B.l ;4A390000505B
bne.s adrCd004FD4 ;66F6
lea adrEA00EA62.l,a6 ;4DF90000EA62
jsr LowerText.l ;4EB90000CFB8
moveq #$01,d0 ;7001
rts ;4E75
adrCd004FEE:
lea SpellFizzledMsg.l,a6 ;4DF900004FFE
move.w #$0008,adrW_00D92A.l ;33FC00080000D92A
bra.s adrCd004FBE ;60C0
SpellFizzledMsg:
dc.b 'SPELL FIZZLED' ;5350454C4C2046495A5A4C4544
dc.b $FF ;FF
Spells_LookupTable:
dc.w Spells_01_Armour-Spells_01_Armour ;0000
dc.w Spells_02_Terror-Spells_01_Armour ;0022
dc.w Spells_03_Vitalise-Spells_01_Armour ;002A
dc.w Spells_04_Biguile-Spells_01_Armour ;0032
dc.w Spells_05_Deflect-Spells_01_Armour ;0062
dc.w Spells_06_Magelock-Spells_01_Armour ;0066
dc.w Spells_07_Conceal-Spells_01_Armour ;00DA
dc.w Spells_08_Warpower-Spells_01_Armour ;00F6
dc.w Spells_09_Missle-Spells_01_Armour ;00FC
dc.w Spells_10_Vanish-Spells_01_Armour ;0106
dc.w Spells_11_Paralyze-Spells_01_Armour ;010C
dc.w Spells_12_Alchemy-Spells_01_Armour ;0114
dc.w Spells_13_Confuse-Spells_01_Armour ;0174
dc.w Spells_14_Levitate-Spells_01_Armour ;017C
dc.w Spells_15_Antimage-Spells_01_Armour ;0182
dc.w Spells_16_Recharge-Spells_01_Armour ;0188
dc.w Spells_17_Trueview-Spells_01_Armour ;01CA
dc.w Spells_18_Renew-Spells_01_Armour ;01D0
dc.w Spells_19_Vivify-Spells_01_Armour ;0222
dc.w Spells_20_Dispell-Spells_01_Armour ;0258
dc.w Spells_21_Firepath-Spells_01_Armour ;0298
dc.w Spells_22_Illusion-Spells_01_Armour ;02A0
dc.w Spells_23_Compass-Spells_01_Armour ;02A6
dc.w Spells_24_Spelltap-Spells_01_Armour ;02AC
dc.w Spells_25_Disrupt-Spells_01_Armour ;02B2
dc.w Spells_26_Fireball-Spells_01_Armour ;02C0
dc.w Spells_27_Wychwind-Spells_01_Armour ;03C0
dc.w Spells_28_ArcBolt-Spells_01_Armour ;0412
dc.w Spells_29_Formwall-Spells_01_Armour ;041A
dc.w Spells_30_Summon-Spells_01_Armour ;048A
dc.w Spells_31_Blaze-Spells_01_Armour ;0490
dc.w Spells_32_Mindrock-Spells_01_Armour ;049E
SpellFailedMsg:
dc.b 'SPELL FAILED' ;5350454C4C204641494C4544
dc.b $FF ;FF
dc.b $00 ;00
adrW_00505A:
dc.b $00 ;00
adrB_00505B:
dc.b $00 ;00
Spells_01_Armour:
...