fix: Fixes bad localized messages (#1722)

### Summary
- Apparently affixes and other old packets do not support unicode, so we can't translate them. On OSI they use English for quite a bit.
This commit is contained in:
Kamron Batman 2024-04-05 20:28:15 -07:00 committed by GitHub
parent 6cb18f87fa
commit c63bf84ad4
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 3 additions and 3 deletions

View file

@ -91,7 +91,7 @@ public partial class SnowStatueDeed : Item
AddBackground(0, 0, 360, 225, 0xA28);
AddPage(1);
AddLabel(45, 15, 0, Localization.GetText(1156487, from.Language)); // Select One:
AddHtmlLocalized(45, 15, 200, 20, 1156487); // Select One:
AddItem(35, 75, 0x456E);
AddButton(65, 50, 0x845, 0x846, 1);

View file

@ -48,9 +48,9 @@ public class CreateFoodSpell : MagerySpell
if (Caster.NetState != null)
{
var foodName = Localization.GetText(food.LabelNumber, Caster.Language);
// Not translated to the casters language because affixes are ascii only
var foodName = Localization.GetText(food.LabelNumber);
// Note: On OSI, the food name is not localized.
// You magically create food in your backpack:
Caster.SendLocalizedMessage(1042695, true, $" {foodName}");
}