ZoriaRPG
11-17-2016, 08:18 PM
Reported by Lejes:
Bug: magic drain rate other than 2 (not just 1) causes half magic icon to appear on subscreen
Other bug: 0 magic drain rate causes all magic gauge pieces to appear filled, regardless of actual MP
Test script I made if you want to look at it more yourself.
ffc script MagicDivisor
{
void run()
{
while (true)
{
if (Link->PressEx1)
{
Game->Generic[GEN_MAGICDRAINRATE] = (Game->Generic[GEN_MAGICDRAINRATE] + 1) % 8;
}
if (Link->PressEx2)
{
Link->MP = Link->MaxMP;
}
if (Link->PressEx3)
{
Game->Generic[GEN_MAGICDRAINRATE] = 0.5;
}
Screen->DrawInteger(6, 0, 0, FONT_Z1, 0x01, 0x07, 0, 0, Game->Generic[GEN_MAGICDRAINRATE], 1, OP_OPAQUE);
Screen->DrawInteger(6, 0, 8, FONT_Z1, 0x01, 0x07, 0, 0, Link->MP, 0, OP_OPAQUE);
Waitframe();
}
}
}
10/30/2016 3:54:31 AM Lejes Rimul
Bug: magic drain rate other than 2 (not just 1) causes half magic icon to appear on subscreen
Other bug: 0 magic drain rate causes all magic gauge pieces to appear filled, regardless of actual MP
Test script I made if you want to look at it more yourself.
ffc script MagicDivisor
{
void run()
{
while (true)
{
if (Link->PressEx1)
{
Game->Generic[GEN_MAGICDRAINRATE] = (Game->Generic[GEN_MAGICDRAINRATE] + 1) % 8;
}
if (Link->PressEx2)
{
Link->MP = Link->MaxMP;
}
if (Link->PressEx3)
{
Game->Generic[GEN_MAGICDRAINRATE] = 0.5;
}
Screen->DrawInteger(6, 0, 0, FONT_Z1, 0x01, 0x07, 0, 0, Game->Generic[GEN_MAGICDRAINRATE], 1, OP_OPAQUE);
Screen->DrawInteger(6, 0, 8, FONT_Z1, 0x01, 0x07, 0, 0, Link->MP, 0, OP_OPAQUE);
Waitframe();
}
}
}
10/30/2016 3:54:31 AM Lejes Rimul