fix: Optimizes gump relay info (Prep for Static Gumps) (#1698)

This commit is contained in:
Kamron Batman 2024-03-07 20:54:53 -08:00 • committed by GitHub
parent 50fcee12dc
commit cfe9e04c78
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
220 changed files with 364 additions and 402 deletions

View file

@ -36,7 +36,7 @@ namespace Server.Guilds
AddHtmlLocalized(360, 273, 90, 26, 1062989, 0x5000); // Declare War!
}
public override void OnResponse(NetState sender, RelayInfo info)
public override void OnResponse(NetState sender, in RelayInfo info)
{
var pm = sender.Mobile as PlayerMobile;
@ -95,11 +95,11 @@ namespace Server.Guilds
var maxKills = tKills == null
? 0
: Math.Clamp(Utility.ToInt32(info.GetTextEntry(11).Text), 0, 0xFFFF);
: Math.Clamp(Utility.ToInt32(tKills), 0, 0xFFFF);
var warLength = TimeSpan.FromHours(
tWarLength == null
? 0
: Math.Clamp(Utility.ToInt32(info.GetTextEntry(10).Text), 0, 0xFFFF)
: Math.Clamp(Utility.ToInt32(tWarLength), 0, 0xFFFF)
);
if (war != null)