From d2e6fd9367d264de82726636f8af4d7a90d2d58a Mon Sep 17 00:00:00 2001 From: Vince Weaver Date: Mon, 9 Jul 2018 00:15:57 -0400 Subject: [PATCH] tfv: hookup magic sprites, fix bolt --- gr-sim/tfv/tfv_battle.c | 10 ++++++++++ gr-sim/tfv/tfv_sprites.c | 10 +++++----- 2 files changed, 15 insertions(+), 5 deletions(-) diff --git a/gr-sim/tfv/tfv_battle.c b/gr-sim/tfv/tfv_battle.c index 3abe698e..537aedf8 100644 --- a/gr-sim/tfv/tfv_battle.c +++ b/gr-sim/tfv/tfv_battle.c @@ -683,6 +683,16 @@ static void magic_attack(int which) { mx=2; my=20; } + if (which==MENU_MAGIC_BOLT) { + sprite=magic_bolt; + mx=2; + my=20; + } + if (which==MENU_MAGIC_MALAISE) { + sprite=magic_malaise; + mx=2; + my=20; + } // FIXME: damage based on weakness of enemy diff --git a/gr-sim/tfv/tfv_sprites.c b/gr-sim/tfv/tfv_sprites.c index 8096f056..d0c503be 100644 --- a/gr-sim/tfv/tfv_sprites.c +++ b/gr-sim/tfv/tfv_sprites.c @@ -530,11 +530,11 @@ unsigned char magic_ice[]={ unsigned char magic_bolt[]={ 0x5,0x6, 0x55,0x55,0x55,0x55,0x55, - 0x00,0x00,0xc0,0x0c,0x00, - 0x00,0x00,0x0c,0xc0,0x00, - 0x00,0x00,0x0c,0xc0,0x00, - 0xc0,0xc0,0x00,0xcc,0x00, - 0x09,0x0c,0x00,0x09,0x00, + 0x05,0x05,0xd5,0x05,0x05, + 0x00,0x00,0x0d,0xd0,0x00, + 0x00,0xd0,0x0d,0xd0,0x00, + 0xd0,0x0d,0x00,0x0d,0xd0, + 0x0d,0x00,0x00,0x00,0x0d, }; unsigned char magic_malaise[]={