Read-only archive of the Armageddon Games Forums Archive (2000–2026) · About this archive

Subscreen Graphical Bugs Related to Game->Generic[GEN_MAGICDRAINRATE]

2 replies · 1,473 views · Started 18 November 2016

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

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.

Saffith wrote: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.