PDA

View Full Version : Subscreen Graphical Bugs Related to Game->Generic[GEN_MAGICDRAINRATE]



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

Saffith
12-03-2016, 07:18 PM
Not sure that was ever really meant to work, but it mostly does, so whatever, I guess. Fixed.
It's an integer, so 0.5 still isn't going to work.

ZoriaRPG
12-04-2016, 01:51 PM
Not sure that was ever really meant to work, but it mostly does, so whatever, I guess. Fixed.
It's an integer, so 0.5 still isn't going to work.

He might have done that to show it rounding to 0? I have no idea.