Use PrintfEx instead of hacks to send chat messages to the hud.

This commit is contained in:
Mari the Deer 2022-07-29 11:38:37 +02:00
commit fece16ae04
3 changed files with 7 additions and 38 deletions

View file

@ -9,7 +9,7 @@ Class IconMessage : Inventory
{
if ( Owner.InStateSequence(Owner.CurState,Owner.SeeState) )
{
Console.MidPrint(smallfont,StringTable.Localize("$BOSSLINE_IOS"));
Console.PrintfEx(PRINT_CHAT,StringTable.Localize("$BOSSLINE_IOS"));
DepleteOrDestroy();
return;
}
@ -22,7 +22,7 @@ Class ArchangelusMessage : Inventory
{
if ( Owner.InStateSequence(Owner.CurState,Owner.SeeState) )
{
Console.MidPrint(smallfont,StringTable.Localize("$BOSSLINE_ARCHANGELUS"));
Console.PrintfEx(PRINT_CHAT,StringTable.Localize("$BOSSLINE_ARCHANGELUS"));
DepleteOrDestroy();
return;
}
@ -35,7 +35,7 @@ Class DSparilMessage : Inventory
{
if ( Owner.InStateSequence(Owner.CurState,Owner.SeeState) )
{
Console.MidPrint(smallfont,StringTable.Localize("$BOSSLINE_DSPARIL"));
Console.PrintfEx(PRINT_CHAT,StringTable.Localize("$BOSSLINE_DSPARIL"));
DepleteOrDestroy();
return;
}